I am trying to build an R package using RStudio on Windows 8 Pro. When I attempt to build the package by running build()
I get the error:
"C:/Program Files/R/R-30~1.2/bin/x64/R" --vanilla CMD build "H:File AssemblyFileAssembler"
--no-manual --no-resave-data
'C:Program' is not recognized as an internal or external command, operable program or batch file.
Error: Command failed (1)
I already have MiKTEX
installed and I have checked this by:
Sys.which("pdflatex")
pdflatex
"C:\Program Files (x86)\MIKTEX~1.9\miktex\bin\pdflatex.exe"
The R version I am using is: R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Loading library(devtools) and running find_rtools(T) gives:
find_rtools(T)
Scanning path...
ls : c:Rtoolsinls.exe
gcc: c:RtoolsGCC-46~1.3ingcc.exe
VERSION.txt
Rtools version 3.1.0.1942
Version: 3.1
[1] TRUE
In addition, the path for rtools
exes are:
Sys.which("ls.exe")
ls.exe
"c:\Rtools\bin\ls.exe"
Sys.which("gcc.exe")
gcc.exe
"c:\Rtools\GCC-46~1.3\bin\gcc.exe"
And checking the path in R:
Sys.getenv('PATH')
[1] "C:\Program Files\R\R-3.0.2\bin\x64;c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;……other paths…………;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin"
I would really appreciate help with identifying what I have missed out.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…