Learn R Programming

froggeR (version 0.6.0)

write_readme: Create a Project README File

Description

This function streamlines project documentation by creating a README.md file and opening it for editing.

Usage

write_readme(path = here::here())

Value

Invisibly returns the path to the created file.

Arguments

path

Character. Path to the project directory. Default is current project root via 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

See Also

quarto_project, write_notes

Examples

Run this code
# Create a temporary directory for testing
tmp_dir <- tempdir()

# Write the README file
write_readme(path = tmp_dir)

# Confirm the file was created
file.exists(file.path(tmp_dir, "README.md"))

# Clean up
unlink(file.path(tmp_dir, "README.md"))

Run the code above in your browser using DataLab