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

prefer 'agg' for non-interactive R #1556

Merged
merged 3 commits into from Mar 25, 2024
Merged

Conversation

kevinushey
Copy link
Collaborator

Addresses rstudio/rstudio#13840.

@cderv does this look like the right fix to you?

R/knitr-engine.R Outdated
# in RStudio Desktop, enforce a non-Qt matplotlib backend
# this is especially important with RStudio Desktop as attempting to use a Qt
# backend will cause issues due to mismatched Qt versions between RStudio and
# Anaconda environments, and will cause crashes when generating plots
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a conda specific workaround? Would a venv python installation find the same Qt version as the IDE? If not, should the comment be updated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, this branch was specifically required for older versions of RStudio (which were built against Qt); I've updated the comment to indicate that and also note that we could probably remove this in a future reticulate release. Does that seem sensible?

Copy link
Member

@t-kalinowski t-kalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall!

Copy link
Member

@t-kalinowski t-kalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@kevinushey kevinushey merged commit 13f9f02 into main Mar 25, 2024
14 checks passed
@cderv
Copy link
Contributor

cderv commented Mar 26, 2024

Sorry I missed this on Monday. Looks good thanks !

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

Successfully merging this pull request may close these issues.

None yet

3 participants