imf_app_name: Set the IMF Application Name

View source: R/admin_functions.R

imf_app_nameR Documentation

Set the IMF Application Name

Description

Set a unique application name to be used in requests to the IMF API as a hidden environment variable

Usage

imf_app_name(name = "imfr")

Arguments

name

A string representing the application name. Default is "imfr".

Details

The 'imf_app_name' function sets the application name that will be used in the request header when making API calls to the IMF API. The IMF API has an application-based rate limit of 50 requests per second, with the application identified by the "user_agent" variable in the request header. The function sets the application name by changing the 'IMF_APP_NAME' hidden variable in ‘.Renviron'. If this variable doesn’t exist, 'imf_app_name' will create it.

Value

Invisible NULL

Examples

imf_app_name("my_custom_app_name")


christophergandrud/imfr documentation built on April 18, 2023, 11:25 a.m.