-
Notifications
You must be signed in to change notification settings - Fork 169
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
png error in creating in using sticker function #133
Comments
some edits of the title |
works fine here. pls provide reproducible example. |
library(hexSticker) p <- ggplot(aes(x = mpg, y = wt), data = mtcars) + geom_point()
|
Hey @JobNmadu I was experiencing the same issue but update R seems to have resolved it (for me at least). |
I am having the same exact issue: > sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] showtext_0.9-2 showtextdb_3.0 sysfonts_0.8.3 hexSticker_0.4.9
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 pillar_1.6.1 compiler_4.0.2 BiocManager_1.30.16 tools_4.0.2
[6] jsonlite_1.7.2 lifecycle_1.0.0 tibble_3.1.2 gtable_0.3.0 ggimage_0.2.8
[11] lattice_0.20-41 pkgconfig_2.0.3 rlang_0.4.11 DBI_1.1.1 ggplotify_0.0.7
[16] rvcheck_0.1.8 magick_2.7.2 yaml_2.2.1 hexbin_1.28.2 dplyr_1.0.7
[21] systemfonts_1.0.2 generics_0.1.0 vctrs_0.3.8 gridGraphics_0.5-1 grid_4.0.2
[26] tidyselect_1.1.1 glue_1.4.2 R6_2.5.0 textshaping_0.3.5 fansi_0.5.0
[31] ggplot2_3.3.4 purrr_0.3.4 magrittr_2.0.1 scales_1.1.1 ellipsis_0.3.2
[36] assertthat_0.2.1 colorspace_2.0-1 ragg_1.1.3 utf8_1.2.1 munsell_0.5.0
[41] crayon_1.4.1 My code: library(hexSticker)
library(showtext)
imgurl <- system.file("figures/healthyr-ai.png", package = "healthyR.ai")
sticker(
imgurl
, package = "healthyR.ai"
, p_size=20, s_x=1, s_y=.75, s_width=.6,
, filename = "C:/Users/Steve/Desktop/imgfile.png"
) Error Message: > library(hexSticker)
> library(showtext)
> imgurl <- system.file("figures/healthyr-ai.png", package = "healthyR.ai")
> sticker(
+ imgurl
+ , package = "healthyR.ai"
+ , p_size=20, s_x=1, s_y=.75, s_width=.6,
+ , filename = "C:/Users/Steve/Desktop/imgf ..." ... [TRUNCATED]
Error in png_dev(..., res = dpi, units = "in") :
unused arguments (type = "cairo-png", antialias = "subpixel")
> |
I am still having the issue. Can there be help. |
I have installed hexsticker on my machine currently using R41. I have been trying to create sticker using the example sticker and i get this error:
Error in png_dev(..., res = dpi, units = "in") :
unused arguments (type = "cairo-png", antialias = "subpixel")
I started trying it while using R40. What is the error and how can it be fixed?
I have re-installed hexsticker using the dev version and also re-installed cairo, cairodevice
The text was updated successfully, but these errors were encountered: