ergm_Cstate_clear: Deallocate the C data structures corresponding to an...

Description Usage See Also Examples

View source: R/ergm_state.R

Description

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.

Usage

1

See Also

ergm_state

Examples

1
2
3
4
5
6
7
## Not run: 
long_run <- function(...){
  on.exit(ergm_Cstate_clear())
  .Call("long_run",...)
}

## End(Not run)

ergm documentation built on July 27, 2021, 5:07 p.m.