-
Notifications
You must be signed in to change notification settings - Fork 985
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
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
28fb214
Make a non empty examples of upgrade pkg
jangorecki f7fd42e
Merge branch 'master' into jangorecki-patch-1
mattdowle 4ac51c5
temporarily revert change to .Rd to see if we can reproduce CRAN's ha…
mattdowle de33de6
try --as-cran again to see how long it takes these days, and see if t…
mattdowle 432f4ce
--no-manual again to avoid error 'pdflatex is not available'
mattdowle 8dd63d6
--as-cran comment updated
mattdowle f0cc8b5
use more standard dontrun{} to save having to comment why packageVers…
mattdowle 419a480
use if(FALSE) instead of dontrun
mattdowle aee1acf
remove being S3 method of stats::update; but there is now a warning
mattdowle aebaec9
Highlight in description the great main feature that tests must have …
mattdowle 8eebd1d
update.dev.pkg() renamed update_dev_pkg()
mattdowle f0b9d8e
man/update.dev.pkg.R filename updated too
mattdowle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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