Skip to content

Commit

Permalink
Merge pull request #18 from g-rppl/dev
Browse files Browse the repository at this point in the history
try to fix `cmdstan` in tests
  • Loading branch information
g-rppl authored Jun 4, 2024
2 parents bfe9321 + 376289e commit b3cc034
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Title: Estimate flight tracks from telemetry data
Description: `movetrack` is a `R` package that provides simple functionality
to estimate flight tracks from telemetry data using random walk models written
in Stan.
Version: 0.3.2
Version: 0.3.9000
License: MIT + file LICENSE
Authors@R:
person("Georg", "Rüppel", , "[email protected]", role = c("aut", "cre"),
Expand All @@ -18,8 +18,8 @@ Imports:
dplyr,
lubridate,
ggplot2
Additional_repositories:
https://stan-dev.r-universe.dev
Remotes:
stan-dev/cmdstanr
SystemRequirements: CmdStan (https://mc-stan.org/users/interfaces/cmdstan)
Encoding: UTF-8
VignetteBuilder:
Expand Down
1 change: 1 addition & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# * https://testthat.r-lib.org/articles/special-files.html

library(testthat)
library(cmdstanr)
library(movetrack)

test_check("movetrack")
4 changes: 3 additions & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ data(motusData)
suppressMessages(loc <- locate(motusData, dTime = 10))
suppressMessages(loc$ID[1] <- 1)

cmdstanr::set_cmdstan_path()
check_cmdstan_toolchain(fix = TRUE)
install_cmdstan(cores = 4, check_toolchain = FALSE)
set_cmdstan_path()

test_that("track warnings", {
expect_warning(
Expand Down

0 comments on commit b3cc034

Please sign in to comment.