Skip to content

Commit

Permalink
Pass trim_ws from read_xls[x]() into read_excel_()
Browse files Browse the repository at this point in the history
Fixes #514
  • Loading branch information
jennybc committed Oct 30, 2018
1 parent db6c297 commit e2b8f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# readxl *development version*

* `read_xls()` and `read_xlsx()` pass the `trim_ws` argument along (#514).

* readxl has a new article on reading Excel files with multiple header rows (#486, #492 @apreshill).

## Breaking change
Expand Down
6 changes: 4 additions & 2 deletions R/read_excel.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ read_xls <- function(path, sheet = NULL, range = NULL,
read_excel_(
path = path, sheet = sheet, range = range,
col_names = col_names, col_types = col_types,
na = na, skip = skip, n_max = n_max, guess_max = guess_max,
na = na, trim_ws = trim_ws, skip = skip,
n_max = n_max, guess_max = guess_max,
format = "xls"
)
}
Expand All @@ -125,7 +126,8 @@ read_xlsx <- function(path, sheet = NULL, range = NULL,
read_excel_(
path = path, sheet = sheet, range = range,
col_names = col_names, col_types = col_types,
na = na, skip = skip, n_max = n_max, guess_max = guess_max,
na = na, trim_ws = trim_ws, skip = skip,
n_max = n_max, guess_max = guess_max,
format = "xlsx"
)
}
Expand Down

0 comments on commit e2b8f70

Please sign in to comment.