ronkeizer / PKPDsim

R library for simulation of PKPD models [DEPRECATED, see InsightRX/PKPDsim]
Other
21 stars 12 forks source link

pk_1cmt_oral and other models not working #43

Closed itielbeek closed 3 years ago

itielbeek commented 3 years ago

Hi Ron,

I have just started an internship in PKPD simulations using your software and while I was trying to run through the tutorial on pkpdsim.ronkeizer.com/model.html in order to learn the software a bit better. However, it returned a recurring error while entering the new_ode_model function as described in the tutorial:

Error in Rcpp::sourceCpp(code = sim_func, rebuild = TRUE, env = globalenv(), : Error 1 occurred building shared library. In addition: Warning messages: 1: In if (txt < 0) return(ode_def_orig) : the condition has length > 1 and only the first element will be used 2: In if (txt < 0) return(ode_def_orig) : the condition has length > 1 and only the first element will be used

This error occurred in every one of the pre-installed models available. Could you please enlighten me how I can solve this problem? Thanks.

Kind regards, Ivo