Writes the state file to the specified directory within the generated
database (state/state.json
).
write_state_file(task, regions, source_for_state)
[mandatory] (list) Session task specifying parameters for data collection.
[mandatory] (character) A vector containing ISO 3166-2 region codes. Country codes are two characters long, while state codes contain additional characters.
[mandatory] (list) A list containing information regarding the collected data.