Re: [R] Win32 & C code

From: Paul Roebuck <roebuck_at_odin.mdacc.tmc.edu>
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.

WINBUILD.CMD



@cls
@SETLOCAL
@set PROJ=rwt
@set RBINDIR=C:\R\rw1091\bin
@set TOOLSBINDIR=C:\Rtools\bin
@set MINGWBINDIR=C:\MinGW\bin
@set PERLBINDIR=C:\Perl\bin
@set TEXBINDIR=C:\PROGRA~1\TeXLive\bin\win32
@set HCCBINDIR=C:\PROGRA~1\HTMLHE~1

   #### Next line split for readability ####
@set PATH=%TOOLSBINDIR%;%RBINDIR%;%MINGWBINDIR%;%PERLBINDIR%;

      %TEXBINDIR%;%HCCBINDIR%;%WINDIR%\system32;%WINDIR%
@echo PATH=%PATH%

Rcmd build --binary %PROJ%
Rcmd check %PROJ%
@ENDLOCAL



SIGSIG -- signature too long (core dumped)

R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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