Skip to content

Basic examples don't work with ggplot2 >= 2.2.1 #178

@cpsievert

Description

@cpsievert
library(animint)
mtcars$cyl <- as.factor(mtcars$cyl)
plot_car <- ggplot()+geom_point(aes(mpg, disp, 
                                      colour=cyl), 
                                  data = mtcars)
animint2dir(list(plot=plot_car), "test_plot")
Error in if (attributes(margin.value)$unit == "pt") { : 
  argument is of length zero
devtools::session_info()
Session info -------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.3 (2017-11-30)
 system   x86_64, darwin15.6.0        
 ui       RStudio (1.1.383)           
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/Chicago             
 date     2018-03-09                  

Packages -----------------------------------------------------------------------------------------------------------------
 package     * version    date       source                               
 animint     * 2017.01.04 2018-03-09 Github (tdhock/animint@9f3f84d)      
 assertthat    0.2.0      2017-04-11 CRAN (R 3.4.0)                       
 autoinst      0.0.0.9000 2017-04-27 Github (jimhester/autoinst@dfbdc50)  
 backports     1.1.2      2017-12-13 CRAN (R 3.4.3)                       
 base        * 3.4.3      2017-12-07 local                                
 colorout      1.1-2      2017-04-23 Github (jalvesaq/colorout@020a14d)   
 colorspace    1.3-2      2016-12-14 CRAN (R 3.4.0)                       
 compiler      3.4.3      2017-12-07 local                                
 crayon        1.3.4      2017-09-16 CRAN (R 3.4.1)                       
 datasets    * 3.4.3      2017-12-07 local                                
 desc          1.1.1      2017-08-03 CRAN (R 3.4.1)                       
 devtools    * 1.13.5     2018-02-18 CRAN (R 3.4.3)                       
 digest        0.6.15     2018-01-28 cran (@0.6.15)                       
 fortunes      1.5-4      2016-12-29 CRAN (R 3.4.0)                       
 ggplot2     * 2.2.1      2016-12-30 CRAN (R 3.4.0)                       
 graphics    * 3.4.3      2017-12-07 local                                
 grDevices   * 3.4.3      2017-12-07 local                                
 grid          3.4.3      2017-12-07 local                                
 gtable        0.2.0      2016-02-26 CRAN (R 3.4.0)                       
 htmltools     0.3.6      2017-09-11 local                                
 htmlwidgets   1.1        2018-03-02 Github (ramnathv/htmlwidgets@03b6d9b)
 inline        0.3.14     2015-04-13 CRAN (R 3.4.0)                       
 knitr         1.20       2018-02-20 CRAN (R 3.4.3)                       
 labeling      0.3        2014-08-23 CRAN (R 3.4.0)                       
 lazyeval      0.2.1.9000 2018-03-02 Github (hadley/lazyeval@93c455c)     
 magrittr      1.5        2014-11-22 CRAN (R 3.4.0)                       
 memoise       1.1.0      2017-04-21 CRAN (R 3.4.0)                       
 methods     * 3.4.3      2017-12-07 local                                
 munsell       0.4.3      2016-02-13 CRAN (R 3.4.0)                       
 pillar        1.2.1      2018-02-27 CRAN (R 3.4.3)                       
 pkgload       0.0.0.9000 2017-10-26 Github (r-lib/pkgload@8b97605)       
 plyr          1.8.4      2016-06-08 CRAN (R 3.4.0)                       
 R6            2.2.2      2017-06-17 CRAN (R 3.4.0)                       
 Rcpp          0.12.15    2018-01-20 CRAN (R 3.4.3)                       
 reprex      * 0.1.2      2018-01-26 CRAN (R 3.4.3)                       
 rlang         0.2.0.9000 2018-03-02 Github (tidyverse/rlang@9ea33dd)     
 rprojroot     1.3-2      2018-01-03 CRAN (R 3.4.3)                       
 rstudioapi    0.7        2017-09-07 CRAN (R 3.4.1)                       
 scales        0.5.0.9000 2018-03-02 Github (hadley/scales@d767915)       
 stats       * 3.4.3      2017-12-07 local                                
 testthat      2.0.0      2017-12-13 CRAN (R 3.4.3)                       
 tibble        1.4.2      2018-01-22 cran (@1.4.2)                        
 tools         3.4.3      2017-12-07 local                                
 utils       * 3.4.3      2017-12-07 local                                
 withr         2.1.1.9000 2018-03-02 Github (jimhester/withr@5d05571)     
 yaml          2.1.17     2018-02-27 cran (@2.1.17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions