* using log directory 'd:/Rcompile/CRANpkg/local/3.4/sdcHierarchies.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 'sdcHierarchies/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'sdcHierarchies' version '0.18' * 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 'sdcHierarchies' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [7s] NOTE hier_convert : .to_df: no visible global function definition for 'isFALSE' Undefined global functions or variables: isFALSE * 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'sdcHierarchies-Ex.R' failed The error most likely occurred in: > ### Name: hier_compute > ### Title: compute a nested hierarchy > ### Aliases: hier_compute > > ### ** Examples > > ## Example Regional Codes (NUTS) > # digits 1-2 (len=2, endpos=2) --> level 1 > # digit 3 (len=1, endpos=3) --> level 2 > # digits 4-5 (len=2, endpos=5) -> level 3 > > # all strings have equal length but total is not encoded in these values > geo_m <- c( + "01051", "01053", "01054", "01055", + "01056", "01057", "01058", "01059", "01060", + "01061", "01062", + "02000", + "03151", "03152", "03153", "03154", "03155", "03156", "03157", "03158", + "03251", "03252", "03254", "03255", "03256", "03257", + "03351", "03352", "03353", "03354", "03355", + "03356", "03357", "03358", "03359", + "03360", "03361", + "03451", "03452", "03453", "03454", "03455", "03456", + "10155") > > a <- hier_compute( + inp = geo_m, + dim_spec = c(2, 3, 5), + root = "Tot", + method = "endpos" + ) > b <- hier_compute( + inp = geo_m, + dim_spec = c(2, 1, 2), + root = "Tot", + method = "len" + ) > identical( + hier_convert(a, as = "df"), + hier_convert(b, as = "df") + ) Error in isFALSE(dt) : could not find function "isFALSE" Calls: identical -> hier_convert -> .to_df Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(sdcHierarchies) Loading required package: shinythemes Package "sdcHierarchies" 0.18 has been loaded. > > test_check("sdcHierarchies") -- 1. Error: (unknown) (@test_additional.R#33) -------------------------------- could not find function "isFALSE" 1: hier_export(tree, as = "df", path = tf, verbose = TRUE) at testthat/test_additional.R:33 2: hier_convert(tree, as = as) 3: .to_df(tree = tree, dt = ifelse(as == "dt", TRUE, FALSE)) -- 2. Error: (unknown) (@test_compute.R#48) ----------------------------------- could not find function "isFALSE" 1: expect_identical(hier_convert(dim_endpos, as = "df"), hier_convert(dim_len, as = "df")) at testthat/test_compute.R:48 2: quasi_label(enquo(object), label, arg = "object") 3: eval_bare(get_expr(quo), get_env(quo)) 4: hier_convert(dim_endpos, as = "df") 5: .to_df(tree = tree, dt = ifelse(as == "dt", TRUE, FALSE)) -- 3. Error: (unknown) (@test_hier_match.R#37) -------------------------------- could not find function "isFALSE" 1: hier_convert(tree = h, as = "dt") at testthat/test_hier_match.R:37 2: .to_df(tree = tree, dt = ifelse(as == "dt", TRUE, FALSE)) -- 4. Error: (unknown) (@test_hier_to_tree.R#6) ------------------------------- could not find function "isFALSE" 1: hier_convert(tree, as = "df") at testthat/test_hier_to_tree.R:6 2: .to_df(tree = tree, dt = ifelse(as == "dt", TRUE, FALSE)) -- 5. Error: (unknown) (@test_import_compute.R#99) ---------------------------- could not find function "isFALSE" 1: hier_convert(dim2, as = "df") at testthat/test_import_compute.R:99 2: .to_df(tree = tree, dt = ifelse(as == "dt", TRUE, FALSE)) == testthat results =========================================================== OK: 53 SKIPPED: 0 WARNINGS: 0 FAILED: 5 1. Error: (unknown) (@test_additional.R#33) 2. Error: (unknown) (@test_compute.R#48) 3. Error: (unknown) (@test_hier_match.R#37) 4. Error: (unknown) (@test_hier_to_tree.R#6) 5. Error: (unknown) (@test_import_compute.R#99) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [4s] WARNING Error in re-building vignettes: ... Quitting from lines 95-98 (usage.Rmd) Error: processing vignette 'usage.Rmd' failed with diagnostics: could not find function "isFALSE" Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING, 1 NOTE