Just a shot in the dark... Do you properly close the input/output
files at the end of your function? If not and the file remains open,
it may throw an error upon new attempt to read it. It is possible that
dyn.unload, among other things, closes all open connections and hence
upon re-load everything
Dear fellow R-users,
I have the problem of being unable to repeatedly use a C++-function
within R unless by dyn.unloading/dyn.loading it after each .C call.
The C++-code (too large to attach) compiles without problem using R CMD
SHLIB. It loads (using dyn.load("myfun.so")) and executes (via .
2 matches
Mail list logo