nucleic-acid / namedropR

R package namedropR
https://nucleic-acid.github.io/namedropR/
Other
61 stars 5 forks source link

Graphics API version mismatch #64

Open zhaoliang0302 opened 1 year ago

zhaoliang0302 commented 1 year ago
library(namedropR)
drop_name_crossref(
  c(cite1 = "10.1126/science.169.3946.635", cite2 = "10.1111/joms.12670"),
  export_as = "png",
  style = "newspaper"
)

Error:

No cite_key specified. Working through all possible 2 entries in the bibliography.
Error in (function (filename = "Rplot%03d.png", width = 480, height = 480,  :                                                                                                                 
  Graphics API version mismatch
nucleic-acid commented 1 year ago

Thanks for the report. To narrow this down:

Could you please add details regarding your system, the R version and the graphics device you are using? Are you working within quarto, Rmarkdown or a plain R script?

zhaoliang0302 commented 1 year ago
sessionInfo()
R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936  LC_CTYPE=Chinese (Simplified)_China.936    LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C                               LC_TIME=Chinese (Simplified)_China.936    

time zone: Asia/Shanghai
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] namedropR_2.4.1

loaded via a namespace (and not attached):
 [1] utf8_1.2.3         generics_0.1.3     xml2_1.3.4         stringi_1.7.12     httpcode_0.3.0     hms_1.1.3          digest_0.6.31     
 [8] magrittr_2.0.3     timechange_0.2.0   fastmap_1.1.1      plyr_1.8.8         jsonlite_1.8.4     crul_1.4.0         urltools_1.7.3    
[15] promises_1.2.0.1   httr_1.4.6         fansi_1.0.4        textshaping_0.3.6  cli_3.6.1          shiny_1.7.4        crayon_1.5.2      
[22] rlang_1.1.1        triebeard_0.4.1    bit64_4.0.5        ellipsis_0.3.2     withr_2.5.0        parallel_4.3.0     tools_4.3.0       
[29] tzdb_0.4.0         dplyr_1.1.2        httpuv_1.6.11      DT_0.28            webshot_0.5.4      rcrossref_1.2.0    bib2df_1.1.1      
[36] curl_5.0.0         assertthat_0.2.1   vctrs_0.6.2        R6_2.5.1           mime_0.12          lifecycle_1.0.3    lubridate_1.9.2   
[43] stringr_1.5.0      bit_4.0.5          htmlwidgets_1.6.2  vroom_1.6.3        qrcode_0.2.1       miniUI_0.1.1.1     ragg_1.2.5        
[50] pkgconfig_2.0.3    pillar_1.9.0       later_1.3.1        glue_1.6.2         Rcpp_1.0.10        systemfonts_1.0.4  tibble_3.2.1      
[57] tidyselect_1.2.0   rstudioapi_0.14    xtable_1.8-4       htmltools_0.5.5    readr_2.1.4        humaniformat_0.6.0 compiler_4.3.0