ergm_Cstate_clear | R Documentation |
ergm_state
left over from a .Call()
run.This function is exported for use by other packages that use the ErgmState
C API. It should be used as a part of an on.exit()
call in the function that calls the C routine if the C routine contains R_CheckUserInterrupt()
calls, in order to ensure that memory is freed if the routine is interrupted.
ergm_Cstate_clear()
ergm_state
## Not run:
long_run <- function(...){
on.exit(ergm_Cstate_clear())
.Call("long_run",...)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.