Skip to content
Prev 31613 / 398506 Next

C++ - R - example

Hi,

Does anybody has a simple example (a for loop, or so) how to use a C-function
In R? 
If it's possible, a *.cpp-file and what I need (wrapper or what ever).
I'm absolutly not a C++-hacker!

I try several ways, was reading the "writing R extension" and the windows-FAQ, but failed.

I try to programm a matrix inversion in a for-loop in C, which needs much time in R and want to 
load it as a function with dynload and .C into R.
If somebody has already done it...

I use VC++ and R 1.6.2


Thanks a lot

Thomas