* using log directory 'd:/Rcompile/CRANpkg/local/3.5/listarrays.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'listarrays/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'listarrays' version '0.3.1' * 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 'listarrays' 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 ... [4s] NOTE split_along_dim: no visible global function definition for 'asplit' Undefined global functions or variables: asplit * 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 examples ... ERROR Running examples in 'listarrays-Ex.R' failed The error most likely occurred in: > ### Name: map_along_dim > ### Title: Apply a function across subsets along an array dimension > ### Aliases: map_along_dim map_along_rows map_along_cols > > ### ** Examples > > X <- matrix2(letters[1:15], ncol = 3) > > apply(X, 1, function(x) paste(x, collapse = "")) # simplifies to a vector [1] "abc" "def" "ghi" "jkl" "mno" > map_along_dim(X, 1, ~paste(.x, collapse = "")) # returns a list Error in asplit(as.array(X), which_dim) : could not find function "asplit" Calls: map_along_dim -> lapply -> split_along_dim Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(listarrays) > > test_check("listarrays") -- 1. Error: specifying `which_dim` by name works (@test-dimnames.R#68) ------- could not find function "asplit" Backtrace: 1. testthat::expect_identical(...) 4. listarrays::split_along_dim(x, "axis2") -- 2. Error: map_along_dim (@test-map.R#7) ------------------------------------ could not find function "asplit" Backtrace: 1. testthat::expect_identical(...) 4. listarrays::map_along_rows(A, ~paste(.x, collapse = "")) 5. listarrays::map_along_dim(X, 1L, .f, ...) 7. listarrays::split_along_dim(X, .dim) -- 3. Error: split_along_dim (@test-split.R#6) -------------------------------- could not find function "asplit" Backtrace: 1. testthat::expect_length(split_along_dim(x, d), dim(x)[d]) 4. listarrays::split_along_dim(x, d) -- 4. Error: split* works recursively (@test-split.R#28) ---------------------- could not find function "asplit" Backtrace: 1. listarrays::split_along_rows(list(x1, x2, x3)) 2. listarrays::split_along_dim(X, 1L, depth = depth) 3. base::lapply(...) 4. listarrays:::FUN(X[[i]], ...) 5. listarrays::split_along_dim(x, which_dim, depth = depth - 1L) -- 5. Error: split_along_rows works with common vector types (@test-split.R#70) could not find function "asplit" Backtrace: 1. base::identical(...) 2. listarrays::split_along_rows(m) 3. listarrays::split_along_dim(X, 1L, depth = depth) == testthat results =========================================================== [ OK: 75 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ] 1. Error: specifying `which_dim` by name works (@test-dimnames.R#68) 2. Error: map_along_dim (@test-map.R#7) 3. Error: split_along_dim (@test-split.R#6) 4. Error: split* works recursively (@test-split.R#28) 5. Error: split_along_rows works with common vector types (@test-split.R#70) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE