Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add edit_r_buildignore(); closes #231 #462

Merged
merged 3 commits into from
Nov 26, 2018
Merged

add edit_r_buildignore(); closes #231 #462

merged 3 commits into from
Nov 26, 2018

Conversation

bfgray3
Copy link
Contributor

@bfgray3 bfgray3 commented Sep 13, 2018

No description provided.

R/edit.R Outdated
#' @rdname edit
edit_r_buildignore <- function(scope = c("user", "project")) {
file <- edit_file(scoped_path_r(scope, ".Rbuildignore"))
todo("Restart R for changes to take effect")
Copy link
Member

Choose a reason for hiding this comment

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

Restarting R doesn't have any impact here, so can you please remove?

@@ -68,6 +72,16 @@ test_that("edit_r_profile() ensures .Rprofile exists in project", {
expect_proj_file(".Rprofile")
})

test_that("edit_r_buildignore() ensures .Rbuildignore exists in project", {
Copy link
Member

Choose a reason for hiding this comment

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

Here you're effectively just testing edit_file(), so I think you can remove the test.

@bfgray3
Copy link
Contributor Author

bfgray3 commented Nov 26, 2018

I've incorporated your suggestions and rebased to get rid of the merge conflict in NEWS.md.

NEWS.md Outdated
@@ -1,5 +1,7 @@
# usethis *development version*

* `edit_r_buildignore()` is added (#231, #462, @bfgray3).
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
* `edit_r_buildignore()` is added (#231, #462, @bfgray3).
* `edit_r_buildignore()` is added (#231, @bfgray3).

@hadley hadley merged commit c6c068c into r-lib:master Nov 26, 2018
@hadley
Copy link
Member

hadley commented Nov 26, 2018

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants