Note: As of the release of 0.99, RStudio Desktop no longer requires that the manipulate and rstudio packages be installed on startup. If you're seeing this error we recommend you upgrade to the latest version of RStudio Desktop available here: http://www.rstudio.com/products/rstudio/download/
If you’re using RStudio with Windows and your library is located on a networked drive, you may see the following errors when you start RStudio:
Error installing package: '\\xxx\name\R' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. * installing source package 'rstudio' ... [...] ERROR: loading failed for 'i386', 'x64' * removing '\\xxx/name/R/win-library/3.1/rstudio' Error installing package: '\\xxx\name\R' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. * installing source package 'manipulate' ... [...] ERROR: loading failed for 'i386', 'x64' * removing '\\xxx/name/R/win-library/3.1/manipulate'
This is caused by the library location for R being set to a UNC path which R does not support. When you open RStudio, it automatically checks to see if the manipulate and rstudio packages are present in your library and tries to install them if they’re not found. In this case due to the library paths being incorrectly set, it fails and you see the error above.
In order to fix this, you need to set your package library location so that it uses a path that R can correctly read and install packages to. You can either create a new library in a local directory, or mount the networked drive to a letter such as Z: and set the library path to that new path. See the following R documentation on how R finds your library path, and how you can change it:
If you’ve changed your library path and are still seeing this error, let us know on our support forums.