You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…er than 1
FixesUSEPA#280
Add condition to handle `compare.val` with multiple plots in `tcplPlot` function.
* **R/tcplPlot.R**
- Add a condition to check if `compare.val` is set and the number of plots is greater than 1.
- Modify the `if` condition to handle the case when `compare.val` is set and the number of plots is greater than 1.
- Ensure that the function does not produce an error when `compare.val` is set and the number of plots is greater than 1.
* **tests/testthat/test-plotting.R**
- Add a test case to check if `tcplPlot` handles the case when `compare.val` is set and the number of plots is greater than 1.
- Ensure that the test case verifies that the function does not produce an error in this scenario.
- Add a test case to check if `tcplPlot` handles the case when `compare.val` is set and the number of plots is greater than 1 with `type` set to 'sc'.
Error in gList(...) : only 'grobs' allowed in "gList"
Error seems to occur when type = "sc", verbose = FALSE, output is NOT "console", and compare.val is set, and the number of plots is > 1.
The text was updated successfully, but these errors were encountered: