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

Fix reported CRAN check failure #302

Merged
merged 12 commits into from
Sep 20, 2021
Merged

Fix reported CRAN check failure #302

merged 12 commits into from
Sep 20, 2021

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Sep 20, 2021

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

@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #302 (143c135) into master (b95fc4c) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 143c135 differs from pull request most recent head 7db45b1. Consider uploading reports for the commit 7db45b1 to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##            master      #302   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           41        41           
  Lines         4468      4471    +3     
=========================================
+ Hits          4468      4471    +3     
Impacted Files Coverage Δ
R/bundle.R 100.00% <100.00%> (ø)
R/util.R 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b95fc4c...7db45b1. Read the comment docs.

@richfitz richfitz marked this pull request as ready for review September 20, 2021 16:10
Copy link
Contributor

@weshinsley weshinsley left a 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.

@weshinsley weshinsley merged commit ca63225 into master Sep 20, 2021
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.

2 participants