- using R Under development (unstable) (2025-02-14 r87718)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-16) 14.2.0
GNU Fortran (Debian 14.2.0-16) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- 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 ... OK
See the install log for details.
- 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 code 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/2s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [1s/2s] 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/9s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] 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 ... [5s/8s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [22s/33s] ERROR
Running ‘testthat.R’ [21s/33s]
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
/usr/bin/pandoc +RTS -K512m -RTS ex1.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output ex1.html --lua-filter /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rmarkdown/rmarkdown/lua/latex-div.lua --lua-filter /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/rmarkdown/rmarkdown/lua/table-classes.lua --embed-resources --standalone --variable bs3=TRUE --section-divs --template /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/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/RtmpBtEDNg/rmarkdown-str30ddd042806b5.html
Output created: ex1.html
Warning in for (pkg in package) { :
closing unused connection 4 (/tmp/RtmpBtEDNg/log_out_nested.Rds)
processing file: ref/ex1.Rmd
output file: /tmp/RtmpBtEDNg/file30ddd049c89164.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/RtmpBtEDNg/file30ddd04d83fbcd.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 ... [11s/14s] OK
- checking PDF version of manual ... [5s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR