Package 'openaccess'

Title: Check If a Paper Is in Open Access
Description: Check whether the papers you use are in open access.
Authors: Laura Bakala [cre, aut, cph]
Maintainer: Laura Bakala <[email protected]>
License: GPL (>= 3)
Version: 0.1.0
Built: 2025-01-25 18:11:06 UTC
Source: https://github.com/turtletopia/openaccess

Help Index


Check a paper for open access

Description

Checks whether the full text of the paper is available without restrictions. Throws error if no interpreter available for the journal.

Usage

is_open_access(article)

## S3 method for class 'character'
is_open_access(article)

## S3 method for class 'xml_document'
is_open_access(article)

## S3 method for class 'oa_remote_driver'
is_open_access(article)

## S3 method for class 'oa_html_document'
is_open_access(article)

Arguments

article

character(1) | xml_document(1)
DOI of the paper; or the HTML site containing the paper acquired using rvest::read_html() or httr2::resp_body_html().

Value

TRUE or FALSE depending on check result.

Supported sources

  • Academic Press

  • ACS Publications

  • Analytical Science Journals

  • BioMed Central

  • Biophysical Journal

  • Cambridge Core

  • Cell Reports

  • eLife

  • Elsevier

  • FEBS Press

  • Frontiers

  • Hindawi

  • Journal of Biological Chemistry

  • Journal of Neuroscience

  • MDPI

  • Molecular Cell

  • Nature

  • OUP Academic

  • PeerJ

  • Pergamon

  • PLOS ONE

  • PNAS

  • Portland Press

  • The Royal Society of Chemistry

  • Science

  • SpringerLink

  • Taylor & Francis

  • Wiley Online Library

Examples

is_open_access("10.1093/nar/gkac882")

Create browser connection for RSelenium

Description

Connects to a browser for RSelenium. RSelenium is needed for some cases where rvest package doesn't suffice, usually due to 403 or 503 status codes received. However, RSelenium setup is much more complicated, this is why rvest is preferred unless there is no choice.

Usage

start_remote_driver(...)

Arguments

...

ANY
Parameters passed to RSelenium::remoteDriver().

Value

Nothing, function called for its side effects.

Examples

## Not run: 
start_remote_driver(port = 4567L, browserName = "firefox")

## End(Not run)