clearCompiled: Clear compiled objects from a project and unload shared...

View source: R/nimbleProject.R

clearCompiledR Documentation

Clear compiled objects from a project and unload shared library

Description

Clear all compiled objects from a project and unload the shared library produced by the C++ compiler. Has no effect on Windows.

Usage

clearCompiled(obj)

Arguments

obj

A compiled nimbleFunction or nimble model

Details

This will clear all compiled objects associated with your NIMBLE project. For example, if cModel is a compiled model, clearCompiled(cModel) will clear both the model and all associated nimbleFunctions such as compiled MCMCs that use that model.

Use of this function can be dangerous. There is some risk that if you have copies of the R objects that interfaced to compiled C++ objects that have been removed, and you attempt to use those R objects after clearing their compiled counterparts, you will crash R. We have tried to minimize that risk, but we can't guarantee safe behavior.


nimble documentation built on Sept. 11, 2024, 7:10 p.m.