[Rcpp-devel] RInside makefile on Windows

Dirk Eddelbuettel edd at debian.org
Fri Apr 22 23:14:45 CEST 2011


On 22 April 2011 at 16:00, Nathan Johnson wrote:
| I tried cmd.exe and the Msys shell. 
| 
| Even if I hardcode each line, such as: 
| RCPPFLAGS := 		C:/Program Files/R/R-2.12.2/bin/R CMD config
| --cppflags
| or
| RCPPFLAGS := 		C:/ PROGRA~1/R/R-2.12.2/bin/R CMD config --cppflags

(No space though, right?)

| or
| with $(...) included on each, the same errors still occur with "/bin/R" not
| found

First principles then.  Add a new target 'testThis' at the top of the
Makefile.win and make it

testThis:
		C:/Program Files/R/R-2.12.2/bin/R --version

or

testThis:
		C:/Program Files/R/R-2.12.2/bin/R.exe --version

If you have R.exe in that location, and your $PATH is correct, then this
should query R for its version.

If that works, adapt the rest of the Makefile accordingly.  If that doesn't
work then I am not quite sure what else to suggest.

Dirk 

-- 
Gauss has an Erdos number of -1.
   -- #63 at http://www.gaussfacts.com


More information about the Rcpp-devel mailing list