# temp location to store configuration files
tmpdir <- tempdir()
print(tmpdir)
# Create an example config file
hierarchy <- "default:
paths:
data: !expr list(DEV = '/demo/DEV/username/project1/data',
PROD = '/demo/PROD/project1/data')
output: !expr list(DEV = '/demo/DEV/username/project1/output',
PROD = '/demo/PROD/project1/output')
programs: !expr list(DEV = '/demo/DEV/username/project1/programs',
PROD = '/demo/PROD/project1/programs')"
writeLines(hierarchy, file.path(tmpdir, "hierarchy.yml"))
rprofile(config::get(file = file.path(tmpdir, "hierarchy.yml")))
Run the code above in your browser using DataLab