ggplot2 installation issues

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.

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 ''
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

Very often R has troubles installing packages on network drives, I would recommend you to use a local drive instead for your package library, that would save you a lot of headaches.

Oh yes, I tried specifying a local library, but it says that all other folders are unwriteable.

If I was you, I would contact my IT department and asks them to give me write permissions on a local path for my package library.

This worked. Thank you!

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.