我用Rstudio构建我的rpackage
,一切都很顺利。在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
答案 0 :(得分:2)
你的R版本可能已经过时了:使用(3.2.4
)构建这些软件包的R版本领先于你的版本,因此会返回警告。
您可以在发布新会话时或在键入R.version
时在序言中查看当前版本。
大多数情况下它没有实际后果(对于R版本之间的小差距),但是:i)您使用的功能可能受到版本更改的影响而且ii)最后有一个好主意R稳定版。