Create a Pre-defined Directory Hierarchy on Disk
Source:R/create_directory_structure.R
create_directory_structure.Rd
Create a Pre-defined Directory Hierarchy on Disk
Usage
create_directory_structure(
path,
structure_path = system.file("templates", "_project_structure_en.yaml", package =
"saros.base"),
numbering_prefix = c("none", "max_local", "max_global"),
numbering_inheritance = TRUE,
word_separator = NULL,
numbering_parent_child_separator = word_separator,
numbering_name_separator = " ",
case = c("asis", "sentence", "title", "lower", "upper", "snake"),
replacement_list = c(project_initials = "SSN"),
create = FALSE,
count_existing_folders = FALSE
)
Arguments
- path
String, path to where to create the project files
- structure_path
String. Path to the YAML file that defines the folder structure. Defaults to system.file("templates", "_project_structure_en.yaml").
- numbering_prefix
String. One of c("none", "max_local", "max_global").
- numbering_inheritance
Flag. Whether to inherit numbering from parent folder.
- word_separator
String. Replace separators between words in folder names. Defaults to NULL.
- numbering_parent_child_separator
String. Defaults to word_separator.
- numbering_name_separator
String. Separator between numbering part and name.
- case
String. One of c("asis", "sentence", "lower", "upper", "title", "snake").
- replacement_list
named character vector. Each name in this vector will be replaced with its
"{{value}}"
in the structure_path file- create
Boolean. Defaults to TRUE in initialize_saros_project(), FALSE in create_directory_structure().
- count_existing_folders
Boolean. Defaults to FALSE.
Examples
create_directory_structure(path = tempdir())
#> /tmp/Rtmp3M1GDO/Administration
#> /tmp/Rtmp3M1GDO/Administration/Application
#> /tmp/Rtmp3M1GDO/Administration/Application/Call
#> /tmp/Rtmp3M1GDO/Administration/Application/Formalities
#> /tmp/Rtmp3M1GDO/Administration/Application/CVs
#> /tmp/Rtmp3M1GDO/Administration/Application/Collaboration and cooperation
#> agreements
#> /tmp/Rtmp3M1GDO/Administration/Application/Application
#> /tmp/Rtmp3M1GDO/Administration/Application/Pre-analysis
#> /tmp/Rtmp3M1GDO/Administration/Application/For submission
#> /tmp/Rtmp3M1GDO/Administration/Budget
#> /tmp/Rtmp3M1GDO/Administration/Contracts and agreements
#> /tmp/Rtmp3M1GDO/Administration/Invoices, accounting and receipts
#> /tmp/Rtmp3M1GDO/Administration/Status reports
#> /tmp/Rtmp3M1GDO/Administration/Logo and graphical materials
#> /tmp/Rtmp3M1GDO/Administration/Internal meetings
#> /tmp/Rtmp3M1GDO/Administration/Internal meetings/Meeting agendas and
#> invitations
#> /tmp/Rtmp3M1GDO/Administration/Internal meetings/Internal presentations
#> /tmp/Rtmp3M1GDO/Administration/Internal meetings/Minutes
#> /tmp/Rtmp3M1GDO/Materials
#> /tmp/Rtmp3M1GDO/Materials/Overall planning
#> /tmp/Rtmp3M1GDO/Materials/Consent form
#> /tmp/Rtmp3M1GDO/Materials/Ethical-GDPR approval
#> /tmp/Rtmp3M1GDO/Materials/Survey questionnaires
#> /tmp/Rtmp3M1GDO/Materials/Interview guides
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Staff
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Pupils
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Parents
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Researchers
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Leaders
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Teachers
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Principals
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Students
#> /tmp/Rtmp3M1GDO/Materials/Interview guides/Population
#> /tmp/Rtmp3M1GDO/Materials/Request of data from
#> /tmp/Rtmp3M1GDO/Materials/Literature review-design
#> /tmp/Rtmp3M1GDO/Materials/Intervention materials
#> /tmp/Rtmp3M1GDO/Materials/Randomizing participants
#> /tmp/Rtmp3M1GDO/Materials/Chapter overviews
#> /tmp/Rtmp3M1GDO/Literature
#> /tmp/Rtmp3M1GDO/Literature/Topic has policy relevance
#> /tmp/Rtmp3M1GDO/Literature/Pure theory and framework
#> /tmp/Rtmp3M1GDO/Literature/Similar empirical studies
#> /tmp/Rtmp3M1GDO/Literature/Similar instruments and guides for data collection
#> /tmp/Rtmp3M1GDO/Literature/Relevant analytic methodology
#> /tmp/Rtmp3M1GDO/Literature/Unprocessed (remove from here)
#> /tmp/Rtmp3M1GDO/Data
#> /tmp/Rtmp3M1GDO/Data/Population data
#> /tmp/Rtmp3M1GDO/Data/Population data/Codebook
#> /tmp/Rtmp3M1GDO/Data/Sampling frame
#> /tmp/Rtmp3M1GDO/Data/Registry data
#> /tmp/Rtmp3M1GDO/Data/Collected respondent lists
#> /tmp/Rtmp3M1GDO/Data/Respondent list for survey system
#> /tmp/Rtmp3M1GDO/Data/Downloaded response data
#> /tmp/Rtmp3M1GDO/Data/Downloaded response data/Codebook
#> /tmp/Rtmp3M1GDO/Data/Qualitative data
#> /tmp/Rtmp3M1GDO/Data/Qualitative data/Interview recordings
#> /tmp/Rtmp3M1GDO/Data/Qualitative data/Observational notes
#> /tmp/Rtmp3M1GDO/Data/Text corpus
#> /tmp/Rtmp3M1GDO/Data/PDF-reports
#> /tmp/Rtmp3M1GDO/Data/Prepared data
#> /tmp/Rtmp3M1GDO/Data/Prepared data/Codebooks
#> /tmp/Rtmp3M1GDO/Saros_SSN
#> /tmp/Rtmp3M1GDO/Saros_SSN/Scripts
#> /tmp/Rtmp3M1GDO/Saros_SSN/Resources
#> /tmp/Rtmp3M1GDO/Saros_SSN/Draft generations
#> /tmp/Rtmp3M1GDO/Saros_SSN/Draft generations/main
#> /tmp/Rtmp3M1GDO/Saros_SSN/Draft generations/Reports
#> /tmp/Rtmp3M1GDO/Saros_SSN/Drafts in editing
#> /tmp/Rtmp3M1GDO/Saros_SSN/Drafts in editing/main
#> /tmp/Rtmp3M1GDO/Saros_SSN/Drafts in editing/Reports
#> /tmp/Rtmp3M1GDO/Saros_SSN/Completed drafts
#> /tmp/Rtmp3M1GDO/Saros_SSN/Completed drafts/main
#> /tmp/Rtmp3M1GDO/Saros_SSN/Completed drafts/Reports
#> /tmp/Rtmp3M1GDO/Publications
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Cover letter
#> & response to reviewers
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Manuscript
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Analysis
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Figures for
#> submission
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Tables for
#> submission
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Appendix
#> /tmp/Rtmp3M1GDO/Publications/Paper1-Short title (author initials)/Online
#> supplementary materials
#> /tmp/Rtmp3M1GDO/Outreach
#> /tmp/Rtmp3M1GDO/Outreach/Research conference presentation
#> /tmp/Rtmp3M1GDO/Outreach/Research conference poster
#> /tmp/Rtmp3M1GDO/Outreach/Stakeholders and reference group
#> /tmp/Rtmp3M1GDO/Outreach/Stakeholders' communication channels
#> /tmp/Rtmp3M1GDO/Outreach/Practitioners and special interest channels
#> /tmp/Rtmp3M1GDO/Outreach/Public through mass media channels
#> /tmp/Rtmp3M1GDO/Other