write_update_data: Write or update the sensor data in the data folder
Description
Writes or updates the sensor data in the data folder.
It retrieves the data for the specified sensor between start_date
and end_date (inclusive) using the retrieve_sensor function,
and then converts certain columns to character strings before writing the data
to a RData file in the data folder (if create_directory = TRUE),
to a temporary folder otherwise.
if (FALSE) # This function requires a valid API keyperiod <- as.Date(c('2022-01-01', '2022-12-31'))
write_update_data('RteVitre-06', period[1], period[2])