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

Warnings due to partial matching #5872

Closed
ThomasSoeiro opened this issue Apr 30, 2024 · 2 comments
Closed

Warnings due to partial matching #5872

ThomasSoeiro opened this issue Apr 30, 2024 · 2 comments

Comments

@ThomasSoeiro
Copy link

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
Copy link
Collaborator

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

@ThomasSoeiro
Copy link
Author

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.

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

2 participants