运行时,R CMD check我收到以下注释:
checking for future file timestamps ... NOTE
unable to verify current time
Run Code Online (Sandbox Code Playgroud)
我已经看到这里讨论过,但我不确定它正在检查哪些文件的时间戳,所以我不确定我应该查看哪些文件。这发生在我的 Windows 本地和不同系统上的远程(使用 github 操作)。
qas*_*sta 66
看看https://svn.r-project.org/R/trunk/src/library/tools/R/check.R check 命令依赖于一个外部网络资源:
now <- tryCatch({
foo <- suppressWarnings(readLines("http://worldclockapi.com/api/json/utc/now",
warn = FALSE))
Run Code Online (Sandbox Code Playgroud)
此资源http://worldclockapi.com/目前不可用。
因此发生以下情况(请参阅相同的包源):
if (is.na(now)) {
any <- TRUE
noteLog(Log, "unable to verify current time")
Run Code Online (Sandbox Code Playgroud)
另见参考资料:https : //community.rstudio.com/t/r-devel-r-cmd-check-failing-because-of-time-unable-to-verify-current-time/25589
因此,不幸的是,这需要 R 开发团队修复检查功能……或者网络资源再次上线。
Pau*_*ain 25
要添加到 qasta 的答案中,您可以通过将_R_CHECK_SYSTEM_CLOCK_环境变量设置为零来使此检查静音,例如Sys.setenv('_R_CHECK_SYSTEM_CLOCK_' = 0)