Learn R Programming

tidyfinance (version 0.4.3)

create_wrds_dummy_database: Create WRDS Dummy Database

Description

Downloads the WRDS dummy database from the respective Tidy Finance GitHub repository and saves it to the specified path. If the file already exists, the user is prompted before it is replaced.

Usage

create_wrds_dummy_database(
  path,
  url = paste0("https://github.com/tidy-finance/website/tree/main/blog/",
    "tidy-finance-dummy-data/data/tidy_finance.sqlite")
)

Value

Invisible NULL. Side effect: downloads a file to the specified path.

Arguments

path

The file path where the SQLite database should be saved.

url

The URL where the SQLite database is stored.

Examples

Run this code
path <- paste0(tempdir(), "/tidy_finance_r.sqlite")
create_wrds_dummy_database(path)

Run the code above in your browser using DataLab