% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-ris.R
\name{read_ris}
\alias{read_ris}
\title{Read an RIS file}
\usage{
read_ris(file, encoding = "UTF-8")
}
\arguments{
\item{file}{Path to a \code{.ris} file.}

\item{encoding}{Character. File encoding. Default \code{"UTF-8"}.}
}
\value{
A data frame in the standard bibnets format: \code{id}, \code{title},
\code{year}, \code{journal}, \code{doi}, \code{cited_by_count}, \code{abstract}, \code{type},
plus list-columns \code{authors}, \code{references} (typically empty for
RIS), and \code{keywords}.
}
\description{
Parses a \code{.ris} file into a standardized bibliometric data frame.
Like BibTeX, standard RIS does not include cited references.
}
\examples{
# Write a minimal RIS record to a temp file, then read it
ris <- "TY  - JOUR
AU  - Smith, J.
AU  - Jones, K.
TI  - Bibliometric networks
JO  - Test Journal
PY  - 2020
DO  - 10.1000/test
ER  - "
f <- tempfile(fileext = ".ris")
writeLines(ris, f)
data <- read_ris(f)
data[, c("id", "title", "year", "journal", "doi")]
unlink(f)
}
