View source: R/fetch_vectronics.R
get_paths | R Documentation |
Extract path(s) to files in a directory
get_paths(key_dir, ext = "keyx$", ...)
key_dir |
Path to a directory |
ext |
Defaults to keyx, which should be correct for Vectronics key files, but could also be a regular expression used to match any file extension. |
... |
other arguments to pass to list.files, see ?list.files |
full path to each file matching ext
Other get:
get_id_from_key()
,
get_keys()
# Example collar key
get_paths(
system.file("extdata", package = "collar"),
ext = "keyx$"
)
# Example trap key
get_paths(
system.file("extdata", "TrapKeys", package = "collar")
)
# All csv files included in this package
get_paths(
system.file("extdata", package = "collar"),
ext = "csv$"
)
# All keyx files included with this package
get_paths(system.file("extdata", package = "collar"), recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.