Create S3 class object that will contain the necessary PANGO alias details for
working with other functions (expanding and collapsing names). Will cache the PANGO lineage table for
the current R session.
Usage
pangoro(
path =
"https://raw.githubusercontent.com/cov-lineages/pango-designation/master/pango_designation/alias_key.json",
refresh = FALSE,
offline = FALSE,
rm_spec_char = TRUE
)
Arguments
- path
Path to PANGO lineage JSON file.
- refresh
Boolean value to force cache to refresh (default: FALSE
)
- offline
Boolean value, if TRUE
use a saved version of alias table within package.
- rm_spec_char
Boolean (default: TRUE
)
Examples
if (FALSE) {
my_pangoro <- pangoro() # First time will fetch from web
my_pangoro <- pangoro() # Second time will fetch from cache
my_pangoro <- pangoro(refresh = TRUE) # Force cache to refresh
}