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 pass args through install_git #1373

Closed
StevenMMortimer opened this Issue Oct 9, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@StevenMMortimer
Contributor

StevenMMortimer commented Oct 9, 2016

The install_git function has an argument that is called args and is deprecated. The problem is that install_git passes arguments through to install via ... and args is a valid argument I want to pass to install.

I tried using INSTALL_opts which should work it's way down to install.packages, but that doesn't seem to work. I believe a solution could remove the current deprecated args argument from install_git. Here is an example of some code that I'm having trouble with:

devtools::install_git("a.repo.url.here", 
                      branch="master", 
                      dependencies=FALSE,
                      args=c("--no-multiarch"))
Error: Command failed (1)
In addition: Warning message:
`args` is deprecated 

Trying INSTALL_opts

devtools::install_git("a.repo.url.here", 
                      branch="master", 
                      dependencies=FALSE,
                      INSTALL_opts=c("--no-multiarch"))

--no-multiarch is ignored completely

Session info -------------------------------------------------------------
 setting  value                       
 version  R version 3.2.2 (2015-08-14)
 system   x86_64, mingw32             
 ui       RStudio (0.99.441)          
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            
 date     2016-10-09                  

Packages -------------------------------------------------------------
 package  * version date       source        
 devtools   1.12.0  2016-06-24 CRAN (R 3.2.5)
 digest     0.6.10  2016-08-02 CRAN (R 3.2.5)
 git2r      0.15.0  2016-05-11 CRAN (R 3.2.5)
 memoise    1.0.0   2016-01-29 CRAN (R 3.2.5)
 withr      1.0.2   2016-06-20 CRAN (R 3.2.5)
@lock

This comment has been minimized.

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.