Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Jan 16, 2025
1 parent 394ca07 commit 59bd625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/testthat/test-covariates_against_glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ test_that("Density covariates give identical results to glm(.) ", {
# Previously worked with CI, but not anymore
#skip_on_ci()
skip_if(skip_local)
if(!require(INLA)) install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
if(!require("INLA")){
install.packages("INLA", dep=TRUE, repos=c( CRAN="https://cloud.r-project.org",
INLA="https://inla.r-inla-download.org/R/stable") )
}

# load data set
example = load_example( data_set="covariate_example" )
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/test-single-species-examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ test_that("Eastern Bering Sea pollock is working ", {
# Previously worked with CI, but not anymore
#skip_on_ci()
skip_if(skip_local)
if(!require(INLA)) install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
if(!require("INLA")){
install.packages("INLA", dep=TRUE, repos=c( CRAN="https://cloud.r-project.org",
INLA="https://inla.r-inla-download.org/R/stable") )
}

# Prepping
test_path = file.path(singlespecies_example_path,"EBS_pollock")
Expand Down

0 comments on commit 59bd625

Please sign in to comment.