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

release() warns if NEWS.Rd exists #1135

Merged
merged 3 commits into from Apr 11, 2016
Merged

release() warns if NEWS.Rd exists #1135

merged 3 commits into from Apr 11, 2016

Conversation

krlmlr
Copy link
Member

@krlmlr krlmlr commented Mar 27, 2016

Fixes #1133.

news_rd_path <- file.path(pkg$path, "inst/NEWS.Rd")
check_status(
!file.exists(news_rd_path),
"NEWS.Rd removed",
Copy link
Member

Choose a reason for hiding this comment

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

"NEWS.Rd does not exist" would be a better message, I think.

Also this is going to be a false positive for people who use inst/NEWS.Rd only

@krlmlr
Copy link
Member Author

krlmlr commented Mar 28, 2016

Changed error message, added pending NEWS. This check is invoked only if NEWS.md exists.

@@ -1,5 +1,11 @@
# devtools 1.10.0.9000

* `release()` warns if both `inst/NEWS.Rd` and `NEWS.md` exist (@krlmlr, #1135).

* `release()` doesn't throw error if Git head is detached (@krlmlr, #1136).
Copy link
Member

Choose a reason for hiding this comment

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

Where did these come from? Can I ignore?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are good I think -- already merged (#1124, #1136) but didn't have NEWS.

@hadley hadley merged commit 8d50fe4 into r-lib:master Apr 11, 2016
@hadley
Copy link
Member

hadley commented Apr 11, 2016

Thanks!

@krlmlr krlmlr deleted the feature/1133-NEWS.Rd branch October 6, 2016 07:23
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.

None yet

2 participants