【发布时间】:2017-02-20 23:35:59
【问题描述】:
我正在使用win-builder(R-release)测试一个包,包检查失败,但没有返回真正的错误消息。对于 R 3.3.2 和 3.2.0,这些相同的检查在 Windows 和 Linux 上本地运行良好。我没有编译的代码,只有未编译的 R 代码,而且我不会在任何地方重定向输出。
** running tests for arch 'i386' ... ERROR
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(testthat)
> library(mypackage)
>
> test_check("mypackage")
** running tests for arch 'x64' ... [109s] OK
Running 'testthat.R' [108s]
我检查了 testthat.Rout.fail 的底部,它确实以 test_check("mypackage") 结束。
【问题讨论】: