dkanr (version 0.1.2)

dkanr_setup: Configure default DKAN settings

Description

Configure default DKAN settings

Usage

dkanr_setup(url = "http://demo.getdkan.com", username = NULL,
  password = NULL)

Arguments

url

A DKAN URL (optional), default: "http://demo.getdkan.com"

username

Username (optional, character)

password

Password (optional, character)

Details

dkanr_setup sets DKAN connection details. dkanr functions default to use the default URL and API key unless specified explicitly.

Examples

Run this code
# NOT RUN {
DKAN users without admin/editor privileges could run:
dkanr_setup(url = "http://demo.getdkan.com")

Privileged DKAN editor/admin users can run:
dkanr_setup(url = "http://demo.getdkan.com", username = "your-username", password = "your-password")

Not specifying the default DKAN URL will reset the DKAN URL to its default
"http://demo.getdkan.com":
dkanr_setup()
# }

Run the code above in your browser using DataLab