PEDSnet Reusable Code Repo Template is a blank GitHub repository and README template for reusable code submitted to PEDSpace for ingestion. The BLANK_README template is stripped-down fork of the Best-README-Template. We ask that you minimally include the information outlined in this document.
- "Use this Template" in GitHub under the PEDSnet organization1.
- Open
BLANK_README.md. - Change or add any images that best describe your project2.
- Find and replace the following placeholders:
repo_name: The repository name in snake_case format (e.g.,my_project_repo). This must correspond to the repo name in the GitHub repo's URL.project_title: A human-readable, Title Case name for your project (e.g., "My Project Title").project_description: A concise description of your project (1-2 sentences).project_license: The license type for your project (e.g., MIT, GPL-3.0).
- Update
LICENSE.txtto reflect your submission's copyright license. - Follow the instructions under Reproducibility.
- Delete this
README.mdand renameBLANK_README.mdtoREADME.md. - Commit and push to
origin/main.
If you are doing ongoing R development work, we strongly encourage that you do so using renv e.g. renv::init() and renv::snapshot(). This will make not only documentation easier but can also improve your development workflow in the long run by ensuring version consistency and improving reproducibility.
Below are the minimum submission guidelines:
- Code Repositories (not packaged):
- Must include an
renv.lockfile generated from the most up-to-date R environment capabale of successfully executing the code.
- Must include an
- Packaged Repositories:
renv.lockfile is optional but must document:- R version used for development.
- Key dependency versions3.
- Use an
renvproject library for version consistency and improved development workflow.
- Make sure that the project root is the working directory of your R session e.g
setwd('/path/to/project/dir'). - Generate the
renv.lockfile:renv::snapshot()
- To restore the R environment:
renv::restore()
Footnotes
-
Click on the "Use this Template" button in the corner of the page to create a repository using this template, and then clone this repository locally to edit. I recommend VSCode with the Markdown Preview Enanched extension, but you can also use a plaintext text editor. ↩
-
Swap out
images/screenshot.pngwith a relevant image for your deposit (optional) and uncomment and edit lines 25 and 26 in to display it. ↩ -
If you are submitting a package without an
renv.lockfile, you can useutils::sessionInfo()or (preferably)sessioninfo::session_info(pkgs = "attached")from the sessioninfo package to generate an output to include under the Built With section of the template. ↩
