Skip to content

Emulate readxl::read_xlsx() #154

@chainsawriot

Description

@chainsawriot

These are the current arguments of readxl::read_xlsx() (v1.4.3)

read_xlsx(
  path,
  sheet = NULL,
  range = NULL,
  col_names = TRUE,
  col_types = NULL,
  na = "",
  trim_ws = TRUE,
  skip = 0,
  n_max = Inf,
  guess_max = min(1000, n_max),
  progress = readxl_progress(),
  .name_repair = "unique"
)

This is readODS::read_ods()

readODS/R/read_ods.R

Lines 274 to 286 in 38cefb8

read_ods <- function(path,
sheet = 1,
col_names = TRUE,
col_types = NULL,
na = "",
skip = 0,
formula_as_formula = FALSE,
range = NULL,
row_names = FALSE,
strings_as_factors = FALSE,
verbose = FALSE,
as_tibble = TRUE,
.name_repair = "unique") {

We have some more, but there are parameters we could potentially add:

  • trim_ws
  • n_max
  • guess_max
  • progress

Except progress, all of them look easy to add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions