data/loafercreek.R

if (requireNamespace("aqp", quietly = TRUE)) {
  fn <- system.file("extdata", "loafercreek.rda", package = "soilDB")
  if (nzchar(fn)) {
    load(fn)
  } else {
    fn <- system.file("inst", "extdata", "loafercreek.rda", package = "soilDB")
    load(fn)
  }
  rm(fn)
} else {
  if (interactive()) {
    message("Install the 'aqp' package to use sample SoilProfileCollection object datasets")
  }
  assign("loafercreek", NULL, envir = environment())
}

Try the soilDB package in your browser

Any scripts or data that you put into this service are public.

soilDB documentation built on April 3, 2026, 9:07 a.m.