Displaying 1 result from an estimated 1 matches for "hellofromc".
2003 May 16
1
Reloading a shared library with dyn.load
...ere forever. I can't press Escape to stop the
current computation, but I can close Rgui without resorting to
using the Task Manager.
Is it a problem with my use of R_alloc? Do I need something
like R_cleanup? Or is it a problem with dyn.load?
I'll demonstrate how I compile a C file, HelloFromC.C into a
shared library, HelloFromC.dll and then load it into R.
HelloFromC.c
------------
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Memory.h>
#include <R_ext/Applic.h>
#include <stdio.h>
void HelloFromC(char **result)...