Skip to content

Instantly share code, notes, and snippets.

@martinctc
Last active April 14, 2021 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinctc/92ddd7508ceb6fb86d59914d74b61dc0 to your computer and use it in GitHub Desktop.
Save martinctc/92ddd7508ceb6fb86d59914d74b61dc0 to your computer and use it in GitHub Desktop.
[List of R developer tools] #R
# Regular R CMD check
devtools::check()
# Check R-hub
devtools::check_rhub()
# Cross-platform R CRAN check
rhub::check_for_cran()
# Return a character vector with the names of dependencies - CRAN only
miniCRAN::pkgDep()
# Create a graph representation of dependencies - CRAN only
dep_graph <- miniCRAN::makeDepGraph("package")
plot(dep_graph, legendPosition = c(-1, -1), vertex.size = 10, cex = 0.7)
# Analyze package dependencies
dstr::dstr("tidyverse/tibble")
dstr::dstr() # If you are in package directory
# Reducing package dependencies
https://recology.info/2018/10/limiting-dependencies/
# Check package dependencies
# Requires some additional dependencies
# https://cran.r-project.org/web/packages/pkgndep/vignettes/pkgndep.html
pkgndep::pkgndep()
# Release on CRAN
devtools::release()
# Increment version
usethis::use_version()
# Check number of downloads
cranlogs::cran_downloads(packages = "wpa", from = "2021-04-06", to = "2021-04-06")
cranlogs::cran_downloads(packages = "wpa", when = "last-month")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment