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

Only document in check if roxygen2 versions match #2274

Merged
merged 2 commits into from
Sep 17, 2020
Merged

Conversation

hadley
Copy link
Member

@hadley hadley commented Sep 2, 2020

Fixes #2263

@hadley hadley requested a review from jimhester September 2, 2020 12:27
}

installed <- packageVersion("roxygen2")
if (required != installed) {
Copy link
Member

@jimhester jimhester Sep 2, 2020

Choose a reason for hiding this comment

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

Don't know if this would be better, but maybe something like.

same_version <- required == installed

if (!same_version) {
 # show message
}

same_version

Copy link
Member Author

Choose a reason for hiding this comment

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

I just tried it and I don't think it's an improvement

Co-authored-by: Jim Hester <[email protected]>
@jimhester jimhester merged commit 6456d56 into master Sep 17, 2020
@jimhester
Copy link
Member

Thanks!

@jimhester jimhester deleted the safe-document branch September 17, 2020 13:58
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.

Be less aggressive about documenting in check()
2 participants