get_dictionary: Retrieves a dictionary from hublot.

View source: R/dev_t.R

get_dictionaryR Documentation

Retrieves a dictionary from hublot.

Description

[Experimental]

Creates a dictionary object from a dictionary located in the CLESSN data lake (hublot).

Usage

get_dictionary(topic, lang = c("en", "fr"), credentials)

Arguments

topic

The name or topic of the dictionary to retrieve from hublot.

lang

The language of the dictionary. "en" is for English, "fr" is for French. Both are included by default.

credentials

The user's personal credentials from hublot.

Value

A quanteda type dictionary object.

Author(s)

CLESSN

Examples


## Not run: 
 # get credentials from hublot
 credentials <- hublot::get_credentials(
   Sys.getenv("HUB3_URL"),
   Sys.getenv("HUB3_USERNAME"),
   Sys.getenv("HUB3_PASSWORD")
   )
 # retrieve the COVID dictionary in both EN and FR
 clessnverse::get_dictionary("covid", c("en", "fr"), credentials)

## End(Not run)

clessn/clessn-verse documentation built on Feb. 18, 2024, 12:42 p.m.