Register file extensions and reader functions for different data files. Isoreader automatically registers all built-in file readers so this function is usually only needed when registering additional readers provided for testing purposes from outside of the isoreader package. Note that file extensions are case-insensitive, i.e. a reader for .ext
will also recognize .Ext
and .EXT
iso_register_dual_inlet_file_reader(
extension,
func,
description = NA_character_,
software = NA_character_,
cacheable = TRUE,
post_read_check = TRUE,
overwrite = FALSE,
env = find_func(func)
)
iso_register_continuous_flow_file_reader(
extension,
func,
description = NA_character_,
software = NA_character_,
cacheable = TRUE,
post_read_check = TRUE,
overwrite = FALSE,
env = find_func(func)
)
iso_register_scan_file_reader(
extension,
func,
description = NA_character_,
software = NA_character_,
cacheable = TRUE,
post_read_check = TRUE,
overwrite = FALSE,
env = find_func(func)
)
the file extension (e.g. .dxf
) of the data file. Must be unique otherwise different files can not automatically be matched with the appropriate file reader based on their extension.
the name of the function that should be used a filter reader. All file reader functions must accept a data structure argument as the first argument and return the same data structure with added data.
what is this file type about?
what is the software program that creates this file type?
whether this file type is cacheable. If TRUE
(the default), user requests to cache the file will be honored. If FALSE
, this file type will never be cached no matter what the user requests.
whether isoreader should conduct a data integrity check after reading the file. Should always be TRUE
unless there is independent data integrity checking already taking place inside the reader.
whether to overwrite an existing file reader for the same extension
the environment where to find the function, by default this will be determined automatically and will throw an error if there is any ambiguity (e.g. the same function name in multiple packages) in which case it should be set manually
iso_register_dual_inlet_file_reader
: use this function to register file readers for dual inlet files.
iso_register_continuous_flow_file_reader
: use this function to register file readers for continuous flow files.
iso_register_scan_file_reader
: use this function to register file readers for scan files.
Other file_types:
iso_get_supported_file_types()
Other file_types:
iso_get_supported_file_types()
Other file_types:
iso_get_supported_file_types()