Skip to content

Commit

Permalink
Dont test some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Oct 17, 2023
1 parent 638eff9 commit cdaa867
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ NULL
#' )
#' fit
#'
#' \donttest{
#' # Make the fields AR1:
#' fit <- sdmTMB(
#' density ~ s(depth),
Expand Down Expand Up @@ -547,6 +548,7 @@ NULL
#' family = tweedie()
#' )
#' fit
#' }

sdmTMB <- function(
formula,
Expand Down
2 changes: 2 additions & 0 deletions R/mesh.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#' mesh <- make_mesh(pcod, c("X", "Y"), n_knots = 50, type = "kmeans")
#' plot(mesh)
#'
#' \donttest{
#' # But, it's better to develop more tailored meshes:
#'
#' # Pass arguments via '...' to fmesher::fm_mesh_2d_inla():
Expand Down Expand Up @@ -73,6 +74,7 @@
#' )
#' mesh <- make_mesh(pcod, c("X", "Y"), mesh = inla_mesh)
#' plot(mesh)
#' }

make_mesh <- function(data, xy_cols,
type = c("kmeans", "cutoff", "cutoff_search"),
Expand Down
2 changes: 2 additions & 0 deletions R/predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
#' qcs_grid_2011 <- replicate_df(qcs_grid, "year", unique(pcod_2011$year))
#' predictions <- predict(m, newdata = qcs_grid_2011)
#'
#' \donttest{
#' # A short function for plotting our predictions:
#' plot_map <- function(dat, column = est) {
#' ggplot(dat, aes(X, Y, fill = {{ column }})) +
Expand Down Expand Up @@ -237,6 +238,7 @@
#' plot_map(p, exp(est)) +
#' ggtitle("Prediction (fixed effects + all random effects)") +
#' scale_fill_viridis_c(trans = "sqrt")
#' }

predict.sdmTMB <- function(object, newdata = NULL,
type = c("link", "response"),
Expand Down
2 changes: 2 additions & 0 deletions man/make_mesh.Rd

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

2 changes: 2 additions & 0 deletions man/predict.sdmTMB.Rd

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

2 changes: 2 additions & 0 deletions man/sdmTMB.Rd

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

0 comments on commit cdaa867

Please sign in to comment.