Skip to content

Conversation

@thomasp85
Copy link
Member

No description provided.

@thomasp85 thomasp85 requested a review from teunbrand October 31, 2025 07:37
Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few problems that should still be fixed on our end, but I don't know about the cases where documentation mismatches or expect_no_condition() picks up on warnings.

Comment on lines +77 to +78
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
invalid mathematical annotation
Copy link
Collaborator

@teunbrand teunbrand Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happens when labels are a list of calls/formulas. Affects 6 packages + frequently cause in vignette errors.

devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2

ggplot(mpg, aes(displ, hwy, colour = drv)) +
  geom_point() +
  scale_colour_discrete(
    labels = c(~A, ~B, ~C)
  )
#> Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : invalid mathematical annotation

# In isolation
x <- textGrob(call("~"))
widthDetails(x)
#> Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : invalid mathematical annotation

Created on 2025-11-03 with reprex v2.1.1

...
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-visualize.R:52:9'): Scree plots low dimensional ──────────────
Expected `plot_scree_adpc(model_selection, grid = TRUE)` to run without any conditions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #6541, we fixed mishandling NAs so they are now warned about properly. expect_no_condition() on code that is not 100% under your control is fragile.


</details>

## Newly broken

* checking examples ... ERROR
* checking tests ... ERROR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot reproduce these.

Comment on lines +199 to +200
ERROR: compilation failed for package ‘bmgarch’
* removing ‘/tmp/workdir/bmgarch/new/bmgarch.Rcheck/bmgarch’
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note sure how ggplot2 would affect compilation of other packages.

12. └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
13. └─l$compute_position(d, layout)
14. └─ggplot2 (local) compute_position(..., self = self)
15. └─self$position$use_defaults(data, self$aes_params)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to mirror #6690 for Position$use_defaults() too


</details>

## Newly broken

* checking examples ... ERROR
* checking for code/documentation mismatches ... WARNING
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also function factory. Docs should be regenerated.

```

# ANN2
# ggsurveillance
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect_no_warning() for code that now correctly throws a warning.


* checking package dependencies ... NOTE
```
Package which this enhances but
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my bad, should have fallback for missing parameter in StatAlign$finish_layer()

--- re-building ‘anova.Rmd’ using rmarkdown
```

# MetAlyzer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another instance of the grid call error in vignettes

```

# windfarmGA
# nett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

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.

3 participants