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

Should we be saving files on user's behalf? #404

Closed
JosiahParry opened this issue Nov 22, 2024 · 4 comments · Fixed by #407
Closed

Should we be saving files on user's behalf? #404

JosiahParry opened this issue Nov 22, 2024 · 4 comments · Fixed by #407

Comments

@JosiahParry
Copy link
Contributor

I just came across the function try_save_all() and noticed it is used in rextendr::document().

This function saves all open files if possible. To me, this feels somewhat invasive and can lead to rextendr saving files that the user didn't intend to.

Should we remove this function and expect users to save their files on their own?

try_save_all <- function(quiet = FALSE) {

@CGMossa
Copy link
Member

CGMossa commented Nov 22, 2024

Agreed, we shouldn't be doing that in document.

@Ilia-Kosenkov
Copy link
Member

This was someone's (don't remember whose) desire to integrate with RStudio IIRC.

@JosiahParry
Copy link
Contributor Author

@Ilia-Kosenkov are you okay with removing this function? If so, I can make a PR to yank it

@Ilia-Kosenkov
Copy link
Member

I am not a fan of this function for sure so go ahead :)

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 a pull request may close this issue.

3 participants