Installing package into ‘C:/Users/Diksha/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/Diksha/Documents/R/win-library/3.5/plyr/R/plyr.rdb': No such file or directory.
Every time I m trying to install any package, it shows-
{
Installing package into ‘C:/Users/Diksha/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ggplot2_2.2.1.zip'
Content type 'application/zip' length 3157805 bytes (3.0 MB)
downloaded 3.0 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Diksha\AppData\Local\Temp\Rtmp0OBmUc\downloaded_packages
}
but when I run the ggplot command, it shows-
{
Error in ggplot2(data = mydata, aes(x = carat, y = price)) :
could not find function "ggplot2"
}
yes.. showed this-
Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/Diksha/Documents/R/win-library/3.5/lazyeval/R/lazyeval.rdb': No such file or directory
Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/Diksha/Documents/R/win-library/3.5/lazyeval/R/lazyeval.rdb': No such file or directory