create_wrds_dummy_database: Create WRDS Dummy Database

View source: R/create_wrds_dummy_database.R

create_wrds_dummy_databaseR Documentation

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")
)

Arguments

path

The file path where the SQLite database should be saved.

url

The URL where the SQLite database is stored.

Value

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

Examples

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

tidyfinance documentation built on April 3, 2025, 6:10 p.m.