R lubridate包安装-延迟加载失败

R lubridate包安装-延迟加载失败,r,lubridate,R,Lubridate,我正试图在ubuntu上的R中安装lubridate。 我正在犯错误。从其他来源了解这与我的系统有关。你能帮我解决这个问题吗 > install.packages('lubridate') Installing package(s) into ‘/home/leader/R/i686-pc-linux-gnu-library/2.15’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/src/contrib/lub

我正试图在ubuntu上的R中安装
lubridate
。 我正在犯错误。从其他来源了解这与我的系统有关。你能帮我解决这个问题吗

> install.packages('lubridate')
Installing package(s) into ‘/home/leader/R/i686-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/lubridate_1.3.2.tar.gz'
Content type 'application/x-gzip' length 284897 bytes (278 Kb)
opened URL
==================================================
downloaded 278 Kb

* installing *source* package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** R
** data
**  moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in setClass("Period", contains = c("Timespan", "numeric"), slots = c(year =    "numeric",  : 
 unused argument(s) (slots = c(year = "numeric", month = "numeric", day = "numeric", hour = "numeric", minute = "numeric"))
Error : unable to load R code in package ‘lubridate’
ERROR: lazy loading failed for package ‘lubridate’
* removing ‘/home/leader/R/i686-pc-linux-gnu-library/2.15/lubridate’
Warning message:
 In install.packages("lubridate") :
  installation of package ‘lubridate’ had non-zero exit status

我今天在Red Hat上安装R版本2.15.3中的lubridate时遇到了相同的错误。在我看到你的问题后,我去CRAN查看lubridate最新版本(1.3.2)的发布日期。发布日期是2013年11月26日——就在几天前。从中,我下载了上一版本lubridate_1.3.1.tar.gz的存档,该版本于2013年10月31日发布

使用命令-

R CMD安装lubridate_1.3.1.tar.gz


我能够在我的R2.15.3安装中安装lubridate 1.3.1。

对于Windows,请在此处获取最新版本:


并使用
install.packages(路径\u到\u文件,repos=NULL,type=“source”)
安装,如下所述:

如果您阅读了错误并收到与我相同的消息:

“loadNamespace中出错(需要j=0.12.13)”


您可能需要先安装
Rcpp
软件包,然后再尝试安装
lubridate
软件包…它对我有效!

您是否尝试从其他镜像下载?错误可能意味着您需要最新版本的Rhankyou@Dale库蒂娜…这很有帮助…我遇到了RCurl inst的问题这个链接帮助我解决了RCurl问题。。