metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
129 stars 36 forks source link

ERROR Cannot load model (mod =mread fails) #1200

Closed jeslo328 closed 2 months ago

jeslo328 commented 3 months ago

Hi I'm a beginner to mrgsolve. I have some code that i have been using and running well till now. I am trying to load a model but giving me error as below. I tried re-installing the mrgsolve even. Please help.

library(dplyr) library(tidyr) library(mrgsolve) library(ggplot2) library(scales) mod = mread("pkpd-human-tgfb1")

---------------------------------------

mod = mread("pkpd-human-tgfb1") Building pkpd-human-tgfb1 ... error.

---:: stderr ::--------------------------------------------- Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), : 'make' not found Calls: -> .shlib_internal -> system Execution halted

Error: the model build step failed.

kylebaron commented 3 months ago

Hi @jeslo328 - I'm thinking that R can't find the tools required to compile your model.

  1. Are you running this on windows?
  2. If so, could you install the pkgbuild R package and verify this
pkgbuild::hss_rtools(debug = TRUE)
jeslo328 commented 3 months ago

Hi Baron, Yes i am

kylebaron commented 3 months ago

Thanks, @jeslo328 ; can you try running that pkgbuild command from my message last night and let me know what is the result?

jeslo328 commented 3 months ago

Hi Baron

unable to

pkgbuild::hss_rtools(debug = TRUE) Error: 'hss_rtools' is not an exported object from 'namespace:pkgbuild' library(pkgbuild) pkgbuild::hss_rtools(debug = TRUE) Error: 'hss_rtools' is not an exported object from 'namespace:pkgbuild'

kylebaron commented 3 months ago

@jeslo328 -

Sorry about that ... can you try

pkgbuild::has_rtools(debug = TRUE)
jeslo328 commented 3 months ago

what is the difference ?

I am already using pkgbuild::has_rtools(debug = TRUE)

kylebaron commented 3 months ago

Hi @jeslo328 -

There was a typo in the command previously; what you posted previously just showed that the correct command wasn't entered correctly

Screenshot 2024-06-08 at 07 52 53

Can you please try this command and report back the result?

pkgbuild::has_rtools(debug = TRUE)

Thanks, Kyle

kylebaron commented 2 months ago

Hi @jeslo328 - following up on your issue. Any progress to report? If not, we can close this.

Kyle

kylebaron commented 2 months ago

Closing this. Could you please open a new issue if you would still like help with this? Thanks!