Skip to content

Instantly share code, notes, and snippets.

@kathoffman
Created August 25, 2022 13:47
Show Gist options
  • Save kathoffman/2d8bbc843d835a0f31db88c0aa5ea743 to your computer and use it in GitHub Desktop.
Save kathoffman/2d8bbc843d835a0f31db88c0aa5ea743 to your computer and use it in GitHub Desktop.
Code from Nick for defining a new cabinet with {cabinets}
# START A CABINET
library(cabinets)
p <- "~/Documents/work"
file_str <- list(
'data' = NULL,
'code/clean' = NULL,
'code/reports' = NULL,
'code/analysis' = NULL,
'data/derived' = NULL,
'data/raw' = NULL,
'reports' = NULL,
'documents' = NULL,
'log' = NULL
)
create_cabinet(name = "newproj",
directory = p,
structure = file_str)
cabinets::new_cabinet_proj(.newproj, "fun_new_project")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment