search for: initrindex

Displaying 1 result from an estimated 1 matches for "initrindex".

2007 Aug 03
2
How to properly finalize external pointers?
...ndex_finalize(extPtr); */ /* this must not called otherwise the pointer is gone at garbage collection time R_ClearExternalPtr(extPtr); */ /* this triggers the finalizer but only at next garbage collection */ SET_VECTOR_ELT(obj,0,R_NilValue); UNPROTECT(1); return ret; } # R-Code initRindex <- function(){ dyn.load(file.path(.libPaths(), "rindex", "libs", paste("rindex", .Platform$dynlib.ext, sep = ""))) } doneRindex <- function(){ dyn.unload(file.path(.libPaths(), "rindex", "libs", paste("rindex", .Platfo...