scitations

knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE
)

Build Status codecov

scitations - citations for R

scitations is meant to make it easy to work with citations, whether in tidy format or not, and to convert from various formats to citations, and to various formts.

The package introduces a simple S3 class called a scitation that we can then perform many operations with or on.

There are other bibliographic packages out there - this package tries not to duplicate their efforts, while striving for a fun to use citation workflow.

Installation

devtools::install_github("ropenscilabs/scitations")
library("scitations")

make a citation

(cit <- scitation(
  "article", 
  'petkun2016', 
  doi = "10.7717/peerj.1126",
  author = "foobar",
  title = "That and this and stuff and things",
  journaltitle = "Stuff And Things",
  year = 2001
))

citations via crossref data

library("rcrossref")
res <- cr_works(limit = 3)
as.scitation(res$data) 

coerce to a data.frame

scitation_df(cit, cit, cit)

or from a list

scitation_df(.list = list(cit, cit, cit))

Meta



ropenscilabs/scitations documentation built on May 18, 2022, 8:31 p.m.