Displaying 1 result from an estimated 1 matches for "exp_dist_fast".
2002 Mar 25
1
How to detach binary objects/libraries?
...of writing R package, say X, that loads some C++ code.
Currently, while adding functionality to it in both R and C++ sources,
I'm getting crashes every time I detach/load/access the C++ function(s).
Typical transcript follows:
> library(X)
Loading required package: mva
> is.loaded("exp_dist_fast") # The name of the C stub function
[1] TRUE
> detach(package:X)
> is.loaded("exp_dist_fast")
[1] TRUE # Problem?
> library(X) # Load X after changes in the C/C++ code
> is.loaded("exp_dist_fast") # or .C("exp_dist_fast",...)
Process R:1 segmentation...