path_to_json: Retrieves the path to a JSON file in the local system or in...

View source: R/utils.R

path_to_jsonR Documentation

Retrieves the path to a JSON file in the local system or in the internet.

Description

Retrieves the path to a JSON file in the local system or in the internet.

Usage

path_to_json(
  json_url,
  cache_folder_name = "cache_json",
  cached_file_name = NULL,
  cache_json
)

Arguments

json_url

the URL to the JSON file

cache_folder_name

The local folder where the JSON files are (to be) cached.

cached_file_name

The full path to the file name where the JSON file is to be saved locally.

cache_json

TRUE. Whether the JSON files with the raw data should be cached locally.

Value

The path to the JSON file saved locally (if 'cache_json' is TRUE) or to its URL if FALSE.


dkgaraujo/brazilianbanks documentation built on Jan. 12, 2025, 3:47 p.m.