rwinlib / gcc-4.9.3

Building R for Windows with the new gcc 4.9.3 toolchain
28 stars 7 forks source link

Rcmd.exe does not handle properly special characters in path #12

Open ClementWalter opened 7 years ago

ClementWalter commented 7 years ago

I have encontered the following issue running Rcmd.exe with powershell to install a package of my own:

PS C:\Users\Clément\dev\main\myPackage> C:\'Program Files'\R\R-3.4.0\bin\x64\Rcmd.exe INSTALL --no-multiarch --with-keep.source C:\Users\"Clément"\dev\main\myPackage
* installing to library 'C:/Users/Clément/Documents/R/win-library/3.4'
* installing *source* package 'myPackage' ...
Warning in file(file, if (append) "a" else "w") :
  cannot open file 'C:/Users/Climent/Documents/R/win-library/3.4/myPackage/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") :
  cannot open the connection
ERROR: installing package DESCRIPTION failed for package 'myPackage'
* removing 'C:/Users/Clément/Documents/R/win-library/3.4/myPackage'

This seems to be due to a wrong support of special character, precisely the é being replaced by an i