Reputation: 9
I have a problem in using Rcpp from Rexcel.
(especially, sourceCpp()
function)
I'm running a 64-bit Windows 10 platform.
I installed R ver 3.3.1 and RExcel.
I also installed Rtools by Rtools34.exe.
I can use RExcel properly if I don't use sourceCpp()
.
Hoewver, when I use sourceCpp()
function, I have an error.
From Rexcel, I execute the command
library(Rcpp)
and this step, there is no error.
Next, I put the following command
sourceCpp("C:/Users/ChrisCCCCC/Desktop/ChrisCCCCC/program/samplecode.cpp")
and Run code.Then, the error message
Error in command:
sourceCpp("C:/Users/ChrisCCCCC/Desktop/ChrisCCCCC/program/samplecode.cpp")
'C:/Program' not found
attr(,class)
[1] try-error
Is anyone else know the reason of this error?
Of course I set the path for Rtools. and I can run the code
sourceCpp("C:/Users/ChrisCCCCC/Desktop/ChrisCCCCC/program/samplecode.cpp")
with no error from normal RGui and RStudio.
Why sourceCpp()
causes an error through RExcel while there is no error through normal RGui?
Can anyone help me, please?
Upvotes: 0
Views: 120