tidyverse / ggplot2

An implementation of the Grammar of Graphics in R
https://ggplot2.tidyverse.org
Other
6.48k stars 2.02k forks source link

Warnings due to partial matching #5872

Closed ThomasSoeiro closed 5 months ago

ThomasSoeiro commented 5 months ago

I get warnings due to partial matching with some combination of aes(): (It causes no apparent issue in the plots. I just leave it here in case you're interested.)

ggplot(diamonds, aes(carat, price, fill = cut)) + geom_area()
# Message d'avis :
# Dans vp$just : correspondance partielle de 'just' en 'justification'
ggplot(diamonds, aes(carat, price, color = cut)) + geom_line()
# Message d'avis :
# Dans vp$just : correspondance partielle de 'just' en 'justification'
$ cat ~/.Rprofile
options(
  warnPartialMatchArgs = TRUE,
  warnPartialMatchAttr = TRUE,
  warnPartialMatchDollar = TRUE
)
sessionInfo()
# R version 4.3.1 (2023-06-16 ucrt)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows 10 x64 (build 19045)
# 
# Matrix products: default
# 
# 
# locale:
# [1] LC_COLLATE=French_France.utf8  LC_CTYPE=French_France.utf8    LC_MONETARY=French_France.utf8 LC_NUMERIC=C                  
# [5] LC_TIME=French_France.utf8    
# 
# time zone: Europe/Paris
# tzcode source: internal
# 
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods   base     
# 
# other attached packages:
# [1] ggplot2_3.5.0
# 
# loaded via a namespace (and not attached):
#  [1] utf8_1.2.4        R6_2.5.1          magrittr_2.0.3    gtable_0.3.4      glue_1.7.0        tibble_3.2.1      pkgconfig_2.0.3  
#  [8] lifecycle_1.0.4   cli_3.6.2         fansi_1.0.6       scales_1.3.0      grid_4.3.1        vctrs_0.6.5       withr_3.0.0      
# [15] compiler_4.3.1    rstudioapi_0.15.0 tools_4.3.1       munsell_0.5.0     pillar_1.9.0      colorspace_2.1-0  rlang_1.1.3      
teunbrand commented 5 months ago

Have you tried updating the {gtable} package to the latest version?

ThomasSoeiro commented 5 months ago

Indeed, there is no warning with {ggplot2} 3.5.1 and {gtable} 0.3.5. Sorry for the trouble, I hadn't noticed that the packages weren't up to date.