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.
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"))
I got this error while installing the library 'tidyverse'. Removed the error by upgrading R from v3.4 to v3.6
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.
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.
Use this:
install.packages("colorspace", dependencies = TRUE)