Permalink
Browse files

correctly escape paths for rstudio package install

  • Loading branch information...
1 parent 0e7f52d commit 301496991b51f868f8cdeede4d1f52a5307c1233 @jjallaire jjallaire committed Mar 12, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cpp/session/modules/build/SessionBuild.cpp
@@ -1230,9 +1230,9 @@ SEXP rs_installPackage(SEXP pkgPathSEXP, SEXP libPathSEXP)
// run command
RCommand installCommand(rBinDir);
installCommand << "INSTALL";
- installCommand << "--library";
- installCommand << r::sexp::asString(libPathSEXP);
- installCommand << r::sexp::asString(pkgPathSEXP);
+ installCommand << "-l";
+ installCommand << "\"" + r::sexp::asString(libPathSEXP) + "\"";
+ installCommand << "\"" + r::sexp::asString(pkgPathSEXP) + "\"";
core::system::ProcessResult result;
error = core::system::runCommand(installCommand.commandString(),
core::system::ProcessOptions(),

0 comments on commit 3014969

Please sign in to comment.