Skip to content
Prev 11666 / 398502 Next

load C code into R

On Sun, 10 Jun 2001, Richard Condit wrote:

            
Yes, that's a feature of Windows (and some other OSes).
Your .C call should be something like

.C("test", as.integer(a), as.double(x))

and "test" must be exported by your DLL.  Note: by default nothing is
exported in Visual C++: you need a .def file in the project.

I think you've missed the advice in readme.packages (in rw1023sp.zip),
which has a section `Using Visual C++'.  Despite the presence of that,
using the recommended compiler is easier....