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

Define a model as ODEs #16

Closed
amitvtaneja opened this issue Sep 12, 2017 · 4 comments
Closed

Define a model as ODEs #16

amitvtaneja opened this issue Sep 12, 2017 · 4 comments

Comments

@amitvtaneja
Copy link

Hi Andy

Can a model be defined as a system of ODEs, since the example mentioned is for a one compartment model, analytical solution?
If so, could you please provide an example for a 2 cmgt model, oral absorption.

Thanks in advance

Amit Taneja

@andrewhooker
Copy link
Owner

Hi Amit,

Yes. Please see examples 1.c, 2.c, 8, 9 and 10 at https://github.com/andrewhooker/PopED/tree/master/inst/examples

Example 9 has what you are looking for.

Best regards,
Andy

@amitvtaneja
Copy link
Author

Many Thanks Andy

Best regards

Amit

@liangqiongyue
Copy link

Hi andrewhooker
When I run the Example 9 (2 cmgt model, oral absorption) I run into some problems. The following error message appears when I run two lines of code:
###########
> system("R CMD SHLIB two_comp_oral_CL.c")
C:/PROGRA1/R/R-421.2/etc/x64/Makeconf:275: warning: overriding commands for target .m.o' C:/PROGRA~1/R/R-42~1.2/etc/x64/Makeconf:268: warning: ignoring old commands for target .m.o'
make: *** No rule to make target two_comp_oral_CL.o', needed by two_comp_oral_CL.dll'. Stop.
[1] 1
> dyn.load(paste("two_comp_oral_CL", .Platform$dynlib.ext, sep = ""))
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/liangq3/AppData/Local/R/win-library/4.2/PopED/two_comp_oral_CL.dll':
LoadLibrary failure: The specified module could not be found.
###########
May I ask how to solve this problem? Thank you very much for your help!

@liangqiongyue
Copy link

> Hi andrewhooker When I run the Example 9 (2 cmgt model, oral absorption) I run into some problems. The following error message appears when I run two lines of code: ########### > system("R CMD SHLIB two_comp_oral_CL.c") C:/PROGRA1/R/R-421.2/etc/x64/Makeconf:275: warning: overriding commands for target .m.o' C:/PROGRA~1/R/R-42~1.2/etc/x64/Makeconf:268: warning: ignoring old commands for target .m.o' make: *** No rule to make target two_comp_oral_CL.o', needed by two_comp_oral_CL.dll'. Stop. [1] 1 > dyn.load(paste("two_comp_oral_CL", .Platform$dynlib.ext, sep = "")) Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Users/liangq3/AppData/Local/R/win-library/4.2/PopED/two_comp_oral_CL.dll': LoadLibrary failure: The specified module could not be found. ########### May I ask how to solve this problem? Thank you very much for your help!


I found a solution to this problem, Just first installing Rtools42 first can be solved.
(https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html)

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

3 participants