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 de-duplication and record identification from external API sources (e.g. CrossRef).

Usage

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

Arguments

data

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

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.

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/GSscraper documentation built on May 6, 2022, 10:52 a.m.