-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to parse .xlsx content from crul response? #161
Comments
Try this: library(crul)
url = "https://github.com/ycphs/openxlsx/blob/master/inst/extdata/namedRegions.xlsx?raw=true"
cc <- Async$new(url = url)
res <- cc$get()
class(res[[1]]$content)
writeBin(res[[1]]$content, (f=tempfile(fileext=".xlsx")))
openxlsx::read.xlsx(f) the data in let me know if that works for yoyu |
Thank you very much.
However, when I try it on my URL(s) only the Works
Doesn't Work
Please let me know if you'd like DM privately to debug so I could share the token 💁🏼 |
Sorry for the long delay. Yeah, can you send me the token so I can try to debug it? You can use the email associated with this pkg |
I get those 504 errors, but I do with every request. I think what's happening is intermittent server downtime, resulting in the 504s. I doubt this has anything to do with Async vs. AsyncQueue. Unless you can make a reproducible example. By the way, you're token is above in #161 (comment), you should get a new one |
I'm trying to figure out how to parse the response since it is an
.xlsx
EXCEL spreadsheet (and not JSON)Showing
res
:I thought I could try to adapt the write to disk section of the documentation in order to first save the response to a tempfile and then use {
openxlsx
} to read the data; however, this did not work:The text was updated successfully, but these errors were encountered: