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

Problem with example #150

Open
mtopart opened this issue Feb 2, 2022 · 2 comments
Open

Problem with example #150

mtopart opened this issue Feb 2, 2022 · 2 comments

Comments

@mtopart
Copy link

mtopart commented Feb 2, 2022

Hi,
When I try to run the examples, I get this error message.
What should I do ?
Thanks in advance


  s <- sticker(~plot(cars, cex=.5, cex.axis=.5, mgp=c(0,.3,0), xlab="", ylab=""),
+              package="hexSticker", p_size=20, s_x=.8, s_y=.6, s_width=1.4, s_height=1.2,
+              filename="inst/figures/baseplot.png")
Error in UseMethod("validGrob") : 
  no applicable method for 'validGrob' applied to an object of class "NULL"
In addition: Warning messages:
1: Using ragg device as default. Ignoring `type` and `antialias` arguments 
2: In editThisGrob(grob, specs) : slot 'vp' not found
3: In editThisGrob(grob, specs) : slot 'name' not found 
@tentacles-from-outer-space
Copy link

tentacles-from-outer-space commented Jun 15, 2022

Second on this.

When i run an example first time it is ok. Running it second time (no changes) show the error:

library(hexSticker)
#> Warning: package 'hexSticker' was built under R version 4.1.3
library(ggplot2)

outfile <- tempfile(fileext=".png")
s <- sticker(~plot(cars, cex=.5, cex.axis=.5, mgp=c(0,.3,0), xlab="", ylab=""),
             package="X", p_size=20, s_x=.8, s_y=.6, s_width=1.4, s_height=1.2,
             filename=outfile)
#> Warning: Using ragg device as default. Ignoring `type` and `antialias` arguments

outfile <- tempfile(fileext=".png")
s <- sticker(~plot(cars, cex=.5, cex.axis=.5, mgp=c(0,.3,0), xlab="", ylab=""),
             package="X", p_size=20, s_x=.8, s_y=.6, s_width=1.4, s_height=1.2,
             filename=outfile)
#> Warning: Using ragg device as default. Ignoring `type` and `antialias` arguments
#> Warning in editThisGrob(grob, specs): slot 'vp' not found
#> Warning in editThisGrob(grob, specs): slot 'name' not found
#> Error in UseMethod("validGrob"): no applicable method for 'validGrob' applied to an object of class "NULL"

Created on 2022-06-15 by the reprex package (v2.0.1)

Problem is only with base graph. lattice/ggplot2 works.

@merliseclyde
Copy link

same issue using base R graphic plots. Example in README file still does not work. Any solution?

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

No branches or pull requests

3 participants