Learn R Programming

bcmaps (version 1.0.3)

make_shortcuts: Make shortcut functions for data objects in bcmaps from B.C. Data Catalogue

Description

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

Usage

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

Value

TRUE (invisibly)

Arguments

file

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

Details

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

Examples

Run this code
if (FALSE) {
make_shortcut()
}

Run the code above in your browser using DataLab