Learn R Programming

rUM (version 2.2.0)

write_readme: Create a project README file

Description

This function streamlines project documentation by creating and managing a README.md file. It provides interactive prompts for existing files and maintains consistent project documentation structure.

Usage

write_readme(path = here())

Value

Creates a comprehensive README template for project documentation.

Arguments

path

The destination directory for the README file. Defaults to here::here().

Details

The README.md template includes structured sections for:

  • Project description (study name, principal investigator, author)

  • Project setup steps for reproducibility

  • File and directory descriptions

  • Miscellaneous project notes

If the README file already exists, the function will stop and warn the user. The templates include example documentation that can be modified to suit project needs.

Examples

Run this code
# Create new README in temporary directory
tmp <- tempdir()
write_readme(path = tmp)

Run the code above in your browser using DataLab