vignettes/110_organization.Rmd
110_organization.Rmd
Proper file organization makes it so that data files are easy to find and their purpose easy to ascertain. Projects should be split into at least four separate folders:
data
submission
references (optional – a Zotero reference library is required instead)
code
As stated in the beginning of this DMP, a project should be defined by the data. If you are using data for multiple smaller projects (or manuscripts) then you may have subfolders in the project folder for those smaller projects. However, it is recommended that instead of having subfolders for those projects, you should have separate R projects and, therefore, R project folders, for those smaller projects thereby making a new R package for each subproject/manuscript.
The data folder will hold all of the various data tables, pictures, GIS data, etc. you are using for the project.
Root folder: Only the latest versions of your data should be in the root data folder.
Subfolders:
raw: the original data files. These data files should never be edited!
old: versions of your data.
You can add more subfolders to better organize your data if you wish.
Note: this data folder is different than the one that will be in your R project folder (see the R Packaging section). The data folder in your R project folder (likely named something like ‘data_raw’) will only hold the data you are using for your analyses. You can use a separate R script to import the latest versions (or a specific version) of your data into this folder overwriting the data already in that folder (see the Useful R Code section). To make this easier, there is a data_import()
function being written for the iEcoDMP
package (iEcoDMP
is currently under construction).
The submission folder will hold all all of your files you are using for manuscript creation.
Root folder: Files created and used for manuscript creation and presentation
Subfolders:
figures: all figure files
tables: all tables and appendices for the publication
old: older versions of figures, tables and manuscript
The references folder will hold any important journal articles you are using for your project.
Subfolders: created based on subject or manuscript
Note: in lieu of this references folder, Zotero reference manager library should be used. See the Reference Libraries section for more information.
The code folder will hold all scripts and R project folder(s).
Subfolders:
R Project folders (see R Packaging section)
Any scripts that are not ran in R can be in a different subfolder named for the program/language used. However, these scripts can also be in a subfolder of the R project folder to make uploading to github and version controlling with git easier.
Temple University, jmg5214@gmail.com↩︎
Temple University, sebastiano.debona@gmail.com↩︎
Temple University, mrhelmus@temple.edu↩︎
Temple University, jebehm@temple.edu↩︎