[R] Error Rscript: No such file or directory

From: xavier abulker <xavier_abulker_at_yahoo.fr>
Date: Wed, 04 May 2011 16:49:04 +0100 (BST)

I'm trying to build a simple cpp file using the R CMD SHLIB command and I always receive the same error message:

cygwin warning:
  MS-DOS style path detected: C:/PROGRA~1/R/R-212~1.1/etc/i386/Makeconf   Preferred POSIX equivalent is:
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.   Consult the user's guide for more details about POSIX paths:     http://cygwin.com/cygwin-ug-net/using.html#using-pathnames gcc -shared -s -static-libgcc -o hello.dll tmp.def hello.o Rscript -e Rcpp:::LdFlags() -LC:/PROGRA~1
/R/R-212~1.1/bin/i386 -lR
gcc.exe: Rscript: No such file or directory

Here is what I do:

//file hello.cpp

#include <R.h>
void sayhello() {
 printf("Hello world\n");

R CMD SHLIB hello.c

My confirguration is
R 2.12.2
Windows XP 2002 SP3
I have installed the Rtools components and have included the following links into my path:

C:\Program Files\R\R-2.12.1\bin

Thanks a lot for you help

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 05 May 2011 - 06:25:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive