-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blog/2024-05-08-user-functions/ #35
Comments
Thank you for implementing this feature, very useful. One thing though: when using a model in a text file, and loading it using |
I'm pretty sure that you cannot put the model into the text file. The text file ( The function would need to be defined in the R environment before loading, something like:
|
Thank you. Indeed this is what I suspected. Would be nice if rxode2() could accept not only a model textfile, but also supplementary code, since it now supports user-defined functions, which need to be defined outside of the model. |
A workaround can be to create a .R file that does the following:
Then, you can |
In C, yes this is available:If you write your user code in C, and in a separate file, you can specify this too. In the documention you have extraC However it doesn't allow a single file for a model. In R this isn't availableI have added a feature request here: Since |
Many thanks all for the answers and suggestions, and for opening a feature request. |
nlmixr2/rxode2 user functions | nlmixr2
nlmixr: open source nonlinear mixed-effects modeling for R.
https://blog.nlmixr2.org/blog/2024-05-08-user-functions/
The text was updated successfully, but these errors were encountered: