我正在使用 R 并在没有互联网连接的服务器上工作。所以我不得不搜索如何从 zip 文件安装软件包。我想使用 lubridate 包。
install.packages("V:/R/lubridate_1.3.3.zip", repos=NULL)
然后我尝试使用
library(lubridate)
year(data$date)
但我收到一个错误package or namespace load failed for "lubridate"
。和function year could not be found
.
我忘了任何步骤吗?