philipdelff / NMsim

Simulate Nonmem models from R
https://philipdelff.github.io/NMsim/
Other
5 stars 1 forks source link

NMsim installation warning #10

Closed akurumaddali closed 11 hours ago

akurumaddali commented 2 weeks ago

I'm using R 4.1.3 version and as I'm trying to install NMsim, I see the following warning message:

image

Any workaround to install NMsim with a older version of R? Thanks.

philipdelff commented 2 weeks ago

Thanks,

I can install NMsim from CRAN on R 4.1.1. I would expect it to work on any R version since R 3.5. Could it be you are using a different repository than CRAN? Try to specify a CRAN repo this way: install.packages("NMsim",repos="https://cloud.r-project.org")

akurumaddali commented 2 weeks ago

Thanks, I tried the above command, here are the errors:

image

image

philipdelff commented 2 weeks ago

OK, that worked. Now the issue is that your NMdata also needs to be updated. The easiest will be to restart R and then do: install.packages("NMsim",repos="https://cloud.r-project.org/") You can install NMdata first by running both of these two but it shouldn't be necessary: install.packages("NMdata",repos="https://cloud.r-project.org/") install.packages("NMsim",repos="https://cloud.r-project.org/")

akurumaddali commented 2 weeks ago

The old NMdata package couldn't be removed from the Metworx workflow and hence "NMsim" could not be installed in this workflow despite trying to restart R, using detach and update package functions. However, upon creating a new metworx workflow, "NMsim 0.1.0" and "NMdata 0.1.6" were successfully installed.

philipdelff commented 11 hours ago

Closing this since it's not related to NMsim.