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

Bug fixes to plot_predictions() #153

Merged
merged 8 commits into from
Nov 24, 2021
Merged

Bug fixes to plot_predictions() #153

merged 8 commits into from
Nov 24, 2021

Conversation

Bisaloo
Copy link
Member

@Bisaloo Bisaloo commented Nov 23, 2021

No description provided.

@Bisaloo
Copy link
Member Author

Bisaloo commented Nov 23, 2021

Tests are failing because of vdiffr. When running locally, I get stroke-linecap: butt; for all lines while this is absent when rendered on GHA.

It is passing for oldrel because vdiffr automatically skips for R < 4.1.

@nikosbosse
Copy link
Contributor

Thanks!
Is there a way to get vdiffr running on GH?

@nikosbosse
Copy link
Contributor

Apart from the failing GHA tests looks nice!

@Bisaloo
Copy link
Member Author

Bisaloo commented Nov 23, 2021

Could you tell me what you get when you run R CMD check locally? I guess this is more important for visual diffs. We can always skip on CI.

@nikosbosse
Copy link
Contributor

First error is that I don't have vdiffr installed (it does install that on the server, right?). After installing vdiffr, I get this error:
image
Apparently the image is not in the correct place, but I'm not sure where it should go

@Bisaloo
Copy link
Member Author

Bisaloo commented Nov 24, 2021

Yes, vdiffr is automatically installed (since I added it in Suggests).

The files are in the right location but you do get a different snapshot than me. If we are lucky, you are getting the same as the GitHub Actions. So could you please try to:

  1. delete the tests/testthat/_snaps/ folder
  2. run devtools::test()
  3. commit & push the generated svg files in test/testthat/_snaps/

@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #153 (9cc557d) into master (29ac025) will increase coverage by 5.44%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   48.44%   53.89%   +5.44%     
==========================================
  Files          18       18              
  Lines        1348     1349       +1     
==========================================
+ Hits          653      727      +74     
+ Misses        695      622      -73     
Impacted Files Coverage Δ
R/plot.R 20.29% <100.00%> (+20.29%) ⬆️
R/utils.R 71.42% <0.00%> (+7.93%) ⬆️

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 29ac025...9cc557d. Read the comment docs.

@nikosbosse
Copy link
Contributor

@Bisaloo I think that worked :)

@Bisaloo
Copy link
Member Author

Bisaloo commented Nov 24, 2021

Amazing! I think we can merge this already if everything looks good to you.

I'll have a look at #136 later today but I'll open another PR.

@nikosbosse nikosbosse merged commit dfe763d into master Nov 24, 2021
@nikosbosse nikosbosse deleted the plot_predictions_hugo branch November 24, 2021 13:46
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