Skip to content

Instantly share code, notes, and snippets.

@Pakillo
Created March 22, 2023 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Pakillo/999e34301c56011138ef164363502465 to your computer and use it in GitHub Desktop.
Save Pakillo/999e34301c56011138ef164363502465 to your computer and use it in GitHub Desktop.
library(usethis)
create_package("templateRpackage")
## Use git & create repo on GitHub
use_git()
use_github(organisation = "EcologyR")
## Create README
use_readme_rmd()
## Create data folders
use_data_raw()
use_package_doc()
use_news_md()
use_testthat()
## create example function (suma.R)
use_test("suma")
## create example function (resta.R)
use_test()
use_github_action_check_release()
use_mit_license()
use_coverage()
use_github_action("test-coverage")
# pkgdown could run on CI too, but here manually
use_github_pages(branch = git_default_branch(), path = "/docs")
use_pkgdown()
pkgdown::build_site()
use_citation()
# use_code_of_conduct("email")
# use_package("ggplot2")
# usethis::use_github_action("lint")
# use_logo("logo.png")
# use_spell_check()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment