Error installing packages from non-CRAN sources RRS feed

  • Question

  • I just made the jump from regular R to MRO, and I'm trying to install all the packages that I use.  However, when I try to install a non-CRAN package I get the following error (key portion bolded).  This also happened when I tried to install a package from github using devtools.  Any help would be appreciated.

    Error text:

    install.packages("FinancialInstrument", repos="")
    installing the source package ‘FinancialInstrument’

    trying URL ''
    Content type 'application/x-gzip' length 179280 bytes (175 KB)
    downloaded 175 KB

    'D:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    The downloaded source packages are in
    Warning messages:
    1: running command '"D:/Program Files/Microsoft/MRO-3.3.2/bin/x64/R" CMD INSTALL -l "D:\Program Files\Microsoft\MRO-3.3.2\library" C:\Users\Kevin\AppData\Local\Temp\RtmpgxE2j4/downloaded_packages/FinancialInstrument_1.2.0.tar.gz' had status 1 
    2: In install.packages("FinancialInstrument", repos = "") :
      installation of package ‘FinancialInstrument’ had non-zero exit status

    Monday, February 27, 2017 2:07 PM

All replies

  • I *was* able to download the package as a zip file and then install it, but I'd like to avoid having to do that in the future.  Please let me know what other system information would be helpful!
    Monday, February 27, 2017 2:19 PM
  • There are a couple of issues.

    a)This is reproducible behavior in both CRAN R and MRO by changing the install directory to “D:/Program Files/…” rather than “C:/Program Files. Changing to C: solves this.

    b) R follows Unix style thus spaces are a challenge - "Program Files" thus is not correctly parsed is the other potential reason.


    Tuesday, February 28, 2017 4:26 PM