When a pomp object is constructed using Csnippets, the C source is compiled and dynamically loaded into the running R session. Heretofore, this meant that one had to rebuild the pomp in each new R session. Changes in version 0.75-1 now make it so that one can store and re-use pomp objects across R sessions. This is achieved by storing the source code internally to the pomp object. When a pomp object is used, a test is first performed to see if the needed shared-object file exists. If it does not, the source code is written to a file in the session’s temporary directory, which is then compiled and loaded. This feature allows pomp objects to be stored and reused across R sessions. To avoid collisions, the name of the file is constructed using a hash of its contents.


NSF
NCEAS
NIH

This software has been made possible by support from the U.S. National Science Foundation (Grants #EF-0545276, #EF-0430120), by the “Inference for Mechanistic Models” Working Group supported by the National Center for Ecological Analysis and Synthesis (a Center funded by N.S.F. (Grant #DEB-0553768), the University of California, Santa Barbara, and the State of California), and by the RAPIDD program of the Science & Technology Directorate, Department of Homeland Security and the Fogarty International Center, U.S. National Institutes of Health.