Reads the dataset-information Excel file (e.g., "Datasets infomation.xlsx"), loops over all listed dataset names and sheet specifications, and calls xiaopei.input for each entry.

After successfully building all local index files, the function optionally synchronizes the entire datasets/, IndexedData/, and Excel index file into the installed package's shinyapp/ directory using xiaopei.sync.to.shinyapp.

xiaopei.input.all(xlsx.index.location = "Datasets infomation.xlsx")

Arguments

xlsx.index.location

Character. File path to the dataset-information Excel file in the current working directory. Default: "Datasets infomation.xlsx".

sync

Logical. If TRUE (default), calls xiaopei.sync.to.shinyapp() after all indexes are built. Set to FALSE to disable automatic syncing.

Value

Invisibly NULL. Creates/updates local IndexedData/ directory and (optionally) updates the package shinyapp/ folder.

Examples

if (FALSE) { # \dontrun{
# Process all datasets and sync to shinyapp
xiaopei.input.all()

# Process only, do NOT sync
xiaopei.input.all(sync = FALSE)
} # }