You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi developers, Several Bioconductor packages have been flagged
as modifying 'library' during R CMD check. Thanks to Tomas Kalibera
for identifying these.
...
3) RUnit summary file:
RUnit has an option to output results to "unitTests/reportSummary.txt" which is written
to the installation tree of a package. Because the output summarizes test results,
which one presumably wants to see after the R process has ended, using tempdir()
or tempfile() may not be appropriate. Possibly the file should be written
to the .Rcheck directory. We aren't sure how to best handle this situation yet.
Tomas may have some guidance eventually.
Last 13 lines of output:
***********************************************
Number of test functions: 10
Number of errors: 0
Number of failures: 0
1 Test Suite :
Rdisop unit testing - 10 test functions, 0 errors, 0 failures
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
Calls: printTextProtocol -> cat -> file
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file '/var/scratchro/tomas/QA/R-73707/lib/Rdisop/unitTests/reportSummary.txt': Read-only file system
Execution halted
The outputs should be saved under the .Rcheck directory. The directory is given as part of fileName argument to printTextProtocol, invoked from the test launcher (e.g. doRUnit.R). The launcher also computes this directory. So could you just use path <- file.path(getwd(), "unitTests") even under R CMD check?
See also thread https://stat.ethz.ch/pipermail/bioc-devel/2017-November/thread.html#12437
The text was updated successfully, but these errors were encountered: