我使用R包testthat包括一个测试的一个简单的例子, testthat::expect_equal(1,0, label = 'First')
Error: First not equal to 0. 1/1 mismatches [1] 1 - 0 == 1 标签参数替代“1”由一个字,得到更实用的错误消息。现在我有兴趣替换'0'。这样,我们得到类似 Error: First not e
我将我的包提交给了CRAN,并且未通过CRAN R CMD检查。 这是他们得到了错误: * checking tests ... ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
Type 'contributors()' for more information and