ridl_config: Create a RIDL configuration object

View source: R/configuration.R

ridl_configR Documentation

Create a RIDL configuration object

Description

Create and RIDL configuration object

Sets the configuration settings for using RIDL.

Usage

ridl_config(
  site = "prod",
  token = NULL,
  key = NULL,
  user_agent = NULL,
  log_file = NULL,
  ...
)

ridl_config_set(
  site = "prod",
  token = NULL,
  key = NULL,
  user_agent = NULL,
  log_file = NULL,
  configuration = NULL,
  ...
)

ridl_config_setup(
  site = "prod",
  token = NULL,
  key = NULL,
  user_agent = NULL,
  log_file = NULL,
  configuration = NULL,
  ...
)

ridl_config_get()

Arguments

site

character, the RIDL instance, prod (production server), test (testing server)

token

character, the CKAN API token

key

character, the CKAN API key

user_agent

a character, A user agent string

log_file

character, the log file

...

curl options to pass to crul::HttpClient

configuration

RIDLConfig, the configuration

Details

Setting up a configuration will help you access from a RIDL server

Value

A RIDLConfig object

Invisibly returns the ridl config object

Examples

## Not run: 
# Setting the config to use RIDL default server
ridl_config_set(ridl_key = "xxxxxxxxxx")

# You can check your configuration using \code{ridl_config_get}
config <- ridl_config_get()
config

## End(Not run)

dickoa/ridl documentation built on April 23, 2023, 7:14 p.m.