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

How do I set AGG as the default device in .Rprofile? #74

Closed
storopoli opened this issue Feb 15, 2021 · 4 comments
Closed

How do I set AGG as the default device in .Rprofile? #74

storopoli opened this issue Feb 15, 2021 · 4 comments

Comments

@storopoli
Copy link

Great work guys. I've been using the 1.0 version and have seen good performance improvements.

How do I use it outside of RStudio? Or, more specifically, how do I configure my .Rprofile options to have AGG as the default device?

@storopoli storopoli changed the title How do I set AGG as the default device in .Rprofile How do I set AGG as the default device in .Rprofile? Feb 15, 2021
@thomasp85
Copy link
Member

There is no way to have ragg being used when you open a device with e.g. png(), and there is currently no windowed device available, so outside of opening a device with one of the agg_*() functions there's not much else to do

@cpsievert
Copy link

cpsievert commented Feb 16, 2021

FWIW, if you want to use ragg with shiny::renderPlot(), you can put options(shiny.useragg = TRUE) in your .Rprofile

@thomasp85
Copy link
Member

Oh — I was unaware of that. Will update the readme

@cpsievert
Copy link

Yea, we haven't really advertised it, but advertising it now seems like the right time :)

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

3 participants