R/bundled-packs.R

Defines functions .onLoad .register_bundled_room_packs .bundled_room_packs

.bundled_room_packs <- function() {
  list(ecologia_numerica_room_pack())
}

.register_bundled_room_packs <- function(packs = .bundled_room_packs()) {
  if (!is.list(packs)) {
    stop("`.bundled_room_packs()` must return a list of room packs.", call. = FALSE)
  }
  for (pack in packs) {
    register_room_pack(pack)
  }
  invisible(vapply(packs, `[[`, character(1), "id"))
}

.onLoad <- function(libname, pkgname) {
  .register_bundled_room_packs()
}

Try the escapeR package in your browser

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

escapeR documentation built on Sept. 27, 2026, 5:06 p.m.