Skip to content

use tempfiles for plots #5199

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

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Conversation

MichaelChirico
Copy link
Contributor

I think it's not strictly necessary for CRAN, but it is consistent with the rest of the suite.

(discovered because we run tests without local write permissions, this is the only test in the suite with this issue)

Also moved one test out of the withr() environment because it's independent of it, I think it's for the best.

@yutannihilation
Copy link
Member

Thanks for catching. How about replacing withr::with_file() with withr::with_tempfile()?

@MichaelChirico
Copy link
Contributor Author

Oh, nice, I didn't realize with_tempfile() could accept a vector of inputs like that. Done.

@yutannihilation
Copy link
Member

Yeah, I too just noticed it today... Thanks, I'll merge this after the CI pass.

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Thanks!

@yutannihilation yutannihilation merged commit 523b923 into tidyverse:main Feb 22, 2023
@MichaelChirico MichaelChirico deleted the patch-2 branch February 22, 2023 02:16
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.

2 participants