Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

rplos

Install

You can get this package at CRAN here, or install it within R by doing

install.packages("rplos")

Another option to install is install_github within Hadley Wickham's devtools package.

install.packages("devtools")
require(devtools)
install_github("rplos", "rOpenSci")
require(rplos)

What is this?

rplos is a set of functions/package will access full text articles from the Public Library of Science journals using their API.

Information

Get your PLoS API key here

Put your API key in your .Rprofile file using exactly this: options(PlosApiKey = "YOURPLOSAPIKEY"), and the functions within this package will be able to use your API key without you having to enter it every time you run a search.

rplos tutorial at rOpenSci website here

PLoS API documentation here

Crossref API documentation here and here

Quick start

Search for the term ecology, and return id (DOI) and publication date, limiting to 5 items

searchplos('ecology', 'id,publication_date', limit = 5)

                            id     publication_date
1 10.1371/journal.pone.0059813 2013-04-24T00:00:00Z
2 10.1371/journal.pone.0001248 2007-11-28T00:00:00Z
3 10.1371/journal.pone.0017342 2011-03-09T00:00:00Z
4 10.1371/journal.pbio.0020072 2004-03-16T00:00:00Z
5 10.1371/journal.pone.0054689 2013-01-23T00:00:00Z

Visualize word use across articles

plosword(list('monkey','Helianthus','sunflower','protein','whale'), vis = 'TRUE')

Meta

Please report any issues or bugs.

License: CC0

This package is part of the rOpenSci project.

To cite package rplos in publications use:

To cite package ‘rplos’ in publications use:

  Scott Chamberlain, Carl Boettiger and Karthik Ram (2014). rplos: Interface to PLoS
  Journals search API.. R package version 0.3.8. https://github.com/ropensci/rplos

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {rplos: Interface to PLoS Journals search API.},
    author = {Scott Chamberlain and Carl Boettiger and Karthik Ram},
    year = {2014},
    note = {R package version 0.3.8},
    url = {https://github.com/ropensci/rplos},
  }

Get citation information for rplos in R doing citation(package = 'rplos')

Copy Link

Version

Install

install.packages('rplos')

Monthly Downloads

45

Version

0.4.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Scott Chamberlain

Last Published

February 23rd, 2021

Functions in rplos (0.4.0)

plot_throughtime

Plot results through time for serach results from PLoS Journals.
plosfields

PLoS API fields to use for searching/retreiving data.
formatcrossref

Convert crossref XML into a bibentry object
full_text_urls

Create urls for full text articles in PLOS journals.
plosfigtabcaps

Search PLoS Journals figure and table captions.
plossubject

Search PLoS Journals subjects.
searchplos

Base function to search PLoS Journals
check_response

Check response from PLOS, including status codes, server error messages, mime-type, etc.
journalnamekey

Get short keys for journals to use in searching specific journals.
plosviews

Search PLoS Journals by article views.
highbrow

Browse highlighted fragments in your default browser.
insertnones

Function to insert "none" character strings where NULL values found to faciliate combining results
plostitle

Search PLoS Journals titles.
plos_fulltext

Get full text xml of PLOS papers given a DOI
plosword

Search results on a keyword over all fields in PLoS Journals.
crossref

Lookup article info via CrossRef with DOI.
highplos

Do highlighted searches on PLOS Journals full-text content
facetplos

Do faceted searches on PLOS Journals full-text content
plosauthor

Search PLoS Journals authors.
addmissing

Adds elements in a list that are missing because they were not returned in the PLoS API call.
rplos

Connect with PLoS API data
plosabstract

Search PLoS Journals abstracts.
concat_todf

Concatenate author names, if present, used in other functions.
formatarticleurl

Format a URL for a specific article in a specific PLoS journal.