You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to come up with a minimalist hex sticker, but I'm having some problems when creating an empty sticker (i.e. that contains just the package name). The first time I try to create it using sticker() it works fine, but any subsequent attempts raise an error. See the reprex below:
library(hexSticker)
a<- sticker(
subplot=~ plot.new(),
package="test",
filename= tempfile(fileext=".png")
)
class(a)
#> [1] "sticker" "gg" "ggplot"a<- sticker(
subplot=~ plot.new(),
package="test",
filename= tempfile(fileext=".png")
)
#> 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"
Can confirm. Even the demo example fails with that same error when ran a second time in a fresh R session.
I've noticed that loading hexSticker loads a bunch of other packages that I'm not sure should be there. This is part of my sessionInfo() right after loading the package:
I'm trying to come up with a minimalist hex sticker, but I'm having some problems when creating an empty sticker (i.e. that contains just the package name). The first time I try to create it using
sticker()
it works fine, but any subsequent attempts raise an error. See the reprex below:Created on 2021-03-05 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: