Skip to content

Cannot pass args through install_git  #1373

Description

@StevenMMortimer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorinstall

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions