R/zzz.R

Defines functions .onLoad

.onLoad <- function(lib, pkg) {
    # Apply default options
    opt <- options()
    opt_rbedrock <- list(
        rbedrock.worlds_dir_path = NULL,
        rbedrock.rand_world_id = "pretty"
    )
    to_set <- !(names(opt_rbedrock) %in% names(opt))
    if (any(to_set)) {
        options(opt_rbedrock[to_set])
    }

    invisible()
}

Try the rbedrock package in your browser

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

rbedrock documentation built on Oct. 7, 2023, 1:07 a.m.