RunFunction: Runs a GISDK function

Description Usage Arguments Details Examples

View source: R/caliperR.R

Description

GISDK functions are core functions (like OpenTable()) that are called in Caliper software without using RunMacro().

Usage

1
RunFunction(macro_name, ..., process_result = TRUE)

Arguments

macro_name

string Name of the GISDK function to run

...

Used to pass arguments to the GISDK function

process_result

boolean Whether to attempt to process the result into a native R format.

Details

To run GISDK macros (like RunMacro("G30 Tutorial Folder")) see RunMacro.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# These won't work unless Caliper software is installed.
table_name <- RunFunction("OpenTable", "airports", "ffb", list(paste0(folder, "airports.bin"), NA))
num_rows <- RunFunction("GetRecordCount", table_name, NA)
num_rows
#> 280

## End(Not run)

dkyleward/caliperR documentation built on Dec. 31, 2021, 7:11 p.m.