Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest "grid" update (r76285) breaks ggplot2 #3215

Closed
ahmohamed opened this issue Mar 29, 2019 · 4 comments
Closed

Latest "grid" update (r76285) breaks ggplot2 #3215

ahmohamed opened this issue Mar 29, 2019 · 4 comments

Comments

@ahmohamed
Copy link

@ahmohamed ahmohamed commented Mar 29, 2019

It seems that ggplot2 stopped working with the latest R-devel version for some reason. Here is a reprex

library(ggplot2)
# Registered S3 methods overwritten by 'ggplot2':
#   method         from
# [.quosures     rlang
#   c.quosures     rlang
#   print.quosures rlang
ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point()
# Error in grid.Call.graphics(C_setviewport, vp, TRUE) :
#   VECTOR_ELT() can only be applied to a 'list', not a 'double'
devtools::session_info()
# ─ Session info ───────────────────────────────────────────────────────────────
# setting  value
# version  R Under development (unstable) (2019-03-28 r76288)
# os       Ubuntu 14.04.5 LTS
# system   x86_64, linux-gnu
# ui       X11
# language en_AU:en
# collate  en_AU.UTF-8
# ctype    en_AU.UTF-8
# tz       Australia/Brisbane
# date     2019-03-29
# 
# ─ Packages ───────────────────────────────────────────────────────────────────
# package     * version date       lib source
# assertthat    0.2.1   2019-03-21 [1] CRAN (R 3.7.0)
# backports     1.1.3   2018-12-14 [1] CRAN (R 3.7.0)
# callr         3.2.0   2019-03-15 [1] CRAN (R 3.7.0)
# cli           1.1.0   2019-03-19 [1] CRAN (R 3.7.0)
# clipr         0.5.0   2019-01-11 [1] CRAN (R 3.7.0)
# colorspace    1.4-1   2019-03-18 [1] CRAN (R 3.7.0)
# crayon        1.3.4   2017-09-16 [1] CRAN (R 3.7.0)
# desc          1.2.0   2018-05-01 [1] CRAN (R 3.7.0)
# devtools      2.0.1   2018-10-26 [1] CRAN (R 3.7.0)
# digest        0.6.18  2018-10-10 [1] CRAN (R 3.7.0)
# dplyr         0.8.0.1 2019-02-15 [1] CRAN (R 3.7.0)
# evaluate      0.13    2019-02-12 [1] CRAN (R 3.7.0)
# fs            1.2.7   2019-03-19 [1] CRAN (R 3.7.0)
# ggplot2     * 3.1.0   2018-10-25 [1] CRAN (R 3.7.0)
# glue          1.3.1   2019-03-12 [1] CRAN (R 3.7.0)
# gtable        0.3.0   2019-03-25 [1] CRAN (R 3.7.0)
# htmltools     0.3.6   2017-04-28 [1] CRAN (R 3.7.0)
# httr        * 1.4.0   2018-12-11 [1] CRAN (R 3.7.0)
# knitr         1.22    2019-03-08 [1] CRAN (R 3.7.0)
# labeling      0.3     2014-08-23 [1] CRAN (R 3.7.0)
# lazyeval      0.2.2   2019-03-15 [1] CRAN (R 3.7.0)
# magrittr      1.5     2014-11-22 [1] CRAN (R 3.7.0)
# memoise       1.1.0   2017-04-21 [1] CRAN (R 3.7.0)
# munsell       0.5.0   2018-06-12 [1] CRAN (R 3.7.0)
# pillar        1.3.1   2018-12-15 [1] CRAN (R 3.7.0)
# pkgbuild      1.0.3   2019-03-20 [1] CRAN (R 3.7.0)
# pkgconfig     2.0.2   2018-08-16 [1] CRAN (R 3.7.0)
# pkgload       1.0.2   2018-10-29 [1] CRAN (R 3.7.0)
# plyr          1.8.4   2016-06-08 [1] CRAN (R 3.7.0)
# prettyunits   1.0.2   2015-07-13 [1] CRAN (R 3.7.0)
# processx      3.3.0   2019-03-10 [1] CRAN (R 3.7.0)
# ps            1.3.0   2018-12-21 [1] CRAN (R 3.7.0)
# purrr         0.3.2   2019-03-15 [1] CRAN (R 3.7.0)
# R6            2.4.0   2019-02-14 [1] CRAN (R 3.7.0)
# Rcpp          1.0.1   2019-03-17 [1] CRAN (R 3.7.0)
# remotes       2.0.2   2018-10-30 [1] CRAN (R 3.7.0)
# reprex      * 0.2.1   2018-09-16 [1] CRAN (R 3.7.0)
# rlang         0.3.2   2019-03-21 [1] CRAN (R 3.7.0)
# rmarkdown     1.12    2019-03-14 [1] CRAN (R 3.7.0)
# rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.7.0)
# scales        1.0.0   2018-08-09 [1] CRAN (R 3.7.0)
# sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.7.0)
# tibble        2.1.1   2019-03-16 [1] CRAN (R 3.7.0)
# tidyselect    0.2.5   2018-10-11 [1] CRAN (R 3.7.0)
# usethis       1.4.0   2018-08-14 [1] CRAN (R 3.7.0)
# whisker       0.3-2   2013-04-28 [1] CRAN (R 3.7.0)
# withr         2.1.2   2018-03-15 [1] CRAN (R 3.7.0)
# xfun          0.5     2019-02-20 [1] CRAN (R 3.7.0)

Update details:

r76285 | murrell | 2019-03-28 16:37:47 -0500 (Thu, 28 Mar 2019) | 1 line
Changed paths:
M /trunk/src/library/grid/NAMESPACE
M /trunk/src/library/grid/R/unit.R
M /trunk/src/library/grid/inst/doc/changes.txt
M /trunk/src/library/grid/man/unit.c.Rd
M /trunk/src/library/grid/man/unit.pmin.Rd
M /trunk/src/library/grid/src/grid.c
M /trunk/src/library/grid/src/grid.h
M /trunk/src/library/grid/src/register.c
M /trunk/src/library/grid/src/unit.c
M /trunk/src/library/grid/tests/bugs.R
M /trunk/tests/Examples/grid-Ex.Rout.save

new internal representation for 'grid' units; only user-visible change should be printing of 'unit arithmetic' objects; the user might also notice that 'grid' runs faster; contributed by Thomas Lin Pedersen

@ahmohamed ahmohamed changed the title Latest grid update (r76285) breaks ggplot2: Latest "grid" update (r76285) breaks ggplot2 Mar 29, 2019
@yutannihilation
Copy link
Member

@yutannihilation yutannihilation commented Mar 29, 2019

Could you try the dev version of ggplot2?

@ahmohamed
Copy link
Author

@ahmohamed ahmohamed commented Mar 29, 2019

Thanks. The dev version fixes the problem. Any idea when will it be pushed to CRAN. This is breaking my CI tests.

@yutannihilation
Copy link
Member

@yutannihilation yutannihilation commented Mar 29, 2019

Thanks for confirmation! We are planning to release soon. Stay tuned on #3207 :)

@lock
Copy link

@lock lock bot commented Sep 25, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants