-
Notifications
You must be signed in to change notification settings - Fork 81
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
reprex with a plot fails (because imgur upload fails due to the API key quota being exhausted) #475
Comments
Here is a simpler reprex, as found in posit-dev/positron#5969: reprex::reprex({
x <- rnorm(100)
plot(x, sin(x))
}) If you look at std_out, it's failing to upload the image to imgur: Standard output and errorQuitting from lines 20-22 [unnamed-chunk-2] (steep-carp_reprex.spin.Rmd)
Error in xfun::upload_imgur(file, key, ..., include_xml = TRUE) :
Failed to upload steep-carp_reprex_files/figure-gfm/unnamed-chunk-2-1.png (reason: 1025) I will highlight that there was a brand new release of xfun a few days ago. |
The full story is at yihui/xfun#97. The key used for imgur uploads, which any reprex with a plot will tickle, by default, is out of service, with "too many requests". It's unclear why or if the situation is permanent. So I'll keep an eye on this for a bit. If fortune smiles, the key will start working again, maybe after some suitable period of time has passed. Otherwise, we'll have to take some more measures to use a different key or make it more obvious to reprex users how to provide their own key. |
For anyone who ends up here until the fix is released: Installing the development version of xfun solves the issue.
or with devtools:
|
The following code, when selected in RStudio and submitted to {reprex} via the Addins menu ("Reprex selection"), causes the R session to crash. Not sure why. Code runs fine from the Source pane.
My machine specs and software setup are as follows:
Created on 2025-01-13 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: