Don't use the pathname with embedded blanks C:\Program Files\R\R-2.3.1\bin Use the 8.3 equivalent C:\Progra~1\R\R-2.3.1\bin You can find the 8.3 name with dir /x