From 33150ae73aa7eea06b559019aa6bb63f08b2e59e Mon Sep 17 00:00:00 2001 From: George Moroz Date: Sun, 7 Jun 2020 19:04:45 +0300 Subject: [PATCH] check packages --- DESCRIPTION | 2 +- R/concatenate_soundfiles.R | 3 +-- R/create_glossed_document.R | 6 ------ R/textgrid_to_df.R | 2 +- README.md | 3 ++- man/concatenate_soundfiles.Rd | 7 +------ man/textgrid_to_df.Rd | 2 +- 7 files changed, 7 insertions(+), 18 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 0b574cd..e6a5b5c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -13,7 +13,7 @@ Imports: xml2 Author: George Moroz Maintainer: George Moroz -Description: There are a lot of different typical tasks that have to be solved during phonetic research and experiments. This includes creating a presentation that will contain all stimuli, renaming and concatenating multiple sound files recorded during a session, automatic annotation in 'Praat' TextGrids (this is one of the sound annotation standards provided by 'Praat' software, see Boersma & Weenink 2018 ), creating an html table with annotations and spectrograms, and converting multiple formats ('Praat' TextGrid, 'EXMARaLDA' and 'ELAN'). All of these tasks can be solved by a mixture of different tools (any programming language has programs for automatic renaming, and Praat contains scripts for concatenating and renaming files, etc.). `phonfieldwork` provides a functionality that will make it easier to solve those tasks independently of any additional tools. You can also compare the functionality with other packages: 'rPraat' , 'textgRid' . +Description: There are a lot of different typical tasks that have to be solved during phonetic research and experiments. This includes creating a presentation that will contain all stimuli, renaming and concatenating multiple sound files recorded during a session, automatic annotation in 'Praat' TextGrids (this is one of the sound annotation standards provided by 'Praat' software, see Boersma & Weenink 2018 ), creating an html table with annotations and spectrograms, and converting multiple formats ('Praat' TextGrid, 'EXMARaLDA', 'ELAN', and 'FLEx' flextext). All of these tasks can be solved by a mixture of different tools (any programming language has programs for automatic renaming, and Praat contains scripts for concatenating and renaming files, etc.). `phonfieldwork` provides a functionality that will make it easier to solve those tasks independently of any additional tools. You can also compare the functionality with other packages: 'rPraat' , 'textgRid' . License: GPL (>= 2) URL: https://CRAN.R-project.org/package=phonfieldwork, https://agricolamz.github.io/phonfieldwork/ BugReports: https://github.com/agricolamz/phonfieldwork/issues diff --git a/R/concatenate_soundfiles.R b/R/concatenate_soundfiles.R index c3a2900..558f2cb 100644 --- a/R/concatenate_soundfiles.R +++ b/R/concatenate_soundfiles.R @@ -35,8 +35,7 @@ concatenate_soundfiles <- function(file_name, path, - annotation = "textgrid", - options = NULL){ + annotation = "textgrid"){ # concatenate sounds ------------------------------------------------------ diff --git a/R/create_glossed_document.R b/R/create_glossed_document.R index 03f6a0f..f305965 100644 --- a/R/create_glossed_document.R +++ b/R/create_glossed_document.R @@ -47,11 +47,5 @@ create_glossed_document <- function(flextext = NULL, output_file = output_file) message(paste0("Output created: ", output_dir, output_file, ".", output_format[1])) # non-flextext input ------------------------------------------------------ - } else if(!is.null(word_level) & - !is.null(gloss_level) & - !is.null(translation_level)){ - print("will be done soon") - } else { - stop('You need to specify either flextext or word_level, gloss_level, and translation_level arguments.') } } diff --git a/R/textgrid_to_df.R b/R/textgrid_to_df.R index 16130d6..615014b 100644 --- a/R/textgrid_to_df.R +++ b/R/textgrid_to_df.R @@ -12,7 +12,7 @@ #' #' @export -textgrid_to_df <- function(textgrid, tier = 1){ +textgrid_to_df <- function(textgrid){ if(grepl("TextGrid", textgrid[2])){ tg <- textgrid } else{ diff --git a/README.md b/README.md index 1ec7da7..8267c0b 100755 --- a/README.md +++ b/README.md @@ -37,5 +37,6 @@ library(phonfieldwork) ## To do: -* export to ELAN, EXMARALDA files +* export to ELAN and EXMARALDA files +* use ELAN and EXMARALDA files in the whole pipline discribed in docs * add textgrid visualisation diff --git a/man/concatenate_soundfiles.Rd b/man/concatenate_soundfiles.Rd index 6db9f15..ae6c12f 100644 --- a/man/concatenate_soundfiles.Rd +++ b/man/concatenate_soundfiles.Rd @@ -4,12 +4,7 @@ \alias{concatenate_soundfiles} \title{Concatenate sounds} \usage{ -concatenate_soundfiles( - file_name, - path, - annotation = "textgrid", - options = NULL -) +concatenate_soundfiles(file_name, path, annotation = "textgrid") } \arguments{ \item{file_name}{name of the result and annotation files.} diff --git a/man/textgrid_to_df.Rd b/man/textgrid_to_df.Rd index 474f622..6c7fa76 100644 --- a/man/textgrid_to_df.Rd +++ b/man/textgrid_to_df.Rd @@ -4,7 +4,7 @@ \alias{textgrid_to_df} \title{TextGrid to dataframe} \usage{ -textgrid_to_df(textgrid, tier = 1) +textgrid_to_df(textgrid) } \arguments{ \item{textgrid}{string with a filename or path to the TextGrid}