* using log directory 'd:/Rcompile/CRANpkg/local/3.6/act.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'act/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'act' version '1.0.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'act' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [23s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... ERROR Running examples in 'act-Ex.R' failed The error most likely occurred in: > ### Name: act > ### Title: Aligned Corpus Toolkit > ### Aliases: act > > ### ** Examples > > library(act) > > # ========== Example data > # The act package comes with some example data. > # The data is stored at the following location: > path <- system.file("extdata", "examplecorpus", package="act") > > # Since this folder is quite difficult to access, you might consider copying the > # contents of this folder to a more convenient location. > # The following commands will create a new folder called 'examplecorpus' in the > # folder 'path'. > # You will find the data there. > ## Not run: > ##D path <- "EXISTING_FOLDER_ON_YOUR_COMPUTER" > ##D sourcepath <- system.file("extdata", "examplecorpus", package="act") > ##D if (!dir.exists(path)) {dir.create(path)} > ##D file.copy(sourcepath, dirname(path), recursive=TRUE) > ## End(Not run) > > # The example files that come with the package do only contain annotation files. > # Media files are not included. > # The following lines will download the data and create a new folder called > # 'examplecorpus' in the folder 'path'. > # You will find the data there. > ## Not run: > ##D path <- "EXISTING_FOLDER_ON_YOUR_COMPUTER" > ##D sourceurl <- > ##D "http://www.romanistik.uni-freiburg.de/ehmer/files/digitalhumanities/act_examplecorpus.zip" > ##D temp <- tempfile() > ##D download.file(sourceurl, temp) > ##D unzip(zipfile=temp, exdir=path) > ## End(Not run) > > # ========== Create a corpus object and load data > # Now that we have the example data accessible, we can create a corpus object. > # The corpus object is a structured collection of all the information that you can > # work with using act. > # It will contain the information of each transcript, links to media files and further > # meta data. > > # --- Locate folder with annotation files > # When creating a corpus object you will need to specify where your annotation > # files ('Praat' '.TextGrids' or 'ELAN' .eaf) are located. > # We will use the example data, that we have just located in 'path'. > path [1] "D:/temp/RtmpSY2GrK/RLIBS_181f046d75d37/act/extdata/examplecorpus" > > # In case that you want to use your own data, you can set the path here: > ## Not run: > ##D path <- "EXISTING_FOLDER_ON_YOUR_COMPUTER" > ## End(Not run) > > # --- Create corpus object and load annotation files > # The following command will create a corpus object, with the name 'examplecorpus'. > examplecorpus <- act::corpus_new( + pathsAnnotationFiles = path, + pathsMediaFiles = path, + name = "examplecorpus" + ) Warning in `[<-.factor`(`*tmp*`, is.na(tiers$tier.parent.ref), value = 1) : invalid factor level, NA generated Error in Ops.factor(annotations$tier, all_tiers[i]) : level sets of factors are different Calls: ... -> -> -> which -> Ops.factor Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR