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

Use the new export to pdf function in plotly #183

Closed
talgalili opened this issue Jul 9, 2018 · 8 comments
Closed

Use the new export to pdf function in plotly #183

talgalili opened this issue Jul 9, 2018 · 8 comments

Comments

@talgalili
Copy link
Owner

Use the new orca() function

source: plotly/plotly.R#1089

@jalalsiddiqui
Copy link

Thanks. Is it possible to use orca() to download the images for free or do we still have to pay for them?

@jonmmease
Copy link

Hi @jalalsiddiqui and @talgalili, orca is open source (MIT license), works offline, and totally free 🙂

@alanocallaghan
Copy link
Collaborator

Note: need to install orca (https://github.com/plotly/orca#installation) - the Ubuntu /usr/bin/orca is a screen reader.

Also need recent version of plotly as previous versions had a bug relating to mapbox API tokens.

@talgalili
Copy link
Owner Author

I've just tested file="temp.pdf" with the recent heatmaply 0.15.3 version on my computer (after updating to the latest plotly) and it crashed my rstudio (in Windows)).
I didn't install orca. It might be worth adding a check to see if orca is installed, and if not, to send the user to the doc: https://github.com/plotly/orca#installation
@alanocallaghan , does it work fine on your device?

@talgalili talgalili reopened this Dec 6, 2018
@alanocallaghan
Copy link
Collaborator

There's already a check for that in plotly, though as noted /usr/bin/orca is a a screen reader on Ubuntu

@talgalili
Copy link
Owner Author

talgalili commented Dec 6, 2018 via email

@alanocallaghan
Copy link
Collaborator

Running on Windows, I get a warning telling me to install orca, which is expected behaviour. No crashes

For Ubuntu, see: plotly/plotly.R#1426

I would not push this to CRAN yet, but I think switching to orca is the right move.

@alanocallaghan
Copy link
Collaborator

I pushed a fallback to export, but I think it's not quite right as we're basically duplicating the deprecation warning in plotly

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

4 participants