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

Partial match of member name #93

Closed
aphalo opened this issue Dec 18, 2017 · 1 comment
Closed

Partial match of member name #93

aphalo opened this issue Dec 18, 2017 · 1 comment

Comments

@aphalo
Copy link
Contributor

aphalo commented Dec 18, 2017

Summary

I get a warning message from "geom_text_repel":

Warning messages:
1: In x$hj : partial match of 'hj' to 'hjust'
2: partial match of 'hj' to 'hjust'
3: partial match of 'hj' to 'hjust'
4: partial match of 'hj' to 'hjust'
5: partial match of 'hj' to 'hjust'
6: partial match of 'hj' to 'hjust'
7: partial match of 'hj' to 'hjust'
8: partial match of 'hj' to 'hjust'
9: partial match of 'hj' to 'hjust'
.... etc.

Minimal code example

Here is the minimum amount of code neeeded to demonstrate the issue, using the example in the help page for "geom_text_repel":

library(ggplot2)
library(ggrepel)
# warn on partial matches
# warn on partial matches
options(warnPartialMatchAttr = TRUE,
        warnPartialMatchDollar = TRUE,
        warnPartialMatchArgs = TRUE)

p <- ggplot(mtcars,
   aes(wt, mpg, label = rownames(mtcars), colour = factor(cyl))) +
   geom_point()
p + geom_text_repel()

warnings()

Suggestions

This is my proposal for how to solve the issue.

Version information

Here is the output from sessionInfo() in my R session:

Session info -----------------------------------------------------------------------------------
 setting  value                                      
 version  R version 3.4.3 Patched (2017-12-14 r73916)
 system   x86_64, mingw32                            
 ui       RStudio (1.1.399)                          
 language (EN)                                       
 collate  English_United Kingdom.1252                
 tz       Europe/Helsinki                            
 date     2017-12-18                                 

Packages ---------------------------------------------------------------------------------------
 package               * version    date       source                            
 base                  * 3.4.3      2017-12-15 local                             
 colorspace              1.3-2      2016-12-14 CRAN (R 3.4.0)                    
 compiler                3.4.3      2017-12-15 local                             
 curl                    3.1        2017-12-12 CRAN (R 3.4.3)                    
 datasets              * 3.4.3      2017-12-15 local                             
 devtools              * 1.13.4     2017-11-09 CRAN (R 3.4.2)                    
 digest                  0.6.13     2017-12-14 CRAN (R 3.4.3)                    
 ggplot2               * 2.2.1.9000 2017-12-15 Github (tidyverse/ggplot2@bfff1d8)
 ggrepel               * 0.7.1      2017-12-16 Github (slowkow/ggrepel@3f5d03f)  
 ggspectra             * 0.2.3      2017-12-16 local                             
 git2r                   0.19.0     2017-07-19 CRAN (R 3.4.1)                    
 graphics              * 3.4.3      2017-12-15 local                             
 grDevices             * 3.4.3      2017-12-15 local                             
 grid                    3.4.3      2017-12-15 local                             
 gtable                  0.2.0      2016-02-26 CRAN (R 3.4.0)                    
 httr                    1.3.1      2017-08-20 CRAN (R 3.4.1)                    
 labeling                0.3        2014-08-23 CRAN (R 3.4.0)                    
 lazyeval                0.2.1      2017-10-29 CRAN (R 3.4.2)                    
 memoise                 1.1.0      2017-04-21 CRAN (R 3.4.0)                    
 methods               * 3.4.3      2017-12-15 local                             
 munsell                 0.4.3      2016-02-13 CRAN (R 3.4.0)                    
 photobiology          * 0.9.18-1   2017-12-16 local                             
 photobiologyWavebands   0.4.2      2017-03-20 CRAN (R 3.4.0)                    
 plyr                    1.8.4      2016-06-08 CRAN (R 3.4.0)                    
 R6                      2.2.2      2017-06-17 CRAN (R 3.4.0)                    
 Rcpp                    0.12.14    2017-11-23 CRAN (R 3.4.2)                    
 rlang                   0.1.4.9000 2017-12-16 Github (tidyverse/rlang@cc7587c)  
 rstudioapi              0.7        2017-09-07 CRAN (R 3.4.1)                    
 scales                  0.5.0.9000 2017-09-01 Github (hadley/scales@d767915)    
 splus2R                 1.2-2      2016-09-02 CRAN (R 3.4.0)                    
 stats                 * 3.4.3      2017-12-15 local                             
 tibble                  1.3.4      2017-08-22 CRAN (R 3.4.1)                    
 tools                   3.4.3      2017-12-15 local                             
 utils                 * 3.4.3      2017-12-15 local                             
 withr                   2.1.0.9000 2017-11-25 Github (jimhester/withr@fe81c00)  
 yaml                    2.1.16     2017-12-12 CRAN (R 3.4.3)       

@aphalo aphalo changed the title Partial match of parameter name Partial match of member name Dec 19, 2017
slowkow added a commit that referenced this issue Dec 19, 2017
Thanks to @aphalo for reporting this issue.

Read more at:

#93
@slowkow
Copy link
Owner

slowkow commented Dec 19, 2017

Thanks for reporting this issue! 👍

It should be fixed in commit ab51ed2

Let me know if you run into any other warnings.

@slowkow slowkow closed this as completed Dec 19, 2017
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