Skip to content

Commit

Permalink
testing formatting changes to overcome HTML validation notes on checks
Browse files Browse the repository at this point in the history
  • Loading branch information
francojc committed Aug 16, 2024
1 parent af13784 commit 9ec9dbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/add_pkg_to_bib.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
#'
#' @param pkg_name The name of the package to add to the BibTeX file.
#' @param bib_file The name of the BibTeX file to write to.
#'
#' @return NULL
#'
#' @importFrom knitr write_bib
#'
#' @examples
#' my_bib_file <- tempfile(fileext = ".bib")
#' add_pkg_to_bib("dplyr", my_bib_file)
#' readLines(my_bib_file) |> cat(sep = "\n")
#'
#' @export
add_pkg_to_bib <- function(pkg_name, bib_file = "packages.bib") {
knitr::write_bib(c(.packages(), pkg_name), file = bib_file)
Expand Down
1 change: 1 addition & 0 deletions man/add_pkg_to_bib.Rd

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

0 comments on commit 9ec9dbb

Please sign in to comment.