This repo includes a minimal directory structure and set of files to preserve project code.
To initialize this template repo for your project,
- Go to https://github.com/gsa-oes/Template-CodeOnly (you are here!)
- Click the green button to "Use this Template"
- Name your new repo. Use the form
NNNN-ABC-MyProjectDescription
NNNN
is the four-digit project codeABC
is the agency abbreviationMyProjectDescription
is a very short project description in Pascal case
- Change the name of the new
.Rproj
file fromTemplate-CodeOnly.Rproj
toNNNN-ABC-MyProjectDescription.Rproj
- Edit the new
README.md
file. YourREADME
should describe your project, provide a guide to what's in your repo, etc. (You can do this by clicking the pencil icon above, making changes, and confirming the changes at the bottom of the page.) Include a link to the project's top-levelG:
drive folder. - Clone your new repo into your project's top-level
G:
drive folder. - Delete all these template
README
instructions.
- Store your code in
/code/
- Use high-quality filenames that are human- and machine-readable. They should
- start with numbers, so that default ordering is correct
00-prelims.R
,01-power-calcs.R
, etc. - do not have spaces
- have informative names
- separate words with
-
or_
to enable human reading
- start with numbers, so that default ordering is correct
- Edit your code files as you normally would
- Frequently commit and push the changes you make back up to GitHub