Skip to content

add edit_r_buildignore(); closes #231#462

Merged
hadley merged 3 commits intor-lib:masterfrom
bfgray3:edit_r_buildignore
Nov 26, 2018
Merged

add edit_r_buildignore(); closes #231#462
hadley merged 3 commits intor-lib:masterfrom
bfgray3:edit_r_buildignore

Conversation

@bfgray3
Copy link
Copy Markdown
Contributor

@bfgray3 bfgray3 commented Sep 13, 2018

No description provided.

Comment thread 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
Copy Markdown
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?

Comment thread tests/testthat/test-edit.R Outdated
expect_proj_file(".Rprofile")
})

test_that("edit_r_buildignore() ensures .Rbuildignore exists in project", {
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

bfgray3 commented Nov 26, 2018

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

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

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

hadley commented Nov 26, 2018

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.

2 participants