From 73df43176c31d4eaa948ff56cb998a5642780dac Mon Sep 17 00:00:00 2001 From: Matthew Fidler <514778+mattfidler@users.noreply.github.com> Date: Tue, 27 Aug 2019 12:35:54 -0500 Subject: [PATCH] Fix vignette to run by setting up the R cache dir --- vignettes/running_nlmixr.Rmd | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vignettes/running_nlmixr.Rmd b/vignettes/running_nlmixr.Rmd index 933f2974f..ed7f1a2dc 100644 --- a/vignettes/running_nlmixr.Rmd +++ b/vignettes/running_nlmixr.Rmd @@ -60,11 +60,16 @@ one.cmt <- function() { } ``` +Now setup the cache dir for running the vignette fast (a CRAN requirement) + +```{r} +dir <- system.file(package="nlmixr"); +``` + We can now run the model... ``` -fit <- nlmixr(one.cmt, theo_sd, est="nlme") -dir <- (system.file(package="nlmixr")) + saveRDS(fit, file.path(dir,"fit.rds")); # This saves the rds file for running quickly ```