knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
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.
devtools::install_github("ropenscilabs/scitations")
library("scitations")
(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 ))
library("rcrossref") res <- cr_works(limit = 3) as.scitation(res$data)
scitation_df(cit, cit, cit)
or from a list
scitation_df(.list = list(cit, cit, cit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.