[Rd] Is there any way to find out how a certain functions are implemented in R?

2008-05-05 Thread Kyeongmi Cheon
Hello I wrote a bootstrap program in C language that is called and run by R. When I tried it, it is slow and I'm trying to write and run the whole thing in C. But I cannot use handy functions in R and need to figure out how to write those functions by myself. Is there any way that I can get the

[Rd] help with segmentation fault

2008-05-04 Thread Kyeongmi Cheon
Hello all, I'm trying to have C called by R. I wrote C codes that worked perfectly fine with R-2.6.0 in windows system ( using R tools). I had to change to SuSE Linux (this system has 3.2 GHz Intel Xeon processors and 4 GB of RAM), the C codes were compiled okay but when it was called to R-2.6.

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

2008-04-18 Thread Kyeongmi Cheon
d by -I flags on the command line". How do I use it? Like this? set path = (/gpfs/data/local/linux/R-2.6.2/lib64/R/include $path) -I Thank you so much. Kyeongmi Cheon University of memphis You should never give full paths in #include statements. The search paths for include

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

2008-04-17 Thread Kyeongmi Cheon
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 #include #include #include #include #include In windows, I had no problem with it because I s

[Rd] Using Rtools in Unix environment

2008-04-08 Thread Kyeongmi Cheon
The previous mail I wrote was bounced for some reason and I'm writing it again... I have used Rtools in windows to call C from R but my computer does not have enough memory for my current project. So I'm trying to use Rtools in the high performance computer at my school. The guy who handles the H

[Rd] norm_rand() in R-extension vs rnorm in R ---which is better?

2008-03-29 Thread Kyeongmi Cheon
I need to generate good quality of random numbers from univariate normal distribution for further transformation. I tried rnorm in R but it was not good sometimes. Someone said C++ standard library or Fortran's built-in functions for that are good. I found that there is double norm_rand() in R-exte