Skip to content

Commit

Permalink
INLAspacetime needs INLA
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Oct 17, 2023
1 parent 5b86d32 commit 096b87a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Suggests:
ggplot2,
inlabru,
INLAspacetime,
INLA,
knitr,
rgdal,
rmarkdown,
Expand Down
3 changes: 3 additions & 0 deletions R/barrier.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ add_barrier_mesh <- function(spde_obj, barrier_sf, range_fraction = 0.2,
if (!requireNamespace("INLAspacetime", quietly = TRUE)) {
cli_abort("The INLAspacetime package must be installed to use this function.")
}
if (!requireNamespace("INLAspacetime", quietly = TRUE)) {
cli_abort("The INLA package must be installed to use this function.")
} # b/c INLAspacetime uses it!!

assert_that(
is.numeric(range_fraction), range_fraction <= 1,
Expand Down

0 comments on commit 096b87a

Please sign in to comment.