
Register a declarative loader *format* (list or YAML/JSON file)
Source:R/loaders.R
register_loader_format.RdThe spec maps cleanly onto read_tracks() args and supports regex-based column finding.
Value
`name`, invisibly. Called for its side effect of registering the format for [read_tracks_format()].
Examples
# A tracker whose columns are found by pattern; time is in seconds
spec <- list(
regex_mapping = list(id = "^animal", time = "^sec",
x = "^pos_?x", y = "^pos_?y"),
time = list(type = "seconds")
)
register_loader_format("my_tracker", spec, overwrite = TRUE)
list_loader_formats()
#> [1] "my_tracker"