I have installed the packages psych and ggplot2 in Rstudio. However I am not able to load these packages because I keep getting these error messages:
library("psych", lib.loc="~/R/win-library/3.3")
Error in runHook(".onLoad", env, package.lib, package) :
cannot open file 'C:/Users/Ernstsen/Documents/R/win-library/3.3/mnormt/R/mnormt.rdb': No such file or directory
Error: package or namespace load failed for ‘psych’
> library("ggplot2", lib.loc="~/R/win-library/3.3")
Error in library.dynam(lib, package, package.lib) :
DLL ‘colorspace’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
And this error:
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Ernstsen\AppData\Local\Temp\RtmpoTRXOY\downloaded_packages
> library("ggplot2", lib.loc="~/R/win-library/3.3")
Error in library.dynam(lib, package, package.lib) :
DLL ‘colorspace’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
I have tried installing Rcpp, reinstalling R and Rstudio, using install.packages('ggplot2', dependencies = TRUE) for both packages, I'm not sure what else I can do. This program was working fine on my older computer before it died.