Skip to content

Tools and information about developing and improving "good" R packages

Notifications You must be signed in to change notification settings

AnestisTouloumis/R_package_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatic tools and information for creating and improving R packages

This document relies heavily on two posts:

Creating R package

Styling Code

  • R package lintr for static code analysis
  • R package style or the R function usethis::use_tidy_style() to prettify code

Workflow:

usethis::use_tidy_style()
lintr::lint_package()

Continuous Intergration

Personal configuration for .travis.yml file:

language: r
r:
  - oldrel
  - release
  - devel

r_github_packages:
  - jimhester/lintr
  
after_success:
  - R CMD INSTALL $PKG_TARBALL
  - Rscript -e 'covr::codecov()'
  - Rscript -e 'lintr::lint_package()'

Spelling

  • devtools::spell_check
  • spelling::spell_check_package

Workflow:

devtools::spell_check(".")
spelling::spell_check_package(".")

Automatic advice

Workflow:

goodpractice::gp(".")

Static html documentation

pkgdown::init()
pkgdown::build_site()

GitHub

About

Tools and information about developing and improving "good" R packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published