Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install packages to a personal library #3

Open
dmattek opened this issue Jun 5, 2018 · 2 comments
Open

Cannot install packages to a personal library #3

dmattek opened this issue Jun 5, 2018 · 2 comments

Comments

@dmattek
Copy link

dmattek commented Jun 5, 2018

R keeps trying to install packages to /usr/local/lib/R/site-library even if personal library chosen during package installation.

When installing a package:

> install.packages('devtools')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in install.packages("devtools") :
  'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to use a personal library instead?  (y/n) y

And then, after downloading packages:

Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’

Also, it keeps fetching packages from https://mran.microsoft.com even if a different repo chosen in Rstudio GUI.

@mjstealey
Copy link
Owner

Image has been updated, package installs should now default to user's home directory at:

/home/$USER/R/x86_64-pc-linux-gnu-library/3.4

@ishonest
Copy link

ishonest commented Sep 26, 2019

@mjstealey Am I doing anything wrong here?

> install.packages('devtools')
Installing package into ‘C:/Users/QED/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
         binary source needs_compilation
devtools  2.2.0  2.2.1             FALSE

installing the source package ‘devtools’

trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.2.1.tar.gz'
Content type 'application/x-gzip' length 372273 bytes (363 KB)
downloaded 363 KB

Error: ERROR: no permission to install to directory 'C:/Users/QED/Documents/R/win-library/3.5'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\QED\AppData\Local\Temp\RtmpEZhZXf\downloaded_packages’
> .libPaths()
[1] "C:/Users/QED/Documents/R/win-library/3.5"
[2] "C:/Program Files/R/R-3.5.2/library" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants