When I was about to use the examples' output (examples from .Rd files) as a reference output, I noticed that the reference output produced by devtools is different to what a plain R CMD check produces. Notably, the file pkg_name-Ex.Rout (to be stored at /tests/Examples/pkg_name-Ex.Rout.save) contains a bunch of line like these which are not in the same file generated by R CMD check:
base::assign(".ExTimings", "pkg_name-Ex.timings", pos = 'CheckExEnv')
base::cat("name\tuser\tsystem\telapsed\n", file=base::get(".ExTimings", pos = 'CheckExEnv'))
base::assign(".format_ptime",
+ function(x) {
+ if(!is.na(x[4L])) x[1L] <- x[1L] + x[4L]
+ if(!is.na(x[5L])) x[2L] <- x[2L] + x[5L]
+ options(OutDec = '.')
+ format(x[1L:3L], digits = 7L)
+ },
+ pos = 'CheckExEnv')
### * </HEADER>
...
base::assign(".dptime", (proc.time() - get(".ptime", pos = "CheckExEnv")), pos = "CheckExEnv")
base::cat("data_name", base::get(".format_ptime", pos = 'CheckExEnv')(get(".dptime", pos = "CheckExEnv")), "\n", file=base::get(".ExTimings", pos = 'CheckExEnv'), append=TRUE, sep="\t")
...
base::assign(".ptime", proc.time(), pos = "CheckExEnv")
Consequently when the file generated by devtool's check is used as reference output, a lot of differences are found.
I use devtools 1.13.4 (2017-11-09 CRAN (R 3.4.2)).
When I was about to use the examples' output (examples from .Rd files) as a reference output, I noticed that the reference output produced by devtools is different to what a plain
R CMD checkproduces. Notably, the filepkg_name-Ex.Rout(to be stored at/tests/Examples/pkg_name-Ex.Rout.save) contains a bunch of line like these which are not in the same file generated byR CMD check:Consequently when the file generated by devtool's check is used as reference output, a lot of differences are found.
I use devtools 1.13.4 (2017-11-09 CRAN (R 3.4.2)).
Here are some examples from the wild:
https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/VeryLargeIntegers-00check.html
https://github.com/igraph/rigraph_revdep_checks/blob/master/revdep_logs/BDgraph/BDgraph-Ex.Rout