Skip to content

r-devel/repo-best-practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

repo-best-practices

From an R Dev Day issue, we are collating best-practices to apply to r-devel repos.

At the moment, we are gathering ideas on best practices.

See also GitHub's guide to repo best practices

Essential best practices (advised for all r-devel repos)

  • README.md
    • Include example of how to use the project.
    • Comments should include break down of code describing function and method responsibility.
  • CONTRIBUTING.md
    • Decribe process for code review for developers to review changes.
    • Create one for the r-devel org as a whole - see #1
  • LICENSE.md
    • Make sure this is appropriate for the repo (see https://choosealicense.com/)
      • (Could consider making recommendations for different project types)
  • CODE_OF_CONDUCT.md
    • Create one for the r-devel org as a whole - see #2
  • CODEOWNERS file
  • Securing the repo
  • Website or homepage URL

Advisable best practices (nice to have at maintainer's discretion)

Repo-specific considerations

Quarto projects

  • Use GHA for publishing
  • Check accessibility with the wave tool
    via their browser extensions
    • Alt-text for all images
    • Colour contrast requirements
    • Note that there are some issues with Quarto sites revealed by wave that will need raising with Quarto
  • Encourage engagement and contribution with repository links
website:
  repo-url: https://github.com/r-devel/YOUR-REPO
  repo-actions: [edit, issue]
  • Consider "editions" of books (with changes tracked in a CHANGELOG.md or NEWS.md)
    • Look at other community books (e.g. The Turing Way) to see how they handle this

Software Projects

  • Document changes by version number in CHANGELOG.md or NEWS.md
  • Create GitHub releases for new versions
  • Use semantic versioning
  • Release strategy, e.g. semantic versioning, release notes, deployment process

Further considerations

  • pre-commit hooks
    • Which would be useful for which type of project?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •