Skip to content

Installing local binary package with install_url fails on Windows. #1765

@stumoodie

Description

@stumoodie

When trying to install a locally built binary package, install_url fails. It seems this problem is very similar to issue #1191. The command I executed is:

devtools::install_url("file://c:/package/sor_0.1.0.zip")

And fails with the following message:

Installing sor "C:/PROGRA~1/R/R-34~1.4/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD  \
   INSTALL "C:/Users/smoodie/AppData/Local/Temp/RtmpW4pfHQ/devtoolse431616e96/sor"  \
   --library="C:/Users/smoodie/Documents/R/win-library/3.4" --install-tests

* installing *binary* package 'sor' ...
Warning: running command 'cp -R . "C:/Users/smoodie/Documents/R/win-library/3.4/sor" || ( internal cd - .| (cd "C:/Users/smoodie/Documents/R/win-library/3.4/sor" && internal -xf -))' had status 127
ERROR: installing binary package failed
* removing 'C:/Users/smoodie/Documents/R/win-library/3.4/sor'
In R CMD INSTALL
Installation failed: Command failed (1)

I'm using devtools 1.13.5, RStudio 1.1.423
and R 3.4.4 64bit. It also occurred with R 3.4.3

Output from R.version below:

platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          4.4                         
year           2018                        
month          03                          
day            15                          
svn rev        74408                       
language       R                           
version.string R version 3.4.4 (2018-03-15)
nickname       Someone to Lean On     

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions