lib unspecified & Error in loadNamespace

青春壹個敷衍的年華 提交于 2019-11-26 20:21:26
DevKhokhar

When you install the package using the RStudio package installer or directly from CRAN, it doesn't install the dependencies ("fracdiff", "Rcpp", "RcppArmadillo" and "colorspace") and hence, R keeps throwing the load namespace error. Installing the package through, automatically installs all the dependencies and solves this problem.

install.packages("forecast",
                 repos = c("http://rstudio.org/_packages",
                           "http://cran.rstudio.com"))

The last time I encountered a very similar problem, I used this code which I got somewhere: install.packages("package's name", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com")) simply put your package's name in the quotation marks. Hope this helps.

satakarni bommuluri

Use this:

install.packages("colorspace", dependencies = TRUE)

I ran into this problem. It turned out that my .Rprofile had calls to a package that was not installed. Removing these lines allowed installation to proceed normally.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!