-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix reported CRAN check failure #302
Conversation
Codecov Report
@@ Coverage Diff @@
## master #302 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 41 41
Lines 4468 4471 +3
=========================================
+ Hits 4468 4471 +3
Continue to review full report at Codecov.
|
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.
Looks good - frustrating to have to do this because of external forces...
Tested on Windows - all good
Also verified that on the server node, this fixes issue #301 as far as orderly usage goes.
This PR fixes the current failing builds here: https://cran.r-project.org/web/checks/check_results_orderly.html
My belief as to what is going on is in the comment in test-run.R: knitr now requires that anyone knitting a markdown (rather than sweave) document includes the dependency on
markdown
even though that is clearly a knitr dependency (see yihui/knitr#1864), then there's a workaround for this unfortunate decision in knitr which seems to break our package (yihui/knitr@9a80a00). However, this breaks differently on CRAN machines and ours because this workaround tries not to error and instead silently writes an empty file, so the test fails.Having updated things to include knitr's dependency among ours (as I guess hundreds of packages have had to?) I've also just removed this test from within those running on CRAN as I can't be sure that this is real reason - it's still unexplained why only devel and patched builds are failing but that might be lag. In any case given we're in workaround-ception territory here, it feels best not to expose the package to removal based on this situation.
Also includes a fix for #301, by including an explicit check for the path. This should give a better error for the user even if the zip package did throw its error.
Also fixes vimc-4345