[R] Call R from C

2012-02-20 Thread nitin kumar
Dear All, I am new to calling R in C. I want to call sample R function in C. i.e. I want to do a sample equivalent to n <- c(1:10) p <- seq(0,10,length.out= 10) sample(n,size = 1, prob = p, replace = FALSE) how can I call this function directly in C? any help would be great, thanks, nitin

[R] access R basic libraries

2012-02-13 Thread nitin kumar
Hello Everyone, I am trying to access all R basic C/Fotran libraries to see how some functions are written in fotran or C so that in case I need to change some stuff I can do that. Any help would be great, nitin [[alternative HTML version deleted]] ___