Skip to content

gganimate/marquee clash? #76

@bbcuffer

Description

@bbcuffer

Hi, the following code

library(ggplot2)
library(gganimate)
library(marquee)

ggplot(economics, aes(date, unemploy)) + 
  geom_line() + 
  labs(title = "Unemployment") + 
  theme(title = element_marquee()) + 
  transition_reveal(date)

is giving me failures to render:

r$> warnings()
Warning messages:
1: Cannot get dimensions of plot table. Plot region might not
be fixed
Caused by error in `marquee_parse()`:
! `text` must be a character vector, not an expression vector.
2: Failed to plot frame
Caused by error in `marquee_parse()`:
! `text` must be a character vector, not an expression vector.
3: Failed to plot frame
Caused by error in `marquee_parse()`:
....
50: Failed to plot frame
Caused by error in `marquee_parse()`:
! `text` must be a character vector, not an expression vector.

and the frame sources all exist but are blank. Happens for CRAN or dev version of marquee. Obvs not sure whether it's a gganimate or a marquee thing (or just me).

Here's my session info:

R version 4.4.1 (2024-06-14)
Platform: x86_64-apple-darwin20
Running under: macOS Ventura 13.7.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/London
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] marquee_1.0.0   gganimate_1.0.9 ggplot2_3.5.2  

loaded via a namespace (and not attached):
 [1] crayon_1.5.3       vctrs_0.6.5        cli_3.6.5         
 [4] rlang_1.1.6        gifski_1.32.0-2    processx_3.8.6    
 [7] stringi_1.8.7      generics_0.1.4     jsonlite_2.0.0    
[10] labeling_0.4.3     glue_1.8.0         prettyunits_1.2.0 
[13] ps_1.9.1           pak_0.8.0.2        hms_1.1.3         
[16] scales_1.4.0       grid_4.4.1         tweenr_2.0.3      
[19] tibble_3.2.1       progress_1.2.3     lifecycle_1.0.4   
[22] compiler_4.4.1     dplyr_1.1.4        RColorBrewer_1.1-3
[25] pkgconfig_2.0.3    systemfonts_1.2.3  farver_2.1.2      
[28] R6_2.6.1           tidyselect_1.2.1   pillar_1.10.2     
[31] callr_3.7.6        magrittr_2.0.3     tools_4.4.1       
[34] withr_3.0.2        gtable_0.3.6   

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