Functions to read and write CSV files. The objects returned by these
functions are data.frames with the following attributes:
- path
The path to the file on disk.
- csv
The type of CSV: either standard or german.
- hash
The hash value computed with digest's digest function, if
digest is installed.
read_csv is a wrapper to determine whether to use
utils:read.csv2 or
utils:read.csv.
It sets the above three arguments.
write_csv compares the hash value stored in the object's
attribute
with the objects current hash value. If they differ, it writes the object to
the file argument or, if not given, to the path
stored in the object's attribute. If no csv_type is given, it uses
the csv type stored in object's attribute.
If digest is not installed, the object will (unconditionally) be
written to disk.