I am having difficulties installing ggplot2. I have tried the following:
- running Rx64 (3.6.3) as administrator
- specifying the library location
- installing rlang
- including dependencies
- uninstalling and reinstalling R and R-Studio
Below is the script that appears after attempting installation.
install.packages('ggplot2')
Installing package into ‘\syrcl-svr/Users/tylerg/My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
ggplot2 3.2.1 3.3.0 FALSE
installing the source package ‘ggplot2’
trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB
'\syrcl-svr\Users\tylerg\My Documents\R\Loney'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
- installing source package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in findpack(package, lib.loc) :
there is no package called 'ggplot2'
Calls: -> findpack
Execution halted
ERROR: lazy loading failed for package 'ggplot2' - removing '\syrcl-svr/Users/tylerg/My Documents/R/win-library/3.6/ggplot2'
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status