High-level function to initialize a data package project. Creates necessary directories, organizes data files, and configures git.
Usage
setup_package(
raw_dir = "data_raw",
gitignore = TRUE,
base_path = NULL,
verbose = TRUE,
overwrite = FALSE
)
Arguments
- raw_dir
Name of the raw data directory (default: "data_raw")
- gitignore
Whether to add data_raw to .gitignore (default: TRUE)
- base_path
Base path for the project (default: uses get_base_path())
- verbose
Whether to show detailed messages (default: TRUE)
- overwrite
Whether to overwrite existing files (default: FALSE)