* using log directory 'd:/Rcompile/CRANpkg/local/3.4/parallelMap.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'parallelMap/DESCRIPTION' ... OK * this is package 'parallelMap' version '1.3' * 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 'parallelMap' 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 parallelExport: no visible global function definition for 'setNames' parallelGetOptions: no visible global function definition for 'setNames' parallelStop: no visible global function definition for 'getFromNamespace' stopWithJobErrorMessages: no visible global function definition for 'head' Undefined global functions or variables: getFromNamespace head setNames Consider adding importFrom("stats", "setNames") importFrom("utils", "getFromNamespace", "head") to your NAMESPACE file. * 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 ... [0s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] ERROR Running 'test-all.R' [14s] Running the tests in 'tests/test-all.R' failed. Complete output: > # FIXME: R CMD check does not run on true batch systems, but maybe it does not have to > # we can check there with 'make test' and run 'make check' locally > > library(testthat) > test_check("parallelMap") Loading required package: parallelMap Error in fun(...) : foo Error in fun(...) : foo Error in fun(...) : foo -- 1. Error: warn on unregisterred level (@test_registerLevels.R#30) ---------- (converted from warning) Don't need to call dbFetch() for statements, only for queries (CREATE TABLE parallelMap_BatchJobs_reg_682c14f23924_job_status (job_id INTEGER PRIMARY KEY, job_def_id INTEGER, first_job_in_chunk_id INTEGER, seed INTEGER, resources_timestamp INTEGER, memory REAL, submitted INTEGER, started INTEGER, batch_job_id TEXT, node TEXT, r_pid INTEGER, done INTEGER, error TEXT, error_time INTEGER )) 1: parallelStartBatchJobs() at testthat/test_registerLevels.R:30 2: parallelStart(mode = MODE_BATCHJOBS, level = level, logging = logging, storagedir = storagedir, bj.resources = bj.resources, show.info = show.info) 3: suppressMessages({ reg = BatchJobs::makeRegistry(id = basename(fd), file.dir = fd, work.dir = wd) }) 4: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage")) 5: BatchJobs::makeRegistry(id = basename(fd), file.dir = fd, work.dir = wd) 6: dbCreateJobStatusTable(reg) 7: dbDoQuery(reg, query, flags = "rwc") 8: stopf("Error in dbDoQuery. %s (%s)", res, query) == testthat results =========================================================== OK: 62 SKIPPED: 0 WARNINGS: 288 FAILED: 1 1. Error: warn on unregisterred level (@test_registerLevels.R#30) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE