pl_gist: Make an interactive map to view in the browser as a GitHub...

Description Usage Arguments Details Value Examples

View source: R/pl_gist.R

Description

Make an interactive map to view in the browser as a GitHub gist

Usage

1
pl_gist(x, file = NULL, description = "", public = TRUE, browse = TRUE, ...)

Arguments

x

Output from pl_places()

file

(character) File name (without file extension) for your geojson file. Default is 'gistmap'.

description

(character) Description for the Github gist, or leave to default (=no description)

public

(logical) Whether gist is public (default: TRUE)

browse

(logical) If TRUE (default) the map opens in your default browser.

...

Curl options, see curl::curl_options()

Details

There are two ways to authorise gistr to work with your GitHub account:

Using the GITHUB_PAT option is recommended.

Value

Creates a gist on your GitHub account

Examples

1
2
3
4
5
## Not run: 
x <- pl_places(place_id = 462471)
pl_gist(x)

## End(Not run)

ropensci/pleiades documentation built on Jan. 1, 2021, 2:57 p.m.