search for: td1580190

Displaying 4 results from an estimated 4 matches for "td1580190".

2010 Apr 13
2
Getting started with .C
...used this is a ridiculously small price to pay for the portability and organization offered by packages. I wrote a post that goes through step-by-step how to do this for the .Call() interface, including example code. You can find it at: http://n4.nabble.com/Writing-own-simulation-function-in-C-td1580190.html#a1580423 In "Writing R Extensions", p. 79, they give the following example of a C program for convolution of two vectors. (The details aren't important; it's just a function that does something to some stuff.) void convolve (double *a, int *na, double *b, int *nb, double...
2010 Apr 05
2
Rprintf not updating
Hello all, I am using Rprintf in a C for loop (from .Call) to print a progress indicator showing the current percent complete. The loop I am doing is an time intensive call to another function. I have noticed that Rprintf does not print to the R-window until the entire loop has been completed. When it reaches the end of the loop it suddenly prints 0 percent to 100 percent in a split second.
2010 Apr 14
0
SHLIB works but inline compilation does not
...compilation error, then shouldn't the first method (with SHLIB) not work > either? > > I realize I could stick to the SHLIB method, which Charlie ("The Sharpie") > Sharpsteen wrote up in fantastic detail here: > http://n4.nabble.com/Writing-own-simulation-function-in-C-td1580190.html#a1580423 > But there's so much more stuff I'll need to understand if I do it that way > ... > > I use an Intel MacBook Pro with OS X 10.6.2, XCode 3.2.1, gcc 4.2.1. > > Thanks, > Jeff > > I could not reproduce this problem on my computer, OS X 10.6.3, gc...
2010 Mar 05
2
Writing own simulation function in C
I am wishing to write my own random distribution simulation function using C programmin language(for speed) via R. I am familiar with R programming but somewhat new to C programming. I was trying to understand "Writing R extensions" -guide and its part 6.16, but I found it hard to understand(http://cran.r-project.org/doc/manuals/R-exts.html#Standalone-Mathlib). I also tried to get