Skip to content

Commit

Permalink
Explain how to cite R together with a given list of packages. Close #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakillo committed Oct 23, 2023
1 parent bc89a2a commit 2b5e4fd
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: grateful
Title: Facilitate Citation of R Packages
Version: 0.2.5
Version: 0.2.6
Authors@R: c(
person("Francisco", "Rodriguez-Sanchez",
email = "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# grateful 0.2.6

* Explain how to cite R together with a given list of packages (issue #37).

# grateful 0.2.5

* Fixed a bug in writing passive voice paragraph when generating a citation report (issue #39).
Expand Down
6 changes: 5 additions & 1 deletion R/cite_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
#' within the project/folder (the default), or "Session" to include only packages
#' used in the current session.
#' Alternatively, `pkgs` can also be a character vector of package names to
#' get citations for (see examples).
#' get citations for. To cite R as well as the given packages,
#' include "base" in `pkgs` (see examples).
#'
#' @param omit Character vector of package names to be omitted from the citation
#' report. `grateful` is omitted by default. Use `omit = NULL` to include all
Expand Down Expand Up @@ -138,6 +139,9 @@
#' # Cite only user-provided packages:
#' cite_packages(pkgs = c("renv", "remotes", "knitr"), out.dir = tempdir())
#'
#' # Cite R as well as user-provided packages
#' cite_packages(pkgs = c("base", "renv", "remotes", "knitr"), out.dir = tempdir())
#'
#'
#' # To include citations in an R Markdown or Quarto file
#'
Expand Down
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
`r badger::badge_cran_release()`
![](https://img.shields.io/github/r-package/v/Pakillo/grateful)
<a href="https://diffify.com/R/grateful" target="_blank"><img src="https://diffify.com/diffify-badge.svg" alt="The diffify page for the R package grateful" style="width: 100px; max-width: 100%;"></a>
[![R-CMD-check](https://github.com/Pakillo/grateful/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Pakillo/grateful/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/Pakillo/grateful/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Pakillo/grateful?branch=master)
`r badger::badge_lifecycle("stable")`
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

[![](https://www.r-pkg.org/badges/version/grateful)](https://cran.r-project.org/package=grateful)
![](https://img.shields.io/github/r-package/v/Pakillo/grateful)
<a href="https://diffify.com/R/grateful" target="_blank"><img src="https://diffify.com/diffify-badge.svg" alt="The diffify page for the R package grateful" style="width: 100px; max-width: 100%;"></a>
[![R-CMD-check](https://github.com/Pakillo/grateful/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Pakillo/grateful/actions/workflows/R-CMD-check.yaml)
[![Codecov test
coverage](https://codecov.io/gh/Pakillo/grateful/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Pakillo/grateful?branch=master)
Expand Down
6 changes: 5 additions & 1 deletion man/cite_packages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/get_pkgs_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/scan_packages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b5e4fd

Please sign in to comment.