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` with space in `.libPaths()[1]` #73

Closed
mathematicalcoffee opened this Issue Mar 13, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@mathematicalcoffee

mathematicalcoffee commented Mar 13, 2012

Issue was raise in this stackoverflow question -- the user is installing a package (under cygwin) using install_github, and their R library path has a space in it.

Copied the log from that question:

library(devtools)
install_github('ggbiplot','vqv')
Warning: invalid package 'Yaseen/R/win-library/2.14'
Error: ERROR: cannot cd to directory 'C:/Users/Muhammad'
Error: Command failed (1)
In addition: Warning message:
running command '"C:/PROGRA~1/R/R-214~1.2/bin/i386/R" CMD INSTALL C:\Users\MUHAMM~1\AppData\Local\Temp\Rtmpsx4n5u/ggbiplot_0.5.tar.gz --library=C:/Users/Muhammad Yaseen/R/win-library/2.14' had status 1

The problem arises because the --library=... is not quoted.

Having a (albeit very quick) look at the devtools sources, it looks like if you change install.r such that .libPaths()[1] is quoted in

R(paste("CMD INSTALL ", built_path, " --library=", .libPaths()[1], # <--
    sep = ""), tempdir())

The error might be fixed.

@hadley hadley closed this in a414a18 Mar 13, 2012

@hadley

This comment has been minimized.

Member

hadley commented Mar 13, 2012

Hmmm, I wonder if I also need to quote it in system.r

@lock lock bot locked and limited conversation to collaborators Sep 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.