R/read_sheet_then_save_csv.R
read_all_sheets_then_save_csv.Rdread_all_sheets_then_save_csv() just loops read_sheet_then_save_csv() over
the available excel sheets and save them in data/temp/extracted_sheets
read_all_sheets_then_save_csv(path_to_xlsx, dir_to_save = NULL)A list (one element per sheet), each the return value of
read_sheet_then_save_csv() for that sheet (invisibly NULL per call).
# \donttest{
if (interactive()) {
# read and into a csv
misc::create_dirs("ma-box")
xlsx_file <- system.file("xlsx-examples", "mtcars_workbook_001.xlsx", package = "misc")
read_all_sheets_then_save_csv(
path_to_xlsx = xlsx_file,
dir_to_save = "ma-box"
)
}
# }