Generate a path to a storage directory

store_dir(set_list, base_dir = fs::path("..", "..", "out"))

Arguments

set_list

Named, nested list. Passed to set_list argument of envFunc::name_env_out()

base_dir

Character. Path to outputs store.

Value

Full path to a store directory for a project

Examples

# a list of settings
settings <- list(extent = list(polygons = "sa_ibrasub_xn"
                               , filt_col = NULL
                               , filt_level = NULL
                               , buffer = 0
                               , temp_ext = "P50Y"
                               )
                 , grain = list(x = 90
                                , y = 90
                                , z = "P50Y"
                                , taxonomic = "species"
                                )
                 , aoi = list(polygons = "lsa"
                              , filt_col = "LSA"
                              , filt_level = "GA"
                              , buffer = 0
                              )
                 )

# generate the full path to a store
out_dir <- store_dir(settings)
#> Joining with `by = join_by(path, extent, grain, aoi)`
#> Joining with `by = join_by(path, extent, polygons, filt_col, filt_level,
#> buffer, grain, aoi)`

out_dir
#> ../../out/envFunc/sa_ibrasub_xn______0__P50Y/90__90__P50Y__species/lsa__LSA__GA__0