Skip to content

Commit

Permalink
revert xls for bw compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Jan 16, 2018
1 parent 5c9122a commit 0ae441b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/text.r
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ read_table = function (file, ..., stringsAsFactors = FALSE, na.strings = c(NA, '
call$sep = separators[[extension]]
}

call[[1]] = if (grepl(extension, 'xls[x]')) {
call[[1]] = if (identical(extension, 'xlsx')) {
call$na.strings = NULL
quote(readxl::read_excel)
quote(xlsx::read.xlsx)
} else quote(read.table)
.b$add_class(eval.parent(call), 'tbl_df')
}
Expand Down

0 comments on commit 0ae441b

Please sign in to comment.