Skip to content
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

More informative error when slides aren't public? #102

Open
KatherineCox opened this issue Feb 25, 2022 · 1 comment
Open

More informative error when slides aren't public? #102

KatherineCox opened this issue Feb 25, 2022 · 1 comment
Assignees

Comments

@KatherineCox
Copy link

I semi-frequently forget to make my google slides public before trying to render, which gives me an error that looks like this:

Downloaded 102569 bytes...Quitting from lines 16-17 (03-data-analysts.Rmd) 
Error in png::readPNG(path, native = TRUE, info = TRUE) : 
  file is not in PNG format
Calls: local ... lapply -> FUN -> raster_dpi_width -> attr -> <Anonymous>
Execution `halted`

I know what this means because I do it all the time :) but it's pretty opaque if you haven't seen it before. Is there a good way to return a more informative error message - maybe some check to see if the slide is accessible before trying to include it?

@cansavvy
Copy link
Contributor

Thanks for this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants