build_ris: Build RIS files from other sources

View source: R/build_ris.R

build_risR Documentation

Build RIS files from other sources

Description

Builds an RIS file based on a basic input of fields corresponding to a minimum information for deduplication and record identification from external API sources (e.g. CrossRef).

Usage

build_ris(data, save = FALSE, filename = "export", path = NULL)

Arguments

save

Logical argument to specify whether the output file should be saved as an .ris file.

filename

Optional name of the output file if save = TRUE. Default is 'export'.

path

Path to which file should be saved.

input

A dataframe object containing bibliographic data. Each item is an independent line in the dataframe. The dataframe must contain columns named as follows: 'authors', 'year', 'title', 'source', 'volume', 'issue', 'start_page', 'end_page', and 'doi'.

Value

An RIS formatted text file saved to the desired path.

Examples

## Not run: 
data <- read.csv('inst/extdata/data.csv')
ris <- build_ris(data, save=TRUE)

## End(Not run)

nealhaddaway/bibfix documentation built on Dec. 24, 2024, 7:43 p.m.