* using log directory 'd:/Rcompile/CRANpkg/local/3.4/whereami.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 'whereami/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'whereami' version '0.1.8' * 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 'whereami' 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 ... [3s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'whereami-Ex.R' failed The error most likely occurred in: > ### Name: cat_where > ### Title: cat function for whereami > ### Aliases: cat_where > > ### ** Examples > > cat_where(whereami()) Error in gsub(normalizePath(getwd()), ".", src) : invalid regular expression 'd:\RCompile\CRANpkg\local\3.4\whereami.Rcheck', reason 'Invalid back reference' Calls: cat_where -> whereami -> path_reduce -> gsub Error in whereami() : object 'ret' not found Calls: cat_where -> whereami Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [1s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(whereami) > > test_check("whereami") -- 1. Error: source calls: direct call (@test-source.R#7) --------------------- invalid regular expression 'd:\RCompile\CRANpkg\local\3.4\whereami.Rcheck\tests\testthat', reason 'Invalid back reference' 1: testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) at testthat/test-source.R:7 2: quasi_label(enquo(object), label, arg = "object") 3: eval_bare(get_expr(quo), get_env(quo)) 4: inherits(whereami::whereami(path_expand = FALSE), "whereami") 5: whereami::whereami(path_expand = FALSE) 6: path_reduce(src) 7: gsub(normalizePath(getwd()), ".", src) -- 2. Error: source calls: direct call (@test-source.R#7) --------------------- object 'ret' not found 1: testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) at testthat/test-source.R:7 2: quasi_label(enquo(object), label, arg = "object") 3: eval_bare(get_expr(quo), get_env(quo)) 4: inherits(whereami::whereami(path_expand = FALSE), "whereami") 5: whereami::whereami(path_expand = FALSE) -- 3. Error: source calls: print (@test-source.R#15) -------------------------- invalid regular expression 'd:\RCompile\CRANpkg\local\3.4\whereami.Rcheck\tests\testthat', reason 'Invalid back reference' 1: testthat::expect_output(print(whereami::whereami()), regexp = "Running") at testthat/test-source.R:15 2: quasi_capture(enquo(object), label, capture_output, width = width) 3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...) 4: capture_output_lines(code, print, width = width) 5: eval_with_output(code, print = print, width = width) 6: withr::with_output_sink(temp, withVisible(code)) 7: force(code) 8: withVisible(code) 9: eval_bare(get_expr(.quo), get_env(.quo)) 10: print(whereami::whereami()) 11: whereami::whereami() 12: path_reduce(src) 13: gsub(normalizePath(getwd()), ".", src) -- 4. Error: source calls: print (@test-source.R#15) -------------------------- object 'ret' not found 1: testthat::expect_output(print(whereami::whereami()), regexp = "Running") at testthat/test-source.R:15 2: quasi_capture(enquo(object), label, capture_output, width = width) 3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...) 4: capture_output_lines(code, print, width = width) 5: eval_with_output(code, print = print, width = width) 6: withr::with_output_sink(temp, withVisible(code)) 7: force(code) 8: withVisible(code) 9: eval_bare(get_expr(.quo), get_env(.quo)) 10: print(whereami::whereami()) 11: whereami::whereami() -- 5. Error: (unknown) (@test-source.R#5) ------------------------------------- invalid regular expression 'd:\RCompile\CRANpkg\local\3.4\whereami.Rcheck\tests\testthat', reason 'Invalid back reference' 1: testthat::describe("source calls", { it("direct call", { testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) }) it("path expand", { testthat::expect_true(inherits(whereami::whereami(path_expand = TRUE), "whereami")) }) it("print", { testthat::expect_output(print(whereami::whereami()), regexp = "Running") }) whereami::cat_where(whereami::whereami()) }) at testthat/test-source.R:5 2: eval(substitute(code), describe_environment) 3: eval(substitute(code), describe_environment) 4: whereami::cat_where(whereami::whereami()) at testthat/test-source.R:18 5: whereami::whereami() 6: path_reduce(src) 7: gsub(normalizePath(getwd()), ".", src) -- 6. Error: (unknown) (@test-source.R#5) ------------------------------------- object 'ret' not found 1: testthat::describe("source calls", { it("direct call", { testthat::expect_true(inherits(whereami::whereami(path_expand = FALSE), "whereami")) }) it("path expand", { testthat::expect_true(inherits(whereami::whereami(path_expand = TRUE), "whereami")) }) it("print", { testthat::expect_output(print(whereami::whereami()), regexp = "Running") }) whereami::cat_where(whereami::whereami()) }) at testthat/test-source.R:5 2: eval(substitute(code), describe_environment) 3: eval(substitute(code), describe_environment) 4: whereami::cat_where(whereami::whereami()) at testthat/test-source.R:18 5: whereami::whereami() == testthat results =========================================================== OK: 3 SKIPPED: 5 WARNINGS: 4 FAILED: 6 1. Error: source calls: direct call (@test-source.R#7) 2. Error: source calls: direct call (@test-source.R#7) 3. Error: source calls: print (@test-source.R#15) 4. Error: source calls: print (@test-source.R#15) 5. Error: (unknown) (@test-source.R#5) 6. Error: (unknown) (@test-source.R#5) 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 ... [17s] OK * checking PDF version of manual ... OK * DONE Status: 2 ERRORs