inst/doc/a04_ObtainingReferences.R

## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setupDarwin, include=FALSE, eval = Sys.info()[["sysname"]] == "Darwin"----
# The following line seems to be required by pkgdown::build_site() on my machine,
# but causes build to break with R-CMD-CHECK on GH
knitr::opts_chunk$set(dev = "png", dev.args = list(type = "cairo-png"))

## ----eval=FALSE---------------------------------------------------------------
#  install.packages("rcrossref")

## -----------------------------------------------------------------------------
library(Rcompadre)
library(rcrossref)

## ----load example COMPADRE data, eval=TRUE------------------------------------
data(Comadre)

## -----------------------------------------------------------------------------
Comadre <- subset(Comadre, Family == "Ursidae")

## -----------------------------------------------------------------------------
Comadre$Authors
Comadre$YearPublication
Comadre$DOI_ISBN

## -----------------------------------------------------------------------------
cr_cn(unique(Comadre$DOI_ISBN), format = "text", style = "apa")

Try the Rcompadre package in your browser

Any scripts or data that you put into this service are public.

Rcompadre documentation built on Oct. 17, 2024, 1:07 a.m.