Skip to content

Commit d71d50a

Browse files
Conditionally run bibliography_entries() example
1 parent 3fe2a6d commit d71d50a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

R/bibliography.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
#' @return A dataset representing the bibliographic entries, suitable for
1111
#' generating a reference section in a document.
1212
#'
13-
#' @author Rob J Hyndman & Mitchell O'Hara-Wild
13+
#' @author Mitchell O'Hara-Wild & Rob J Hyndman
1414
#'
1515
#' @examples
16+
#' if (rmarkdown::pandoc_available("2.7")) {
1617
#'
1718
#' # Create a bibliography from a set of packages
1819
#' bib <- tempfile(fileext = ".bib")
@@ -30,6 +31,7 @@
3031
#' bibliography_entries(bib) %>%
3132
#' arrange(desc(author$family))
3233
#'
34+
#' }
3335
#' @export
3436
bibliography_entries <- function(file, startlabel = NULL, endlabel = NULL) {
3537
if(!is.null(startlabel)){

man/bibliography_entries.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)