pl_gist | R Documentation |
Make an interactive map to view in the browser as a GitHub gist
pl_gist(x, file = NULL, description = "", public = TRUE, browse = TRUE, ...)
x |
Output from |
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: |
browse |
(logical) If |
... |
Curl options, see |
There are two ways to authorise gistr to work with your GitHub account:
Generate a personal access token at https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token and record in the GITHUB_PAT envar.
Interactively login into your GitHub account and authorise with OAuth
Using the GITHUB_PAT option is recommended.
Creates a gist on your GitHub account
## Not run: x <- pl_places(place_id = 462471) pl_gist(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.