0

rpackage用 Rstudio 构建我的,一切都很好。在使用check按钮时rstudio,它会给我一些警告,如下所示:

* checking whether package 'rpackage' can be installed ... WARNING
Found the following significant warnings:
  Warning: package 'e1071' was built under R version 3.2.4
  Warning: package 'frbs' was built under R version 3.2.4
  Warning: package 'randomForest' was built under R version 3.2.4
  Warning: package 'R.matlab' was built under R version 3.2.4
  Warning: package 'PerformanceAnalytics' was built under R version 3.2.4
  Warning: package 'xts' was built under R version 3.2.4
  Warning: package 'zoo' was built under R version 3.2.4

如何删除这些警告?

此外,这是我DESCRIPTION文件的一部分:

Depends: e1071(>= 1.6-7),frbs(>= 3.1-0),randomForest(>= 4.6-12), R.matlab(>= 3.5.1), PerformanceAnalytics(>= 1.4.3541)
License: No License
LazyData: No
RoxygenNote: 5.0.1
4

1 回答 1

2

这可能是您的 R 版本已过时:用于3.2.4构建这些包的 R 版本 ( ) 领先于您的版本,因此会返回警告。

您可以在启动新会话时在序言中或通过键入来检查当前版本R.version

大多数时候它没有实际后果(对于 R 版本之间的小差距),但是:i)您使用的功能可能受到版本更改的影响,并且 ii)拥有最后一个 R 稳定版本是个好主意。

于 2016-04-08T06:54:59.550 回答