[英]R lubridate package installation - Lazy loading failed
我想在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檢查了最新版本(1.3.2)的lubridate的發布日期。 發布日期是2013年11月26日 - 就在幾天前。 從lubridate存檔頁面 ,我下載了以前版本的存檔,luridate_1.3.1.tar.gz,於2013年3月31日發布。
使用命令 -
R CMD INSTALL lubridate_1.3.1.tar.gz
我能夠在我的R 2.15.3安裝中安裝lubridate 1.3.1。
如果您閱讀錯誤並與我有相同的消息:
“loadNamespace中的錯誤(j < - i [[1L]],c(lib.loc,.libPaths()),versionCheck = vI [[j]]):正在加載命名空間'Rcpp'0.12.12,但是> = 0.12.13是必需的“
您可能需要首先安裝Rcpp
軟件包,然后嘗試安裝lubridate
軟件包......它對我lubridate
!
對於Windows,請在此處獲取最新版本: 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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.