lib unspecified & Error in loadNamespace

后端 未结 5 863
陌清茗
陌清茗 2020-11-27 17:20

I had everything working with R and RStudio, but then I moved the folders when cleaning up my computer directories & files. Now I\'m getting the error message below.

相关标签:
5条回答
  • 2020-11-27 18:00

    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"))
    
    0 讨论(0)
  • 2020-11-27 18:00

    I got this error while installing the library 'tidyverse'. Removed the error by upgrading R from v3.4 to v3.6

    0 讨论(0)
  • 2020-11-27 18:06

    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.

    0 讨论(0)
  • 2020-11-27 18:23

    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.

    0 讨论(0)
  • 2020-11-27 18:24

    Use this:

    install.packages("colorspace", dependencies = TRUE)
    
    0 讨论(0)
提交回复
热议问题