Learn R Programming

bcmaps (version 0.18.1)

make_shortcuts: Make shortcut functions for data objects in bcmapsdata

Description

This generates a shortcuts.R file in the R directory, with function definitions and roxygen blocks for each data object in bcmapsdata. This ensures that each data object in bcmapsdata can be accessed directly from bcmaps by a function such as bc_bound(), or airzones("sp").

Usage

make_shortcuts(file = "R/shortcuts.R")

Arguments

file

the R file where the shortcut file is. Default "R/shortcuts.R"

Value

TRUE (invisibly)

Details

Run this function each time you add a new data object.

Examples

Run this code
# NOT RUN {
make_shortcut()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab