Minor issue: the '~' character on macOS used to point to the home folder causes readxl to throw an error.
library(readxl)
(xl <- read_excel('/Users/mbpro/codingprojects/tests/Book1.xls'))
#> New names:
#> abc -> abc..1
#> abc -> abc..2
#> # A tibble: 4 x 2
#> abc..1 abc..2
#> <dbl> <dbl>
#> 1 4 2
#> 2 3 3
#> 3 7 5
#> 4 2 2
dput(xl)
#> structure(list(abc..1 = c(4, 3, 7, 2), abc..2 = c(2, 3, 5, 2)), row.names = c(NA,
#> -4L), class = c("tbl_df", "tbl", "data.frame"))
read_excel('~/codingprojects/tests/Book1.xls')
#> Error in read_fun(path = enc2native(path), sheet_i = sheet, limits = limits, : Failed to open ~/codingprojects/tests/Book1.xls
Minor issue: the '~' character on macOS used to point to the home folder causes readxl to throw an error.