as.location: Convert a path or URL to a location object.

View source: R/as.location.R

as.locationR Documentation

Convert a path or URL to a location object.

Description

Convert a path or URL to a location object.

Usage

as.location(x, type = "style")

Arguments

x

Input

type

(character) One of style (default) or locale

Examples

if (length(csl_cache$list()) > 0) {
# Style files
as.location("apa")
as.location("teaching-and-learning-in-nursing")
as.location("regenerative-medicine-research")

# A URL
url <- 'http://zotero.org/styles/american-journal-of-political-science'
as.location(url)
}

ropenscilabs/seasl documentation built on Sept. 12, 2022, 4:11 p.m.