Skip to content

Commit

Permalink
Updated imports to include the ode function from deSolve.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tess-LaCoil committed Dec 2, 2024
1 parent 3997168 commit 9d9553b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import(dplyr)
import(ggplot2)
import(methods)
importFrom(RcppParallel,RcppParallelLibs)
importFrom(deSolve,ode)
importFrom(rstan,sampling)
importFrom(rstantools,rstan_config)
importFrom(stats,median)
Expand Down
1 change: 1 addition & 0 deletions R/hmde-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#' @importFrom rstantools rstan_config
#' @importFrom RcppParallel RcppParallelLibs
#' @importFrom stats median
#' @importFrom deSolve ode
#'
#' @references
#' Stan Development Team (NA). RStan: the R interface to Stan. R package version 2.26.23. https://mc-stan.org
Expand Down
4 changes: 1 addition & 3 deletions man/hmde_assign_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/here_be_dragons.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ We get clear bimodality in both the histograms and the scatter plot. Bias in the
We can double-check the numerical error by using an independent solver with the same step size. We use the `deSolve` package which has an implementation of RK4 and allows us to choose the step sizes using the time parameter.
```{r}
#install.packages("deSolve")
library(deSolve)
#library(deSolve)
#Create DE function
DE <- function(Time, State, Pars) { #Implementation of DE
Expand Down

0 comments on commit 9d9553b

Please sign in to comment.