社区首页 >问答首页 >R lubridate包安装-延迟加载失败问R lubridate包安装-延迟加载失败ENStack Overflow用户提问于 2013-12-04 01:10:04回答 3查看 14.8K关注 0票数 4我正在尝试在ubuntu上安装R中的lubridate。我的错误越来越小。从其他来源了解,这与我的系统有关。你能帮我解决这个问题吗:
代码语言:javascript复制> 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 statuslubridater关注问题分享EN回答 3推荐最新Stack Overflow用户发布于 2013-12-04 04:15:00
我今天在Red Hat上的R版本2.15.3中安装lubridate时遇到了同样的错误。在我看到你的问题后,我去CRAN上查看了lubridate的最新版本(1.3.2)的发布日期。发布日期是2013年11月26日-就在几天前。我从lubridate archive page下载了之前版本lubridate_1.3.1.tar.gz的归档文件,该版本于2013年10月31日发布。
使用命令-
R命令安装lubridate_1.3.1.tar.gz
我能够在我的R 2.15.3安装中安装lubridate 1.3.1。
收藏分享票数 6ENStack Overflow用户发布于 2018-06-07 18:17:32
如果你读到了这个错误,并且和我有相同的信息:
“loadNamespace中出现错误(j <- i[1L],c(lib.loc,.libPaths()),versionCheck = vI[j]):正在加载命名空间‘Rcpp’0.12.12,但需要>= 0.12.13”
您可能需要先安装Rcpp包,然后再尝试安装为我工作的lubridate package...it!
收藏分享票数 1ENStack Overflow用户发布于 2018-03-07 22:46:54
对于视窗系统,请从此处获取最新版本:https://cran.r-project.org/web/packages/lubridate/index.html
并按此处所述与install.packages(path_to_file, repos = NULL, type="source")一起安装:https://stackoverflow.com/a/1474125/2745116
收藏分享票数 0EN页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持原文链接:https://stackoverflow.com/questions/20357411
复制相关文章