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

Attempt workaround of CRAN Windows hang on update.dev.pkg.Rd example #5421

Merged
merged 12 commits into from
Jul 20, 2022
Merged
4 changes: 3 additions & 1 deletion man/update.dev.pkg.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
NULL.
}
\examples{
# data.table::update.dev.pkg()
\dontrun{
data.table::update.dev.pkg()
Copy link
Member Author

@jangorecki jangorecki Jul 19, 2022

Choose a reason for hiding this comment

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

This adds a risk of some test jobs running with run-dontrun. IMO it is better to completely protect from running it in examples, either by comment or if(FALSE) ...
I don't see a valid use case for running this example. Yet we should still have it there because the usage section is turned into update method for dev.pkg object, which is clearly wrong: #5304 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

Running dontrun seems odd to me but ok. I like that code in dontrun is still parsed and checked which isn't the case for comments. So that leads us to if(FALSE) then. Will do.
Regarding the usage section, our .Rd contains \method{update}{dev.pkg} which tells it it's a method. Can't we drop the \method part there, and remove the \alias{update} at the top too?

Copy link
Member

Choose a reason for hiding this comment

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

If it looks like a method of update but isn't actually, then that's the sort of thing that is easier to believe leads to a hang somehow.

Copy link
Member

Choose a reason for hiding this comment

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

there is _R_CHECK_DONTTEST_EXAMPLES_ but I don't see anything like that for \dontrun

}
}
\seealso{
\code{\link{data.table}}
Expand Down