Skip to content

Commit

Permalink
Fix vignette to run by setting up the R cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Aug 27, 2019
1 parent 5bb1991 commit 73df431
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vignettes/running_nlmixr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 73df431

Please sign in to comment.