R/data.R

Defines functions load_gransasso

load_gransasso <- function() {
  data_path <- system.file("data/gransasso.RData", package = "pets")
  if (file.exists(data_path)) {
    load(data_path, envir = .GlobalEnv)
  } else {
    stop("Dataset gransasso not found.")
  }
}
leondap/pets documentation built on Oct. 12, 2024, 8:55 p.m.