Skip to content

Commit

Permalink
Merge pull request #315 from mrc-ide/gh-314
Browse files Browse the repository at this point in the history
Fix installation instructions
  • Loading branch information
richfitz authored Jul 1, 2024
2 parents 333d4f0 + 9d71e2f commit a27f172
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: odin
Title: ODE Generation and Integration
Version: 1.5.10
Version: 1.5.11
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Thibaut", "Jombart", role = "ctb"),
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ Install odin from CRAN with
install.packages("odin")
```

Alternatively, you can install a potentially more recent version of odin from the [`mrc-ide` drat repository](https://mrc-ide.github.io/drat/)
Alternatively, you can install a potentially more recent version of odin from the [`mrc-ide` universe](https://mrc-ide.r-universe.dev/)

```r
# install.packages("drat") # -- if you don't have drat installed
drat:::add("mrc-ide")
install.packages("odin")
install.packages(
"odin",
repos = c("https://mrc-ide.r-universe.dev", "https://cloud.r-project.org"))
```

You will need a compiler to install dependencies for the package, and to build any models with odin. Windows users should install [Rtools](https://cran.r-project.org/bin/windows/Rtools/). See the relevant section in [R-admin](https://cran.r-project.org/doc/manuals/r-release/R-admin.html#The-Windows-toolset) for advice. Be sure to select the "edit PATH" checkbox during installation or the tools will not be found.
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test_that("generate package", {

test_that("interpolation", {
skip_on_windows_gha()
skip_on_os("mac")
res <- odin_create_package("interpolation", "examples/interpolate_odin.R")
on.exit(res$cleanup())

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-run-examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test_that_odin("basic interface", {
## M1. These tests need refactoring anyway.
skip_on_cran()
skip_for_target("js") # some tolerance issues that are not worth chasing
skip_on_os("mac")
re <- "([[:alnum:]]+)_odin\\.R$"
files <- dir("examples", re)
base <- sub(re, "\\1", files)
Expand Down Expand Up @@ -203,6 +204,7 @@ test_that_odin("lv", {
test_that_odin("dde", {
skip_if_not_installed("dde")
skip_for_target("js")
skip_on_os("mac")
## This test is failing on M1 Mac checks, with tolerance needing
## tweaking for one of the examples, probably the Lorenz attractor
## as being chaotic, deviations are expected to grow. Without access
Expand Down

0 comments on commit a27f172

Please sign in to comment.