Created
August 25, 2022 13:47
-
-
Save kathoffman/2d8bbc843d835a0f31db88c0aa5ea743 to your computer and use it in GitHub Desktop.
Code from Nick for defining a new cabinet with {cabinets}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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