default_classes {tabulog} | R Documentation |
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 |
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)
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.
Examples
default_classes()