compiled model inside a package #975
Replies: 2 comments
-
Hi @FelicienLL - It is super complicated. A long time ago I had this same idea of pre-compiling a bunch of models in a package and it would be there and ready to go. It still might be possible but let's think about it. So one thing that you could do today is build the model and cache the result. This means that in a given R session, you should only have to build the model once. Also for your internal testing, you could keep a bunch of models in cache in a stable location and refer to that cache if you're testing locally and build a new one if the build or tests are happening on CRAN. Use Kyle |
Beta Was this translation helpful? Give feedback.
-
Ok, thank you for your answer, I'll drop this idea and have a closer look to the cache option. Thanks again |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I hope everything is fine,
Is there an easy way to store an already compiled (and ready to simulate) model object inside a package ? Since it is not possible to build a package with executable files, I guess we need some workarounds... I tried to modify the
house()
function to work with a model of my own but it fails. The point is that I'm really not familiar enough with the underlying concepts (compiling, shared objects, dll, etc...) to know if I'm just missing something simple, or if it is far too complicated to implement...I'm asking because I'd like to implement a compiled model in mapbayr in order to ease and speed unit testing, as well as using it for examples, as you do with
house()
in mrgsolve.Thanks in advance for your help
Félicien
Beta Was this translation helpful? Give feedback.
All reactions