nlmixrdevelopment / nlmixr

nlmixr: an R package for population PKPD modeling
https://nlmixrdevelopment.github.io/nlmixr/
GNU General Public License v2.0
115 stars 45 forks source link

allow "+ #40

Closed ronkeizer closed 6 years ago

ronkeizer commented 6 years ago

I sometimes use the following syntax for clarity purposes:

d/dt(A2) = +(Q/V)*A1 - (Q/V2)*A2

the initial (unnecessary) + makes the compilation fail, see error below. Would be nice if RxODE would allow this, or else give back a warning message that this is not allowed.

Compiling RxODE differential equations...Error in dyn.load(finalDll, local = FALSE) : 
  unable to load shared object '<...._.so':
  /home/ron...._.so: cannot open shared object file: No such file or directory
In addition: Warning message:
In nlmixrData.default(data) :
  NONMEM-style data converted to nlmixr/RxODE-style data.
Error in dyn.load(basename(finalDll), local = FALSE) : 
  unable to load shared object '/tmp/RtmppRlnoA/file440473e62dc/rx_fabd2d70cc2a164953c4931d0c425bb3_.so':
  /tmp/RtmppRlnoA/file440473e62dc/rx_fabd2d70cc2a164953c4931d0c425bb3_.so: cannot open shared object file: No such file or directory
Error in rxCompile.character(model, extraC = extraC, debug = debug, calcJac = calcJac,  : 
  Error loading model.
mattfidler commented 6 years ago

This should be fixed, though I have had reports that it causes issues elsewhere.

mattfidler commented 6 years ago

I tracked down the other error; This should be fixed; Let me know if it works for you.

ronkeizer commented 6 years ago

Thanks, works now 👍