my_extract <- define_extract_usa("Example", "us2013a", "YEAR")
if (FALSE) {
# `submit_extract()` returns an ipums_extract object updated to include the
# extract number, so it is often useful to name the return object:
submitted_extract <- submit_extract(my_extract)
# If you didn't capture the return object of submit_extract for your most
# recent extract, you can recover that information with:
submitted_extract <- get_last_extract_info("usa")
# View the extract number
submitted_extract$number
# Check if submitted extract is ready
is_extract_ready(submitted_extract) # returns TRUE or FALSE
# Or have R check periodically until the extract is ready
downloadable_extract <- wait_for_extract(submitted_extract)
}
Run the code above in your browser using DataLab