resource_dir: Assure that a resource directory for the named resource...

View source: R/filesystem-locations.R

resource_dirR Documentation

Assure that a resource directory for the named resource exists

Description

This is fiddly, follow the same rules

  1. create if needed

  2. don't clobber

  3. fail if a file is where a directory should be

  4. give a clear message of the issues on failure

Usage

resource_dir(name, path, ...)

Arguments

name

name of environmental variable storing resource location

path

location to of resource

Value

path of known-to-exist resource


sakrejda/workflow documentation built on Nov. 18, 2024, 3:02 a.m.