[Rd] R-extension in unix system -- help to locate header files

From: Kyeongmi Cheon <katie.cheon_at_gmail.com>
Date: Thu, 17 Apr 2008 23:23:19 -0500

Hi list,
To call C, I used to use R-extension in windows but I'm moving to unix system because my PC doesn't have enough memory. My C codes requires to include the following header files:

#include <stdlib.h>
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
#include <R_ext/Applic.h>
#include <R_ext/PrtUtil.h>

In windows, I had no problem with it because I set the path for Rtools and R etc.
But in unix system, these header files call other header files and they call other
header files... And some files are not in R folders so I have to manually find them
and give path and it takes for ever. For example,

#include </usr/include/stdlib.h>
#include </gpfs/data/local/linux/R-2.6.2/lib64/R/include/R.h>
#include </gpfs/data/local/linux/R-2.6.2/lib64/R/include/Rmath.h>
#include </gpfs/data/local/linux/R-2.6.2/lib64/R/include/Rdefines.h>
#include </gpfs/data/local/linux/R-2.6.2/lib64/R/include/R_ext/Applic.h>
#include </gpfs/data/local/linux/R-2.6.2/lib64/R/include/R_ext/PrtUtil.h>

but now
<R_ext/Memory.h> calls <stddef.h> and I have to search the whole directory of my
school computer to find it. Same for other header files...

Is there better way to do it? Or is there any package for unix that has "all" the
needed header files so that I can download them only once and don't have to search
for them? I appreciate your help in advance. Kyeongmi

University of memphis

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 18 Apr 2008 - 04:28:45 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 Fri 18 Apr 2008 - 05:31:12 GMT.

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

list of date sections of archive