Re: [R] Win32 & C code

From: Paul Roebuck <>
Date: Thu 08 Jul 2004 - 03:32:41 EST

On Wed, 7 Jul 2004, Simon Cullen wrote:

> I'm trying to get C code working with R. This is my first time writing C
> on Windows and I'm making a mess of it. Help!
> ...
> I seem to be unable to make Windows pay attention to additions to the PATH
> variable so I stuck the code (test.c) into the $R_HOME\bin directory. I
> copied into the same directory mingw32-make.exe and renamed it make.exe
> (as the perl script SHLIB seems to want a make.exe).
> ...

I wrote a batch file to get mine working. Change directory paths to match your setup.


@set PROJ=rwt
@set RBINDIR=C:\R\rw1091\bin
@set TOOLSBINDIR=C:\Rtools\bin
@set PERLBINDIR=C:\Perl\bin
@set TEXBINDIR=C:\PROGRA~1\TeXLive\bin\win32

   #### Next line split for readability ####

@echo PATH=%PATH%

Rcmd build --binary %PROJ%
Rcmd check %PROJ%

SIGSIG -- signature too long (core dumped) mailing list PLEASE do read the posting guide! Received on Thu Jul 08 03:36:46 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:34:53 EST