# \donttest{
# Create some example results first
results <- run_builtin_analysis(scale = "county", year = 2016)
# Save with auto-generated filename
save_spatial_data(results$agricultural, scale = "county", year = 2016)
# Save with custom filename
save_spatial_data(results$agricultural,
file.path(tempdir(), "my_results.rds"))
# }
Run the code above in your browser using DataLab