- using R version 4.3.1 beta (2023-06-05 r84502)
- using platform: x86_64-pc-linux-gnu (64-bit)
- R was compiled by
gcc-11 (Debian 11.3.0-12) 11.3.0
GNU Fortran (Debian 11.3.0-12) 11.3.0
- running under: Debian GNU/Linux 12 (bookworm)
- using session charset: UTF-8
- checking for file ‘exampletestr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘exampletestr’ version ‘1.7.0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘exampletestr’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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/10s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [1s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/17s] ERROR
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [12s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(exampletestr)
>
> get_os <- function() {
+ sysinf <- Sys.info()
+ if (!is.null(sysinf)) {
+ os <- sysinf["sysname"]
+ if (os == "Darwin") {
+ os <- "osx"
+ }
+ } else { ## mystery machine
+ os <- .Platform$OS.type
+ if (grepl("^darwin", R.version$os)) {
+ os <- "osx"
+ }
+ if (grepl("linux-gnu", R.version$os)) {
+ os <- "linux"
+ }
+ }
+ if (os == "osx") os <- "mac"
+ tolower(os)
+ }
>
> if (get_os() != "mac" || Sys.getenv("NOT_CRAN") == "true") {
+ test_check("exampletestr")
+ }
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 16 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-files.R:22:3'): `make_tests_shells_file()` and `make_tests_shells_pkg()` work ──
<usethis_error/error/condition>
Error: Paths must be relative to the active project
Backtrace:
▆
1. ├─base::replicate(...) at test-files.R:22:2
2. │ └─base::sapply(...)
3. │ └─base::lapply(X = X, FUN = FUN, ...)
4. │ └─exampletestr (local) FUN(X[[i]], ...)
5. │ └─exampletestr::make_tests_shells_file("R/detect.R", pkg_dir, open = FALSE)
6. │ ├─withr::with_options(...)
7. │ │ └─base::force(code)
8. │ ├─usethis::ui_info("Wrote {usethis::ui_path(usethis::proj_path(test_file_name),\n usethis::proj_path())}.")
9. │ │ └─glue::glue(x, .envir = .envir)
10. │ │ └─glue::glue_data(...)
11. │ ├─usethis::ui_path(usethis::proj_path(test_file_name), usethis::proj_path())
12. │ │ └─fs::is_dir(x)
13. │ │ └─fs::file_info(path, follow = follow)
14. │ │ └─fs::path_expand(path)
15. │ └─usethis::proj_path(test_file_name)
16. │ └─usethis::ui_stop("Paths must be relative to the active project")
17. └─glue (local) `<fn>`("usethis::ui_path(usethis::proj_path(test_file_name),\nusethis::proj_path())")
18. ├─.transformer(expr, env) %||% .null
19. └─glue (local) .transformer(expr, env)
20. └─base::eval(parse(text = text, keep.source = FALSE), envir)
21. └─base::eval(parse(text = text, keep.source = FALSE), envir)
── Error ('test-functions.R:43:3'): `make_tests_shell_fun()` works ─────────────
<usethis_error/error/condition>
Error: Paths must be relative to the active project
Backtrace:
▆
1. ├─exampletestr::make_test_shell_fun(...) at test-functions.R:43:2
2. │ ├─withr::with_options(...)
3. │ │ └─base::force(code)
4. │ ├─usethis::ui_info("Wrote {usethis::ui_path(usethis::proj_path(test_file_name),\n usethis::proj_path())}.")
5. │ │ └─glue::glue(x, .envir = .envir)
6. │ │ └─glue::glue_data(...)
7. │ ├─usethis::ui_path(usethis::proj_path(test_file_name), usethis::proj_path())
8. │ │ └─fs::is_dir(x)
9. │ │ └─fs::file_info(path, follow = follow)
10. │ │ └─fs::path_expand(path)
11. │ └─usethis::proj_path(test_file_name)
12. │ └─usethis::ui_stop("Paths must be relative to the active project")
13. └─glue (local) `<fn>`("usethis::ui_path(usethis::proj_path(test_file_name),\nusethis::proj_path())")
14. ├─.transformer(expr, env) %||% .null
15. └─glue (local) .transformer(expr, env)
16. └─base::eval(parse(text = text, keep.source = FALSE), envir)
17. └─base::eval(parse(text = text, keep.source = FALSE), envir)
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 16 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... [8s/10s] OK
- checking PDF version of manual ... [5s/9s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR