default_classes: Default parser classes
Description
List or parser classes provided 'out-of-the-box'. These can be used without
further definition in any templates, or can be overridden.
Usage
default_classes(file = system.file("config/parser_classes.yml", package =
"tabulog"), formatters = .default_formatters())
Arguments
file
Yaml file of parser classes to load. Defaults to included package file.
formatters
Named list of formatter functions to be associated with
parsers. Default formatters are provided for default parser classes
Value
A named list of the default parser classes provided "out of the box". Users
should not need to use this in their code, and is mostly used for use in
other internal functions. It is only visible to users so they can call
it and see what classes are available by default.
Details
Parser classes are provided for the following
ip: For matching ip addresses
quote: For matching any string quoted by double-quotes
url: For matching a standard http(s) url
int: For matching any integer
double: For matching any numeric value (including integers)
Examples
Run this code# NOT RUN {
default_classes()
# }
Run the code above in your browser using DataLab