Skip to content

ggforce::facet_col fails with the current development version #6511

Closed
@yoshidk6

Description

@yoshidk6

ggforce::facet_col is failing with the current development version.
Not sure if I should post it here or ggforce, let me know if you want me to post it over there.

The error message I see in the console is as follows:

Error in space$x : $ operator is invalid for atomic vectors
Error during wrapup: 'S4SXP': should not happen - please report
Error: no more error handlers available (recursive errors?); invoking 'abort' restart

Here is the code to reproduce the behavior:

library(ggplot2)
library(ggforce)

ggplot(mtcars) +
  geom_point(aes(disp, mpg)) +
  facet_col(~gear)
#> Error in space$x: $ operator is invalid for atomic vectors

Created on 2025-06-16 with reprex v2.1.0

Session info

sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.3 (2024-02-29)
#>  os       macOS Sonoma 14.7.6
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       Europe/Zurich
#>  date     2025-06-16
#>  pandoc   3.4 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package      * version    date (UTC) lib source
#>  cli            3.6.4      2025-02-13 [1] CRAN (R 4.3.3)
#>  digest         0.6.37     2024-08-19 [1] CRAN (R 4.3.3)
#>  dplyr          1.1.4      2023-11-17 [1] CRAN (R 4.3.1)
#>  evaluate       0.24.0     2024-06-10 [1] CRAN (R 4.3.3)
#>  farver         2.1.2      2024-05-13 [1] CRAN (R 4.3.3)
#>  fastmap        1.2.0      2024-05-15 [1] CRAN (R 4.3.3)
#>  fs             1.6.5      2024-10-30 [1] CRAN (R 4.3.3)
#>  generics       0.1.3      2022-07-05 [1] RSPM (R 4.3.0)
#>  ggforce      * 0.4.2      2024-02-19 [1] CRAN (R 4.3.1)
#>  ggplot2      * 3.5.2.9001 2025-06-16 [1] Github (tidyverse/ggplot2@a2d0181)
#>  glue           1.8.0      2024-09-30 [1] CRAN (R 4.3.3)
#>  gtable         0.3.6      2024-10-25 [1] CRAN (R 4.3.3)
#>  htmltools      0.5.8.1    2024-04-04 [1] CRAN (R 4.3.1)
#>  knitr          1.48       2024-07-07 [1] CRAN (R 4.3.3)
#>  labeling       0.4.3      2023-08-29 [1] RSPM (R 4.3.0)
#>  lifecycle      1.0.4      2023-11-07 [1] RSPM (R 4.3.0)
#>  magrittr       2.0.3      2022-03-30 [1] RSPM (R 4.3.0)
#>  MASS           7.3-60.0.1 2024-01-13 [1] RSPM (R 4.3.0)
#>  pillar         1.10.1     2025-01-07 [1] CRAN (R 4.3.3)
#>  pkgconfig      2.0.3      2019-09-22 [1] RSPM (R 4.3.0)
#>  polyclip       1.10-7     2024-07-23 [1] CRAN (R 4.3.3)
#>  purrr          1.0.4      2025-02-05 [1] CRAN (R 4.3.3)
#>  R.cache        0.16.0     2022-07-21 [1] CRAN (R 4.3.0)
#>  R.methodsS3    1.8.2      2022-06-13 [1] CRAN (R 4.3.0)
#>  R.oo           1.26.0     2024-01-24 [1] CRAN (R 4.3.1)
#>  R.utils        2.12.3     2023-11-18 [1] CRAN (R 4.3.1)
#>  R6             2.6.1      2025-02-15 [1] CRAN (R 4.3.3)
#>  RColorBrewer   1.1-3      2022-04-03 [1] RSPM (R 4.3.0)
#>  Rcpp           1.0.13     2024-07-17 [1] CRAN (R 4.3.3)
#>  reprex         2.1.0      2024-01-11 [1] RSPM (R 4.3.0)
#>  rlang          1.1.5      2025-01-17 [1] CRAN (R 4.3.3)
#>  rmarkdown      2.27       2024-05-17 [1] CRAN (R 4.3.3)
#>  rstudioapi     0.16.0     2024-03-24 [1] CRAN (R 4.3.1)
#>  S7             0.2.0      2024-11-07 [1] CRAN (R 4.3.3)
#>  scales         1.4.0      2025-04-24 [1] CRAN (R 4.3.3)
#>  sessioninfo    1.2.2      2021-12-06 [1] CRAN (R 4.3.0)
#>  styler         1.10.3     2024-04-07 [1] CRAN (R 4.3.1)
#>  tibble         3.2.1      2023-03-20 [1] RSPM (R 4.3.0)
#>  tidyselect     1.2.1      2024-03-11 [1] CRAN (R 4.3.1)
#>  tweenr         2.0.3      2024-02-26 [1] CRAN (R 4.3.1)
#>  vctrs          0.6.5      2023-12-01 [1] RSPM (R 4.3.0)
#>  withr          3.0.2      2024-10-28 [1] CRAN (R 4.3.3)
#>  xfun           0.46       2024-07-18 [1] CRAN (R 4.3.3)
#>  yaml           2.3.10     2024-07-26 [1] CRAN (R 4.3.3)
#> 
#>  [1] /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions