The file connector allows to manage data stored as .csv files.
The high-level functions are:
The following parameters are mandatory:
"R_IKER_PATH" environment variable.Optional parameter:
path. This is useful when the environment variable is defined as a path to the application data, but each date types (i.e. each resource) is stored in a specific folder.Specific parameter dedicated to reading the data:
See read_data() for more details.
Specific parameter dedicated to writing the data:
Because of the nature of the storage, the full dataset has to be passed.
See write_data() for more details.
The high-level functions are smart enough to understand parameters passed as a list.
For example:
load_data(path = getwd(), file = "test.csv")Is equivalent to:
load_data(connector = list(path = getwd(), file = "test.csv"))This is useful when several connectors may be used in the same app or when the connector values are stored as a list-like object (a YAML file for example).