Fix see::plot.see_parameters_model SORT argument not functioning properly#415
Conversation
|
@IndrajeetPatil 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
|
@copilot try again |
|
@copilot try again |
Co-authored-by: IndrajeetPatil <11330453+IndrajeetPatil@users.noreply.github.com>
I've identified and fixed the issue with the sort parameter in Root cause:
Fix applied (commit ccbe8d0):
The fix addresses both |
Co-authored-by: IndrajeetPatil <11330453+IndrajeetPatil@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| # Test sort = TRUE (should be same as ascending) | ||
| p1 <- plot(result, sort = TRUE) | ||
| expect_s3_class(p1, "gg") | ||
|
|
| # Test sort = "ascending" | ||
| p2 <- plot(result, sort = "ascending") | ||
| expect_s3_class(p2, "gg") | ||
|
|
|
Sort ascending means from smallest to largest, right? If so, aren't the new plots wrong? |
|
Ok, I understand it from top to bottom, like reading a page. |

generate_missing_snapshots.Rto generate the missing snapshots in proper environmentGenerate missing vdiffr snapshots for the sort parameter tests(Blocked by environment constraints)Current status: Due to ggplot2 version incompatibility (system has 3.4.4, package requires >= 4.0.0), I cannot generate the snapshots in this environment.
Resolution: Created
generate_missing_snapshots.Rscript that can be run in proper environment to generate:plot-model-parameters-sort-ascending.svgplot-model-parameters-sort-descending.svgThe script should be run from the package root directory in an environment with correct dependencies.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.