I updated the functions that save an extract to a json file and define an extract from a json file to include the necessary API endpoint information to be able to re-create and submit an extract from a json file. The benefits of this are:
An extract defined from a json file can now be submitted as-is with
extract <- define_extract_from_json("extract.json") submitted_extract <- submit_extract(extract)
The extract definition json is now inline with what is written and expected by ipumspy, making it possible to re-create an extract made using ipumsr with ipumspy and vice versa!
I updated the functions that save an extract to a json file and define an extract from a json file to include the necessary API endpoint information to be able to re-create and submit an extract from a json file. The benefits of this are:
extract <- define_extract_from_json("extract.json") submitted_extract <- submit_extract(extract)