-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error messages format #12
Comments
Thanks for this! Right now I don't have a convenient way to determine if the user has Chrome installed or not. It's been requested in this issue in the chromote package. If that gets implemented then I can use it to provide better error messages with respect to the required Chrome installation. The |
For the message about the installation of Google Chrome maybe you could add a try/catch in your I also believe the problem So you can |
There will be multiple situations where a missing Chrome installation will cause an error, so I'd rather not set the error messaging based on any one particular error message. The better fix would be to run a check for whether Chrome is installed right at the start and post the message there before I'll try the default slides from |
Okay, thanks to @wch the Still need to address the other error message though about slides running out of the frame. |
The error message here comes from chromote, or more likely directly from the headless Chrome instance. It certainly is cryptic but I'm not sure if there's anything that could be done about it, other than possibly to suppress it and return a generic error. (I'm not sure that's a great idea; sometimes there are small hints in those error messages). Most likely, there was an issue with loading the page or an image that caused that error. It certainly isn't related to the slide content in any way. I can reproduce a similar issue that I'll submit separately. |
I've had trouble reproducing the issue as it seemed to spuriously occur when I was testing for this. |
Hi!
First of all, congratulations for this release. This package has all the xaringan related functions I've been wanting for.
I just have a suggestion regarding the format of the error messages. I guess some of them are quite easy to understand for developers but they may not be to the wide public to which I'm sure this package is aimed.
In my first contact with the package I tried to compile the template obtained from
xaringanthemer
to PDF.The error was obviously because I didn't have Google Chrome installed. Maybe a message indicating that this browser must be installed should be given.
I installed it and then get:
I was executing the code before opening Google Chrome (again, if this is necessary maybe it should be shown in a message). After opening Google Chrome I executed the code again. The slides were correct but I got an error though (which this time I could not understand).
One of the slides runs out of the frame (it also does in the html version). May that be the reason?
The text was updated successfully, but these errors were encountered: