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

install_github() tries to install deps in the wrong lib dir #870

Closed
dtenenba opened this issue Jul 7, 2015 · 1 comment
Closed

install_github() tries to install deps in the wrong lib dir #870

dtenenba opened this issue Jul 7, 2015 · 1 comment

Comments

@dtenenba
Copy link

@dtenenba dtenenba commented Jul 7, 2015

Related to #869, if I am trying to install a package that has a dependency on rmarkdown and rmarkdown is not installed, I see this:

> install_github("dtenenba/anRpackage", build_vignettes=TRUE,   repos="http://bioconductor.org/packages/3.2/bioc",   dependencies=TRUE, type="source")
Downloading github repo dtenenba/anRpackage@master
Installing anRpackage
Skipping 1 packages not available: BiocCheck
Installing 1 packages: rmarkdown
Warning in utils::install.packages(pkgs, repos = repos, type = type, ...,  :
  'lib = "http://cran.rstudio.com"' is not writable
Would you like to use a personal library instead?  (y/n) 

Sounds like devtools (or someone?) thinks that it should install the package in the http://cran.rstudio.com directory on my machine, which is obviously not a valid directory name.
Not sure how the lib argument got set to that. I have no trouble installing the package with:

install.packages("rmarkdown", repos="http://cran.rstudio.com")
> session_info()
Session info -------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.1 (2015-06-18)
 system   x86_64, darwin13.4.0        
 ui       X11                         
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/Los_Angeles         

Packages -----------------------------------------------------------------------
 package   * version date       source        
 curl        0.9.1   2015-07-04 CRAN (R 3.2.0)
 devtools  * 1.8.0   2015-05-09 CRAN (R 3.2.0)
 digest      0.6.8   2014-12-31 CRAN (R 3.2.0)
 git2r       0.10.1  2015-05-07 CRAN (R 3.2.0)
 memoise     0.2.1   2014-04-22 CRAN (R 3.2.0)
 Rcpp        0.11.6  2015-05-01 CRAN (R 3.2.0)
 rversions   1.0.1   2015-06-06 CRAN (R 3.2.0)
 xml2        0.1.1   2015-06-02 CRAN (R 3.2.0)

@hadley hadley closed this in 884d6e2 Sep 2, 2015
@lock
Copy link

@lock lock bot commented Sep 18, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant