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

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

if (FALSE) {
make_shortcut()
}