- using R Under development (unstable) (2025-02-15 r87723)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
- running under: Fedora Linux 40 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘logrx/DESCRIPTION’ ... OK
- this is package ‘logrx’ 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 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 ‘logrx’ can be installed ... [10s/11s] OK
See the install log for details.
- 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 code 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 whether startup messages can be suppressed ... 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 ... [13s/17s] OK
- checking Rd files ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [10s/15s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [45s/67s] ERROR
Running ‘testthat.R’ [45s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(logrx)
>
> test_check("logrx")
[1] "hello logrx"
hello logrx
this is outputhello logrx
this is outputhello logrx
this is outputhello logrx
this is output
processing file: ex1.Rmd
[1] "print"
output file: ex1.knit.md
/data/gannet/ripley/bin/pandoc +RTS -K512m -RTS ex1.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output ex1.html --lua-filter /data/gannet/ripley/R/test-dev/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /data/gannet/ripley/R/test-dev/rmarkdown/rmarkdown/lua/latex-div.lua --lua-filter /data/gannet/ripley/R/test-dev/rmarkdown/rmarkdown/lua/table-classes.lua --embed-resources --standalone --variable bs3=TRUE --section-divs --template /data/gannet/ripley/R/test-dev/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable theme=bootstrap --mathjax --variable 'mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /tmp/RtmpsEgPOb/working_dir/RtmpIj6DFT/rmarkdown-str158736559d923d.html
Output created: ex1.html
Warning in for (i in 1L:d2) { :
closing unused connection 4 (/tmp/RtmpsEgPOb/working_dir/RtmpIj6DFT/log_out_nested.Rds)
processing file: ref/ex1.Rmd
output file: /tmp/RtmpsEgPOb/working_dir/RtmpIj6DFT/file1587364171096.R
Rows: 3
Columns: 2
$ cyl <dbl> 4, 6, 8
$ mean <dbl> 26.66364, 19.74286, 15.10000
[1] "hello logrx"
Error: ref/ex4.R:5:0: unexpected end of input
3:
4: print("hello logrx"
^
[1] 1
[1] 1
processing file: ref/ex1.Rmd
output file: /tmp/RtmpsEgPOb/working_dir/RtmpIj6DFT/file1587367be7b0e6.R
[1] "print"
[1] "log print"
[1] "log print 2"
log catlog cat 2log inform
log inform 2
log message
log message 2
Error: log error
Attaching package: 'magrittr'
The following objects are masked from 'package:testthat':
equals, is_less_than, not
[1] "hello logrx"
hello logrx
this is outputhello again logrx
this is outputhello logrx
this is output[1] "log print"
[1] "log print 2"
log catlog cat 2log inform
log inform 2
log message
log message 2
Error: log error
[1] "log print"
[1] "log print 2"
log catlog cat 2log inform
log inform 2
log message
log message 2
Error: log error
[1] 1
[1] 1
[ FAIL 2 | WARN 9 | SKIP 0 | PASS 113 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get.R:191:4'): library lint returns expected result when multiple linters are set ──
write_lint_results() (`actual`) not identical to `expected` (`expected`).
lines(actual)[1:6] vs lines(expected)[1:6]
"Line 6 [library_call_linter] Move all library calls to the top of the script."
""
- "Line 8 [undesirable_operator_linter] Avoid undesirable operator `<<-`. It"
+ "Line 8 [undesirable_operator_linter] Operator `<<-` is undesirable. It"
"assigns outside the current environment in a way that can be hard to reason"
"about. Prefer fully-encapsulated functions wherever possible, or, if"
"necessary, assign to a specific environment with assign(). Recall that you"
── Failure ('test-writer.R:196:4'): write_lint_results will return a formatted lint results element ──
write_lint_results() (`actual`) not identical to paste0(...) (`expected`).
lines(actual)[1:10] vs lines(expected)[1:10]
- "Line 3 [undesirable_operator_linter] Avoid undesirable operator `<<-`. It"
+ "Line 3 [undesirable_operator_linter] Operator `<<-` is undesirable. It"
"assigns outside the current environment in a way that can be hard to reason"
"about. Prefer fully-encapsulated functions wherever possible, or, if"
"necessary, assign to a specific environment with assign(). Recall that you"
"can create an environment at the desired scope with new.env()."
""
- "Line 4 [undesirable_operator_linter] Avoid undesirable operator `<<-`. It"
+ "Line 4 [undesirable_operator_linter] Operator `<<-` is undesirable. It"
"assigns outside the current environment in a way that can be hard to reason"
"about. Prefer fully-encapsulated functions wherever possible, or, if"
"necessary, assign to a specific environment with assign(). Recall that you"
[ FAIL 2 | WARN 9 | SKIP 0 | PASS 113 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [34s/48s] OK
- checking PDF version of manual ... [8s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR