pomp
objects.Csnippet(text)
Csnippet
.Csnippet
s as arguments to the pomp
constructor causes them to be written to a C file stored in the Rsession's temporary directory, which is then compiled (via R CMD SHLIB
) into a dynamically loadable shared object file.
This is then loaded as needed. Note to Windows and Mac users:
By default, your Rinstallation may not support R CMD SHLIB
.
The package website contains installation instructions that show how to enable this powerful feature of R.
In writing a Csnippet
one must bear in mind both the goal of the snippet, i.e., what computation it is intended to perform, and the context in which it will be executed.
Details of both of these are given below in the form of rules governing the use of Csnippet
s.
Illustrative examples are given in the tutorials on the