is there a way to do error handling using function "read_excel" from R when the file exists, but it can't be read for some other reason (e.g., wrong format or something)?
Just to illustrate, my piece of code is as follows:
f <- GET(url, authenticate(":", ":", type="ntlm"), write_disk(tf <- tempfile(tmpdir = here("data/temp"), fileext = ".xlsx")))
dt <- read_excel(tf)
where url contains the http file address.
I would like to check if read_excel returns an error to do the proper handling and prevent the markdown stops.
Thanks in advance!