Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Sep 20, 2022

And set to FALSE in create_from_github(). Fixes #1679

And set to `FALSE` in `create_from_github()`. Fixes #1679
@hadley hadley requested a review from jennybc September 20, 2022 18:44
Copy link
Member

@jennybc jennybc left a comment

Choose a reason for hiding this comment

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

Coming in cold, it took me a moment to really absorb what the issue here is. I wondered if this was about reformatting the .Rproj file itself. Or if we were trying to merge local and remote .Rproj files. (Neither of which is true.)

So I made a few suggestions that helped me understand what's actually going on.

rstudio <- rstudio && !is_rstudio_project(proj_get())
if (rstudio) {
use_rstudio()
use_rstudio(reformat = FALSE)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
use_rstudio(reformat = FALSE)
use_rstudio(reformat = !fork)

There is part of me that thinks we should only set reformat = FALSE in a fork, but I can also ignore that part of me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Regardless of whether you're forking or not, I feel like you should leave the code alone.

hadley and others added 2 commits September 21, 2022 12:03
@hadley hadley merged commit ceccb80 into main Sep 21, 2022
@hadley hadley deleted the reformat-false branch September 21, 2022 17:05
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.

use_rstudio() inside of create_from_github() needs to be conservative

3 participants