store_dir: Generate a path to a storage directory

View source: R/store_dir.R

store_dirR Documentation

Generate a path to a storage directory

Description

Generate a path to a storage directory

Usage

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)

out_dir

Acanthiza/envFunc documentation built on Dec. 14, 2024, 10:47 p.m.