Defines functions xls.reader

Documented in xls.reader

#' @describeIn preinstalled.readers Read an Excel file with a \code{.xls} file extension.
#' This function will load the specified Excel file into memory using the
#' \code{readxl} package.
xls.reader <- function(data.file, filename, workbook.name)

  sheets <- readxl::excel_sheets(filename)

  for (sheet.name in sheets)
    variable.name <- paste(workbook.name, clean.variable.name(sheet.name), sep = ".")
                                       sheet = sheet.name)),
                    envir = .TargetEnv),
             error = function(e)
               warning(paste("The worksheet", sheet.name, "didn't load correctly."))

Try the ProjectTemplate package in your browser

Any scripts or data that you put into this service are public.

ProjectTemplate documentation built on July 31, 2021, 5:07 p.m.