Learn R Programming

discgolf (version 0.2.0)

disc_setup: Discgolf setup

Description

Discgolf setup

Arguments

How to setup

You can set your url, username, and api key either using R options or environment variables. I recommend using environment variables since they are more general to any programming language, and you can easily set secure env vars on a server or e.g., if you're doing continuous integration on Travis-CI (or elsewhere).

URL

The base URL for the Discourse instance, e.g., https://meta.discourse.org

Use:

  • Env var name: DISCOURSE_URL

  • R option name: discourse_url

Username

The user name you have registered on the Discourse instance you want to use.

Use:

  • Env var name: DISCOURSE_USERNAME

  • R option name: discourse_username

API key

The API key on the Discourse instance you want to use. This is not your password you used to login to the instance. If you're the admin, you can get an API key by going the dashboard at base_url/admin, then the API tab base_url/admin/api, then generate a key, or copy the one already there.

Use:

  • Env var name: DISCOURSE_API_KEY

  • R option name: discourse_api_key