Skip to content
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

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

Closed
jeslo328 opened this issue Jun 7, 2024 · 9 comments
Closed

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

jeslo328 opened this issue Jun 7, 2024 · 9 comments

Comments

@jeslo328
Copy link

jeslo328 commented Jun 7, 2024

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
Copy link
Collaborator

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
Copy link
Author

jeslo328 commented Jun 7, 2024

Hi Baron,
Yes i am

@kylebaron
Copy link
Collaborator

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

@jeslo328
Copy link
Author

jeslo328 commented Jun 7, 2024

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
Copy link
Collaborator

@jeslo328 -

Sorry about that ... can you try

pkgbuild::has_rtools(debug = TRUE)

@jeslo328
Copy link
Author

jeslo328 commented Jun 8, 2024

what is the difference ?

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

@kylebaron
Copy link
Collaborator

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
Copy link
Collaborator

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

Kyle

@kylebaron
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants