Generate a project template to increase efficiency.
new_project(project = "new", path = getwd(), open = is.global(2), ...)Creates a project template.
A character vector of the project name.
The path to where the project should be created. Default is the current working directory.
logical. If TRUE the project will be opened in RStudio.
The default is to test if new_project is being used in the global
environment, if it is then the project directory will be opened.
ignored.
The project template includes these main directories and scripts:
- A directory to store coding conventions or demographics data:
- A blank template for demographic information
- A directory to store correspondence and agreements with the client:
- A text file to put research team members' contact information
- A directory to store data:
- A directory to store documents related to the project
- A directory to store plots
- A directory with report and presentation related tools.
- A directory to store scripts; already contains the following:
- initial cleaning of raw transcripts
- initial analysis
- plotting script
- A directory to export tables to
- A directory to store word lists that can be sourced and supplied to functions
- A script to store user made functions related to the project
- A function to view, and optionally copy to the clipboard, emails for the client/lead researcher, analyst and/or other project members (information taking from ~/CORRESPONDENCE/CONTACT_INFO.txt file)
- A function to view, and optionally copy to the clipboard, non-completed tasks from the TO_DO.txt file
- A text file documenting project changes/needs etc.
- A pdf explaining the structure of the project template
- A project file used by RRtudio; clicking this will open the project in RStudio.
- A text file documenting project tasks
The template comes with a .Rproj file. This makes operating in RStudio very easy. The file can be kept on the desktop or a git application such as github, bitbucket or dropbox, depending on what the client/research team is comfortable utilizing.