Write an input/ directory with toy datasets into the working directory
Source:R/use_toy_input.R
use_toy_input.Rd
Write an input/ directory with toy datasets into the working directory
Examples
use_toy_input()
#> Writing input/ with toy datasets.
# It won't overwrite
try(use_toy_input())
#> Error in use_toy_input() :
#> The input/ directory already exists in the working directory
#> ✖ Aborting to avoid overwriting existing data.
#> ℹ Do you need to move or remove your existing input/ directory?
list.files("input")
#> [1] "ecoinvent_activities.csv"
#> [2] "ecoinvent_europages.csv"
#> [3] "ecoinvent_inputs.csv"
#> [4] "emissions_profile_any_companies.csv"
#> [5] "emissions_profile_products.csv"
#> [6] "emissions_profile_upstream_products.csv"
#> [7] "europages_companies.csv"
#> [8] "isic.csv"
#> [9] "sector_profile_any_scenarios.csv"
#> [10] "sector_profile_companies.csv"
#> [11] "sector_profile_upstream_companies.csv"
#> [12] "sector_profile_upstream_products.csv"
# Cleanup
unlink("input")