covr :: package_coverage报告“没有这样的文件或目录”

时间:2019-07-04 22:03:01

标签: r testing package code-coverage covr

我试图查看sumbose/iRF的代码覆盖率,所以我做了一个git clone,在目录内部启动了R会话,然后

> library(covr)
> package_coverage()
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In utils::install.packages(repos = NULL, lib = tmp_lib, pkg$path,  :
  installation of package ‘/private/tmp/iRF’ had non-zero exit status
2: In file(con, "r") :
  cannot open file '/private/var/folders/ny/f06ns0d568bgf6s559z8j_9m0000gn/T/RtmpAr8dLV/R_LIBS168866d1ef32f/iRF/R/iRF': No such file or directory

但是,R CMD INSTALL iRFinstall.packages('iRF', repos = NULL)都按预期安装了程序包。

0 个答案:

没有答案