IndrajeetPatil / ggstatsplot

Enhancing {ggplot2} plots with statistical analysis 📊📣
https://indrajeetpatil.github.io/ggstatsplot/
GNU General Public License v3.0
2.03k stars 190 forks source link

Error "invalid argument to unary operator" when using ggcoefstats #412

Closed BartlettJE closed 4 years ago

BartlettJE commented 4 years ago

Hi,

I'm trying to use ggcoefstats to get a plot of regression coefficients. I've installed ggstatsplot and updated the tidyverse packages in its dependencies. However, when I try and run the package on any stats::lm object, I get the same error message:

Error in -dplyr::intersect(names(df_broom), names(df_performance)) : 
  invalid argument to unary operator

I've tried Googling the error message and it looks like the -dplyr function might be the source of the error with the "-" symbol before dplyr.

The error appears after this example from the documentation:

set.seed(123)

# model
mod <- stats::lm(formula = mpg ~ am * cyl, data = mtcars)

# plot
ggstatsplot::ggcoefstats(x = mod)

I would appreciate any help with this :)

IndrajeetPatil commented 4 years ago

I can't reproduce this:

set.seed(123)

# model
mod <- stats::lm(formula = mpg ~ am * cyl, data = mtcars)

# plot
ggstatsplot::ggcoefstats(x = mod)

Created on 2020-04-13 by the reprex package (v0.3.0.9001)

Session info ``` r sessioninfo::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R Under development (unstable) (2020-02-28 r77874) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz Europe/Berlin #> date 2020-04-13 #> #> - Packages ------------------------------------------------------------------- #> ! package * version date lib #> abind 1.4-5 2016-07-21 [1] #> assertthat 0.2.1 2019-03-21 [1] #> backports 1.1.6 2020-04-05 [1] #> base64enc 0.1-3 2015-07-28 [1] #> BayesFactor 0.9.12-4.2 2018-05-19 [1] #> bayestestR 0.5.3.1 2020-04-06 [1] #> bbmle 1.0.23.1 2020-02-03 [1] #> bdsmatrix 1.3-4 2020-01-13 [1] #> boot 1.3-24 2019-12-20 [2] #> bridgesampling 1.0-0 2020-02-26 [1] #> Brobdingnag 1.2-6 2018-08-13 [1] #> broom 0.5.3.9000 2020-03-01 [1] #> broom.mixed 0.2.4.9000 2020-03-09 [1] #> broomExtra 3.0.0 2020-04-10 [1] #> callr 3.4.3 2020-03-28 [1] #> car 3.0-7 2020-03-11 [1] #> carData 3.0-3 2019-11-16 [1] #> cellranger 1.1.0 2016-07-27 [1] #> cli 2.0.2 2020-02-28 [1] #> cluster 2.1.0 2019-06-19 [2] #> coda 0.19-3 2019-07-05 [1] #> codetools 0.2-16 2018-12-24 [2] #> coin 1.3-1 2019-08-28 [1] #> colorspace 1.4-1 2019-03-18 [1] #> correlation 0.2.0 2020-04-11 [1] #> cowplot 1.0.0 2019-07-11 [1] #> crayon 1.3.4 2017-09-16 [1] #> curl 4.3 2019-12-02 [1] #> data.table 1.12.8 2019-12-09 [1] #> DescTools 0.99.34 2020-03-12 [1] #> dichromat 2.0-0 2013-01-24 [1] #> digest 0.6.25 2020-02-23 [1] #> dplyr 0.8.5 2020-03-07 [1] #> effectsize 0.3.0 2020-04-11 [1] #> ellipsis 0.3.0 2019-09-20 [1] #> emmeans 1.4.5 2020-03-04 [1] #> EMT 1.1 2013-01-29 [1] #> estimability 1.3 2018-02-11 [1] #> evaluate 0.14 2019-05-28 [1] #> expm 0.999-4 2019-03-21 [1] #> ez 4.4-0 2016-11-02 [1] #> fansi 0.4.1 2020-01-08 [1] #> farver 2.0.3 2020-01-16 [1] #> fastGHQuad 1.0 2018-09-30 [1] #> fastmap 1.0.1 2019-10-08 [1] #> forcats 0.5.0 2020-03-01 [1] #> foreign 0.8-75 2020-01-20 [2] #> fs 1.4.1 2020-04-04 [1] #> generics 0.0.2 2018-11-29 [1] #> ggcorrplot 0.1.3 2019-05-19 [1] #> ggExtra 0.9 2019-08-27 [1] #> ggplot2 3.3.0 2020-03-05 [1] #> ggrepel 0.8.2 2020-03-08 [1] #> ggsignif 0.6.0 2019-08-08 [1] #> ggstatsplot 0.4.0.9000 2020-04-11 [1] #> glue 1.4.0 2020-04-03 [1] #> gridExtra 2.3 2017-09-09 [1] #> groupedstats 0.2.2 2020-04-05 [1] #> gtable 0.3.0 2019-03-25 [1] #> gtools 3.8.2 2020-03-31 [1] #> haven 2.2.0 2019-11-08 [1] #> highr 0.8 2019-03-20 [1] #> hms 0.5.3 2020-01-08 [1] #> htmltools 0.4.0 2019-10-04 [1] #> httpuv 1.5.2 2019-09-11 [1] #> httr 1.4.1 2019-08-05 [1] #> inline 0.3.15 2018-05-18 [1] #> insight 0.8.2.1 2020-04-11 [1] #> ipmisc 2.0.0.9000 2020-04-13 [1] #> jcolors 0.0.4 2019-05-22 [1] #> jmv 1.2.5 2020-02-17 [1] #> jmvcore 1.2.5 2020-02-05 [1] #> jsonlite 1.6.1 2020-02-02 [1] #> knitr 1.28 2020-02-06 [1] #> labeling 0.3 2014-08-23 [1] #> LaplacesDemon 16.1.4 2020-02-06 [1] #> later 1.0.0 2019-10-04 [1] #> lattice 0.20-40 2020-02-19 [2] #> libcoin 1.0-5 2019-08-27 [1] #> lifecycle 0.2.0.9000 2020-03-16 [1] #> lme4 1.1-23 2020-04-07 [1] #> lmtest 0.9-37 2019-04-30 [1] #> logspline 2.1.15 2019-11-08 [1] #> loo 2.2.0 2019-12-19 [1] #> magrittr 1.5 2014-11-22 [1] #> mapproj 1.2.7 2020-02-03 [1] #> maps 3.3.0 2018-04-03 [1] #> MASS 7.3-51.5 2019-12-20 [2] #> Matrix 1.2-18 2019-11-27 [2] #> MatrixModels 0.4-1 2015-08-22 [1] #> matrixStats 0.56.0 2020-03-13 [1] #> mc2d 0.1-18 2017-03-06 [1] #> metaBMA 0.6.2 2019-09-16 [1] #> metafor 2.4-0 2020-03-19 [1] #> metaplus 0.7-11 2018-04-01 [1] #> mgcv 1.8-31 2019-11-09 [2] #> mime 0.9 2020-02-04 [1] #> miniUI 0.1.1.1 2018-05-18 [1] #> minqa 1.2.4 2014-10-09 [1] #> modelr 0.1.6 2020-02-22 [1] #> modeltools 0.2-23 2020-03-05 [1] #> multcomp 1.4-13 2020-04-08 [1] #> multcompView 0.1-8 2019-12-19 [1] #> munsell 0.5.0 2018-06-12 [1] #> mvtnorm 1.1-0 2020-02-24 [1] #> nlme 3.1-144 2020-02-06 [2] #> nloptr 1.2.2.1 2020-03-11 [1] #> nortest 1.0-4 2015-07-30 [1] #> numDeriv 2016.8-1.1 2019-06-06 [1] #> oompaBase 3.2.9 2019-08-24 [1] #> openxlsx 4.1.4 2019-12-06 [1] #> pairwiseComparisons 0.3.0 2020-04-11 [1] #> paletteer 1.1.0 2020-03-10 [1] #> palr 0.2.0 2020-01-30 [1] #> pals 1.6 2019-12-04 [1] #> parameters 0.6.1 2020-04-11 [1] #> pbapply 1.4-2 2019-08-31 [1] #> performance 0.4.5 2020-04-07 [1] #> pillar 1.4.3 2019-12-20 [1] #> pkgbuild 1.0.6 2019-10-09 [1] #> pkgconfig 2.0.3 2019-09-22 [1] #> plyr 1.8.6 2020-03-03 [1] #> prettyunits 1.1.1 2020-01-24 [1] #> prismatic 0.2.0 2019-12-01 [1] #> processx 3.4.2 2020-02-09 [1] #> promises 1.1.0 2019-10-04 [1] #> ps 1.3.2 2020-02-13 [1] #> purrr 0.3.3 2019-10-18 [1] #> R6 2.4.1 2019-11-12 [1] #> rcompanion 2.3.25 2020-02-09 [1] #> Rcpp 1.0.4.6 2020-04-09 [1] #> readxl 1.3.1 2019-03-13 [1] #> rematch2 2.1.1 2020-03-28 [1] #> repr 1.1.0 2020-01-28 [1] #> reprex 0.3.0.9001 2020-03-25 [1] #> reshape 0.8.8 2018-10-23 [1] #> reshape2 1.4.4 2020-04-09 [1] #> rio 0.5.16 2018-11-26 [1] #> rjson 0.2.20 2018-06-08 [1] #> rlang 0.4.5 2020-03-01 [1] #> rmarkdown 2.1 2020-01-20 [1] #> rstan 2.19.3 2020-02-11 [1] #> rstantools 2.0.0 2019-09-15 [1] #> rstudioapi 0.11 2020-02-07 [1] #> sandwich 2.5-1 2019-04-06 [1] #> scales 1.1.0 2019-11-18 [1] #> scico 1.1.0 2018-11-20 [1] #> sessioninfo 1.1.1 2018-11-05 [1] #> shiny 1.4.0.2 2020-03-13 [1] #> sjlabelled 1.1.3 2020-01-28 [1] #> sjmisc 2.8.4 2020-04-03 [1] #> sjstats 0.17.9 2020-02-06 [1] #> skimr 2.1 2020-02-01 [1] #> StanHeaders 2.21.0-1 2020-01-19 [1] #> statmod 1.4.34 2020-02-17 [1] #> statsExpressions 0.4.0 2020-04-11 [1] #> stringi 1.4.6 2020-02-17 [1] #> stringr 1.4.0 2019-02-10 [1] #> styler 1.3.2.9000 2020-04-11 [1] #> survival 3.1-8 2019-12-03 [2] #> TH.data 1.0-10 2019-01-21 [1] #> tibble 3.0.0 2020-03-30 [1] #> tidyBF 0.2.0.9000 2020-04-13 [1] #> tidyr 1.0.2 2020-01-24 [1] #> tidyselect 1.0.0 2020-01-27 [1] #> D TMB 1.7.16 2020-01-15 [1] #> vctrs 0.2.4 2020-03-10 [1] #> viridisLite 0.3.0 2018-02-01 [1] #> withr 2.1.2 2018-03-15 [1] #> WRS2 1.0-0 2019-06-06 [1] #> xfun 0.12 2020-01-13 [1] #> xml2 1.3.1 2020-04-09 [1] #> xtable 1.8-4 2019-04-21 [1] #> yaml 2.2.1 2020-02-01 [1] #> zeallot 0.1.0 2018-01-28 [1] #> zip 2.0.4 2019-09-01 [1] #> zoo 1.8-7 2020-01-10 [1] #> source #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/bayestestR@eb7ef82) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (tidymodels/broom@3c922d5) #> Github (bbolker/broom.mixed@c2587ef) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/correlation@1b3ca4c) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/insight@6dcd66c) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (r-lib/lifecycle@355dcba) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (easystats/parameters@bdd2b6e) #> CRAN (R 4.0.0) #> Github (easystats/performance@8e16237) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (tidyverse/reprex@a019cc4) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> Github (r-lib/styler@58f852d) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> local #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> CRAN (R 4.0.0) #> #> [1] C:/Users/inp099/Documents/R/win-library/4.0 #> [2] C:/Program Files/R/R-devel/library #> #> D -- DLL MD5 mismatch, broken installation. ```

Can you post a reprex? Or at the least, I would like to see output from

traceback()
sessioninfo::session_info()
BartlettJE commented 4 years ago

It's that example that doesn't work. When I run that code, I get: Error in -dplyr::intersect(names(df_broom), names(df_performance)) : invalid argument to unary operator

I've tried a couple of examples from the package documentation, and they seem to work fine. I'm not 100% sure what it is about the ggcoefstats function that is the problem.

I've ran both functions, and here is the output:

traceback()
12: .f(.x[[i]], ...)
11: map(.x[sel], .f, ...)
10: map_if(ind_list, is_helper, eval_tidy)
9: vars_select_eval(.vars, quos)
8: tidyselect::vars_select(tbl_vars(.data), !!!enquos(...))
7: select.data.frame(df_performance, -dplyr::intersect(names(df_broom), 
       names(df_performance)))
6: dplyr::select(df_performance, -dplyr::intersect(names(df_broom), 
       names(df_performance)))
5: dots_values(...)
4: flatten_bindable(dots_values(...))
3: dplyr::bind_cols(df_broom, dplyr::select(df_performance, -dplyr::intersect(names(df_broom), 
       names(df_performance))), )
2: broomExtra::glance_performance(x)
1: ggstatsplot::ggcoefstats(x = model2)
sessioninfo::session_info()
─ Session info 
 setting  value                       
 version  R version 3.6.1 (2019-07-05)
 os       macOS Mojave 10.14.5        
 system   x86_64, darwin15.6.0        
 ui       RStudio                     
 language (EN)                        
 collate  en_GB.UTF-8                 
 ctype    en_GB.UTF-8                 
 tz       Europe/London               
 date     2020-04-13                  

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────
 package             * version    date       lib source        
 abind                 1.4-5      2016-07-21 [1] CRAN (R 3.6.0)
 assertthat            0.2.1      2019-03-21 [1] CRAN (R 3.6.0)
 backports             1.1.4      2019-04-10 [1] CRAN (R 3.6.0)
 BayesFactor           0.9.12-4.2 2018-05-19 [1] CRAN (R 3.6.0)
 bayestestR            0.5.3      2020-03-26 [1] CRAN (R 3.6.2)
 bbmle                 1.0.23.1   2020-02-03 [1] CRAN (R 3.6.0)
 bdsmatrix             1.3-4      2020-01-13 [1] CRAN (R 3.6.0)
 boot                  1.3-22     2019-04-02 [1] CRAN (R 3.6.1)
 bridgesampling        1.0-0      2020-02-26 [1] CRAN (R 3.6.0)
 Brobdingnag           1.2-6      2018-08-13 [1] CRAN (R 3.6.0)
 broom                 0.5.5      2020-02-29 [1] CRAN (R 3.6.0)
 broom.mixed           0.2.4      2019-02-21 [1] CRAN (R 3.6.0)
 broomExtra            3.0.0      2020-04-11 [1] CRAN (R 3.6.1)
 callr                 3.4.0      2019-12-09 [1] CRAN (R 3.6.0)
 car                   3.0-3      2019-05-27 [1] CRAN (R 3.6.0)
 carData               3.0-2      2018-09-30 [1] CRAN (R 3.6.0)
 cellranger            1.1.0      2016-07-27 [1] CRAN (R 3.6.0)
 cli                   2.0.2      2020-02-28 [1] CRAN (R 3.6.0)
 cluster               2.1.0      2019-06-19 [1] CRAN (R 3.6.1)
 coda                  0.19-3     2019-07-05 [1] CRAN (R 3.6.0)
 codetools             0.2-16     2018-12-24 [1] CRAN (R 3.6.1)
 coin                  1.3-0      2019-03-08 [1] CRAN (R 3.6.0)
 colorspace            1.4-1      2019-03-18 [1] CRAN (R 3.6.0)
 corrplot            * 0.84       2017-10-16 [1] CRAN (R 3.6.0)
 cowplot               1.0.0      2019-07-11 [1] CRAN (R 3.6.0)
 crayon                1.3.4      2017-09-16 [1] CRAN (R 3.6.0)
 curl                  3.3        2019-01-10 [1] CRAN (R 3.6.0)
 data.table            1.12.2     2019-04-07 [1] CRAN (R 3.6.0)
 DescTools             0.99.34    2020-03-12 [1] CRAN (R 3.6.0)
 dichromat             2.0-0      2013-01-24 [1] CRAN (R 3.6.0)
 digest                0.6.20     2019-07-04 [1] CRAN (R 3.6.0)
 dplyr               * 0.8.5      2020-03-07 [1] CRAN (R 3.6.0)
 ellipsis              0.3.0      2019-09-20 [1] CRAN (R 3.6.0)
 emmeans               1.4        2019-08-01 [1] CRAN (R 3.6.0)
 EMT                   1.1        2013-01-29 [1] CRAN (R 3.6.0)
 estimability          1.3        2018-02-11 [1] CRAN (R 3.6.0)
 expm                  0.999-4    2019-03-21 [1] CRAN (R 3.6.0)
 ez                    4.4-0      2016-11-02 [1] CRAN (R 3.6.0)
 fansi                 0.4.0      2018-10-05 [1] CRAN (R 3.6.0)
 fastGHQuad            1.0        2018-09-30 [1] CRAN (R 3.6.0)
 forcats             * 0.5.0      2020-03-01 [1] CRAN (R 3.6.0)
 foreign               0.8-71     2018-07-20 [1] CRAN (R 3.6.1)
 generics              0.0.2      2018-11-29 [1] CRAN (R 3.6.0)
 ggcorrplot            0.1.3      2019-05-19 [1] CRAN (R 3.6.0)
 ggExtra               0.8        2018-04-04 [1] CRAN (R 3.6.0)
 ggplot2             * 3.3.0      2020-03-05 [1] CRAN (R 3.6.0)
 ggrepel               0.8.1      2019-05-07 [1] CRAN (R 3.6.0)
 ggsignif              0.6.0      2019-08-08 [1] CRAN (R 3.6.0)
 ggstatsplot         * 0.3.1      2020-03-06 [1] CRAN (R 3.6.0)
 glue                  1.3.1      2019-03-12 [1] CRAN (R 3.6.0)
 gridExtra             2.3        2017-09-09 [1] CRAN (R 3.6.0)
 groupedstats          0.2.2      2020-04-05 [1] CRAN (R 3.6.2)
 gtable                0.3.0      2019-03-25 [1] CRAN (R 3.6.0)
 gtools                3.8.1      2018-06-26 [1] CRAN (R 3.6.0)
 haven                 2.2.0      2019-11-08 [1] CRAN (R 3.6.0)
 hms                   0.5.3      2020-01-08 [1] CRAN (R 3.6.0)
 htmltools             0.4.0      2019-10-04 [1] CRAN (R 3.6.0)
 httpuv                1.5.1      2019-04-05 [1] CRAN (R 3.6.0)
 httr                  1.4.1      2019-08-05 [1] CRAN (R 3.6.0)
 inline                0.3.15     2018-05-18 [1] CRAN (R 3.6.0)
 insight               0.8.2      2020-03-06 [1] CRAN (R 3.6.0)
 ipmisc                2.0.0      2020-04-11 [1] CRAN (R 3.6.2)
 janitor             * 1.2.0      2019-04-21 [1] CRAN (R 3.6.0)
 jcolors               0.0.4      2019-05-22 [1] CRAN (R 3.6.0)
 jmv                   0.9.6.1    2019-04-22 [1] CRAN (R 3.6.0)
 jmvcore               1.0.0      2019-05-28 [1] CRAN (R 3.6.0)
 jsonlite              1.6.1      2020-02-02 [1] CRAN (R 3.6.0)
 LaplacesDemon         16.1.4     2020-02-06 [1] CRAN (R 3.6.0)
 later                 0.8.0      2019-02-11 [1] CRAN (R 3.6.0)
 lattice               0.20-38    2018-11-04 [1] CRAN (R 3.6.1)
 libcoin               1.0-4      2019-02-28 [1] CRAN (R 3.6.0)
 lifecycle             0.2.0      2020-03-06 [1] CRAN (R 3.6.0)
 lme4                  1.1-21     2019-03-05 [1] CRAN (R 3.6.0)
 lmtest                0.9-37     2019-04-30 [1] CRAN (R 3.6.0)
 logspline             2.1.15     2019-11-08 [1] CRAN (R 3.6.0)
 loo                   2.1.0      2019-03-13 [1] CRAN (R 3.6.0)
 lubridate             1.7.8      2020-04-06 [1] CRAN (R 3.6.2)
 magrittr              1.5        2014-11-22 [1] CRAN (R 3.6.0)
 mapproj               1.2.6      2018-03-29 [1] CRAN (R 3.6.0)
 maps                  3.3.0      2018-04-03 [1] CRAN (R 3.6.0)
 MASS                  7.3-51.4   2019-03-31 [1] CRAN (R 3.6.1)
 Matrix                1.2-17     2019-03-22 [1] CRAN (R 3.6.1)
 MatrixModels          0.4-1      2015-08-22 [1] CRAN (R 3.6.0)
 matrixStats           0.54.0     2018-07-23 [1] CRAN (R 3.6.0)
 MBESS               * 4.6.0      2019-06-12 [1] CRAN (R 3.6.0)
 mc2d                  0.1-18     2017-03-06 [1] CRAN (R 3.6.0)
 metaBMA               0.6.2      2019-09-16 [1] CRAN (R 3.6.0)
 metafor               2.1-0      2019-05-14 [1] CRAN (R 3.6.0)
 metaplus              0.7-11     2018-04-01 [1] CRAN (R 3.6.0)
 mgcv                  1.8-28     2019-03-21 [1] CRAN (R 3.6.1)
 mime                  0.7        2019-06-11 [1] CRAN (R 3.6.0)
 miniUI                0.1.1.1    2018-05-18 [1] CRAN (R 3.6.0)
 minqa                 1.2.4      2014-10-09 [1] CRAN (R 3.6.0)
 mnormt                1.5-5      2016-10-15 [1] CRAN (R 3.6.0)
 modelr                0.1.6      2020-02-22 [1] CRAN (R 3.6.0)
 modeltools            0.2-22     2018-07-16 [1] CRAN (R 3.6.0)
 multcomp              1.4-10     2019-03-05 [1] CRAN (R 3.6.0)
 multcompView          0.1-8      2019-12-19 [1] CRAN (R 3.6.0)
 munsell               0.5.0      2018-06-12 [1] CRAN (R 3.6.0)
 mvtnorm               1.0-12     2020-01-09 [1] CRAN (R 3.6.0)
 nlme                  3.1-140    2019-05-12 [1] CRAN (R 3.6.1)
 nloptr                1.2.1      2018-10-03 [1] CRAN (R 3.6.0)
 nortest               1.0-4      2015-07-30 [1] CRAN (R 3.6.0)
 numDeriv              2016.8-1.1 2019-06-06 [1] CRAN (R 3.6.0)
 oompaBase             3.2.9      2019-08-24 [1] CRAN (R 3.6.0)
 openxlsx              4.1.0.1    2019-05-28 [1] CRAN (R 3.6.0)
 pairwiseComparisons   0.3.0      2020-04-11 [1] CRAN (R 3.6.1)
 paletteer             1.1.0      2020-03-10 [1] CRAN (R 3.6.0)
 palr                  0.2.0      2020-01-30 [1] CRAN (R 3.6.0)
 pals                  1.6        2019-12-04 [1] CRAN (R 3.6.0)
 parameters            0.6.1      2020-04-08 [1] CRAN (R 3.6.2)
 pbapply               1.4-1      2019-07-15 [1] CRAN (R 3.6.0)
 performance           0.2.0      2019-06-04 [1] CRAN (R 3.6.0)
 pillar                1.4.3      2019-12-20 [1] CRAN (R 3.6.0)
 pkgbuild              1.0.3      2019-03-20 [1] CRAN (R 3.6.0)
 pkgconfig             2.0.2      2018-08-16 [1] CRAN (R 3.6.0)
 plyr                  1.8.4      2016-06-08 [1] CRAN (R 3.6.0)
 prettyunits           1.0.2      2015-07-13 [1] CRAN (R 3.6.0)
 processx              3.4.1      2019-07-18 [1] CRAN (R 3.6.0)
 promises              1.0.1      2018-04-13 [1] CRAN (R 3.6.0)
 ps                    1.3.0      2018-12-21 [1] CRAN (R 3.6.0)
 psych               * 1.8.12     2019-01-12 [1] CRAN (R 3.6.0)
 purrr               * 0.3.3      2019-10-18 [1] CRAN (R 3.6.0)
 pwr                 * 1.2-2      2018-03-03 [1] CRAN (R 3.6.0)
 R6                    2.4.0      2019-02-14 [1] CRAN (R 3.6.0)
 rcompanion            2.3.25     2020-02-09 [1] CRAN (R 3.6.0)
 Rcpp                  1.0.1      2019-03-17 [1] CRAN (R 3.6.0)
 readr               * 1.3.1      2018-12-21 [1] CRAN (R 3.6.0)
 readxl                1.3.1      2019-03-13 [1] CRAN (R 3.6.0)
 rematch2              2.1.1      2020-03-28 [1] CRAN (R 3.6.2)
 reshape               0.8.8      2018-10-23 [1] CRAN (R 3.6.0)
 reshape2              1.4.3      2017-12-11 [1] CRAN (R 3.6.0)
 rio                   0.5.16     2018-11-26 [1] CRAN (R 3.6.0)
 rjson                 0.2.20     2018-06-08 [1] CRAN (R 3.6.0)
 rlang                 0.4.5      2020-03-01 [1] CRAN (R 3.6.0)
 rstan                 2.19.2     2019-07-09 [1] CRAN (R 3.6.0)
 rstantools            2.0.0      2019-09-15 [1] CRAN (R 3.6.0)
 rstudioapi            0.11       2020-02-07 [1] CRAN (R 3.6.0)
 rvest                 0.3.5      2019-11-08 [1] CRAN (R 3.6.0)
 sandwich              2.5-1      2019-04-06 [1] CRAN (R 3.6.0)
 scales                1.0.0      2018-08-09 [1] CRAN (R 3.6.0)
 scico                 1.1.0      2018-11-20 [1] CRAN (R 3.6.0)
 sessioninfo           1.1.1      2018-11-05 [1] CRAN (R 3.6.0)
 shiny                 1.3.2      2019-04-22 [1] CRAN (R 3.6.0)
 sjlabelled            1.1.0      2019-06-06 [1] CRAN (R 3.6.0)
 sjmisc                2.8.1      2019-06-17 [1] CRAN (R 3.6.0)
 sjstats               0.17.5     2019-06-04 [1] CRAN (R 3.6.0)
 skimr                 1.0.7      2019-06-20 [1] CRAN (R 3.6.0)
 snakecase             0.11.0     2019-05-25 [1] CRAN (R 3.6.0)
 StanHeaders           2.18.1-10  2019-06-14 [1] CRAN (R 3.6.0)
 stargazer           * 5.2.2      2018-05-30 [1] CRAN (R 3.6.0)
 statsExpressions      0.3.1      2020-02-14 [1] CRAN (R 3.6.0)
 stringi               1.4.3      2019-03-12 [1] CRAN (R 3.6.0)
 stringr             * 1.4.0      2019-02-10 [1] CRAN (R 3.6.0)
 survival              2.44-1.1   2019-04-01 [1] CRAN (R 3.6.1)
 TH.data               1.0-10     2019-01-21 [1] CRAN (R 3.6.0)
 tibble              * 3.0.0      2020-03-30 [1] CRAN (R 3.6.2)
 tidyBF                0.2.0      2020-04-11 [1] CRAN (R 3.6.2)
 tidyr               * 1.0.2      2020-01-24 [1] CRAN (R 3.6.0)
 tidyselect            0.2.5      2018-10-11 [1] CRAN (R 3.6.0)
 tidyverse           * 1.2.1      2017-11-14 [1] CRAN (R 3.6.0)
 TMB                   1.7.15     2018-11-09 [1] CRAN (R 3.6.0)
 vctrs                 0.2.4      2020-03-10 [1] CRAN (R 3.6.0)
 viridisLite           0.3.0      2018-02-01 [1] CRAN (R 3.6.0)
 withr                 2.1.2      2018-03-15 [1] CRAN (R 3.6.0)
 WRS2                  1.0-0      2019-06-06 [1] CRAN (R 3.6.0)
 xml2                  1.3.1      2020-04-09 [1] CRAN (R 3.6.2)
 xtable                1.8-4      2019-04-21 [1] CRAN (R 3.6.0)
 zeallot               0.1.0      2018-01-28 [1] CRAN (R 3.6.0)
 zip                   2.0.3      2019-07-03 [1] CRAN (R 3.6.0)
 zoo                   1.8-6      2019-05-28 [1] CRAN (R 3.6.0)
IndrajeetPatil commented 4 years ago

Can you please update your tidyselect version to 1.0.0 and see if you get the same problem?

BartlettJE commented 4 years ago

Thank you, I've just found the problem though. I've done a spring clean and updated my version of R and R Studio. It now works, so it must have been a version issue. Thank you for your help and great work on the package!