When I start to install "ggplot2" pacakages following this command on R studio 1.1.442, it gets installed but with following information shown in the console:
> library("ggplot2")
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.4.4
Afterwards, as it's mentioned above regarding package of "Rcpp", I made another command to install it and it gets installed with following information:
> install.packages("Rcpp")
Installing package into ‘C:/Users/User/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/Rcpp_0.12.16.zip'
Content type 'application/zip' length 4371492 bytes (4.2 MB)
downloaded 4.2 MB
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\User\Documents\R\win-library\3.4\file1b4848d92905\Rcpp’ to ‘C:\Users\User\Documents\R\win-library\3.4\Rcpp’
The downloaded binary packages are in
C:\Users\User\AppData\Local\Temp\RtmpWAhEmJ\downloaded_packages
Afterwards, I try to load "ggplot2" package in R, but it doesn't gets loaded and shows the same previous command.
> library("ggplot2")
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘Rcpp’
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.4.4
Please do help, what should I do to resolve this issue?