rr_publisher_country: Get Publisher Policy by Publisher's Country

Description Usage Arguments Details Value Examples

View source: R/rr_publisher_country.R

Description

Retrieve publisher's policy based on publisher's country. The code should be the ISO_3166-1_alpha-2 code of the country https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.

Usage

1
rr_publisher_country(country, key = NULL)

Arguments

country

[character(1+)]
one or a vector of ISO two-letter country code or AA for international publisher, ZZ for publisher of unknown countries and __ for publishers without specified country (case insensitive).

key

[character(1)]
a character string containing the API key or NULL (see Details section on how to specify it)

Details

There are several ways to provide your API key. The best way to know about them is to refer to the vignette about "Setting Up Your API key" accessible with the following command: vignette("setting_up_api_key", package = "rromeo"). You can also use rr_auth that will use the provided key to store it as an environmental variable.

Value

Returns a data frame with the following columns:

Examples

1
2
3
4
5
# Taiwan
rr_publisher_country("TW")
# Egypt
rr_publisher_country("EG")
rr_publisher_country(c("TW", "EG"))

ropensci/rromeo documentation built on Feb. 21, 2020, 3:18 a.m.