yonicd / covrpage

Create a summary readme for the testthat subdirectory to communicate with potential users
https://yonicd.github.io/covrpage/
Other
52 stars 7 forks source link

Error in check_for_pkgs(path) #55

Closed IndrajeetPatil closed 5 years ago

IndrajeetPatil commented 5 years ago

For some reason, the main function is not working for me. Not sure why.


library(ggstatsplot)

covrpage::covrpage(update_badge = FALSE,
                   vignette = FALSE,
                   preview = TRUE)
#>Error in check_for_pkgs(path) : 
  The following packages must be installed: BayesFactor(>=0.9.12-4.2),boot(>=1.3-20),broom(>=0.5.1),broom.mixed(>=0.2.3),cowplot(>=0.9.4),crayon(>=1.3.4),dplyr(>=0.7.8),effsize(>=0.7.4),exact2x2(>=1.6.3),ggcorrplot(>=0.1.2),ggExtra(>=0.8),ggplot2(>=3.1.0),ggrepel(>=0.8.0),ggsignif(>=0.4.0),glue(>=1.3.0),groupedstats(>=0.0.5),jmv(>=0.9.6),magrittr(>=1.5),metafor(>=2.0-0),paletteer(>=0.2.0),psych(>=1.8.12),purrr(>=0.3.0),purrrlyr(>=0.0.3),rlang(>=0.3.1),scales(>=1.0.0),sjstats(>=0.17.3),tibble(>=2.0.1),tidyr(>=0.8.2)

Here is the traceback

> traceback()
3: stop(sprintf("The following packages must be installed: %s", 
       paste0(ret, collapse = ",")))
2: check_for_pkgs(path)
1: covrpage::covrpage(update_badge = FALSE, vignette = FALSE, preview = TRUE)

Created on 2019-02-10 by the reprex package (v0.2.1)

As you can see in the session information, I have all the needed packages installed-

Session info ``` r devtools::session_info() #> - Session info ---------------------------------------------------------- #> setting value #> version R Under development (unstable) (2018-11-30 r75724) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz America/New_York #> date 2019-02-10 #> #> - Packages -------------------------------------------------------------- #> package * version date lib #> assertthat 0.2.0 2017-04-11 [1] #> backports 1.1.3 2018-12-14 [1] #> BayesFactor 0.9.12-4.2 2018-05-19 [1] #> bayesplot 1.6.0 2018-08-02 [1] #> boot 1.3-20 2017-08-06 [2] #> broom 0.5.1.9000 2019-01-20 [1] #> broom.mixed 0.2.3.9000 2019-01-23 [1] #> callr 3.1.1 2018-12-21 [1] #> cli 1.0.1.9000 2019-01-20 [1] #> cluster 2.0.7-1 2018-04-13 [2] #> coda 0.19-2 2018-10-08 [1] #> codetools 0.2-16 2018-12-24 [1] #> coin 1.2-2 2017-11-28 [1] #> colorspace 1.4-0 2019-01-13 [1] #> covr 3.2.1 2018-10-18 [1] #> covrpage 0.0.70 2019-02-11 [1] #> cowplot 0.9.4 2019-01-08 [1] #> crayon 1.3.4 2017-09-16 [1] #> curl 3.3 2019-01-10 [1] #> data.table 1.12.0 2019-01-13 [1] #> DEoptimR 1.0-8 2016-11-19 [1] #> desc 1.2.0 2019-01-21 [1] #> devtools 2.0.1.9000 2019-01-29 [1] #> digest 0.6.18 2018-10-10 [1] #> dplyr 0.8.0 2019-02-06 [1] #> effsize 0.7.4 2018-12-21 [1] #> emmeans 1.3.2 2019-01-22 [1] #> estimability 1.3 2018-02-11 [1] #> evaluate 0.12 2018-10-09 [1] #> exact2x2 1.6.3 2018-07-27 [1] #> exactci 1.3-3 2017-10-02 [1] #> fit.models 0.5-14 2017-04-06 [1] #> forcats 0.3.0 2018-02-19 [1] #> foreign 0.8-71 2018-07-20 [2] #> fs 1.2.6 2018-08-23 [1] #> generics 0.0.2 2019-01-20 [1] #> ggcorrplot 0.1.2.9000 2018-12-17 [1] #> ggExtra 0.8 2019-02-10 [1] #> ggplot2 3.1.0.9000 2019-02-06 [1] #> ggrepel 0.8.0 2018-05-09 [1] #> ggridges 0.5.1 2018-09-27 [1] #> ggsignif 0.4.0 2017-08-03 [1] #> ggstatsplot * 0.0.8.9000 2019-02-10 [1] #> git2r 0.24.0 2019-01-07 [1] #> glmmTMB 0.2.3 2019-01-11 [1] #> glue 1.3.0 2018-07-17 [1] #> groupedstats 0.0.5.9000 2019-01-29 [1] #> gtable 0.2.0 2016-02-26 [1] #> gtools 3.8.1 2018-06-26 [1] #> haven 2.0.0 2018-11-22 [1] #> highr 0.7 2018-06-09 [1] #> hms 0.4.2 2018-03-10 [1] #> htmltools 0.3.6 2017-04-28 [1] #> httpuv 1.4.5.1 2018-12-18 [1] #> jmv 0.9.6 2018-12-11 [1] #> jmvcore 0.9.5.2 2018-12-10 [1] #> knitr 1.21 2018-12-10 [1] #> later 0.7.5 2018-09-18 [1] #> lattice 0.20-38 2018-11-04 [2] #> lazyeval 0.2.1 2017-10-29 [1] #> lme4 1.1-20 2019-02-04 [1] #> magrittr 1.5 2014-11-22 [1] #> MASS 7.3-51.1 2018-11-01 [2] #> Matrix 1.2-15 2018-11-01 [1] #> MatrixModels 0.4-1 2015-08-22 [1] #> mc2d 0.1-18 2017-03-06 [1] #> memoise 1.1.0 2017-04-21 [1] #> metafor 2.0-0 2017-06-22 [1] #> mime 0.6 2018-10-05 [1] #> miniUI 0.1.1.1 2018-05-18 [1] #> minqa 1.2.4 2014-10-09 [1] #> mnormt 1.5-5 2016-10-15 [1] #> modelr 0.1.3 2019-02-05 [1] #> modeltools 0.2-22 2018-07-16 [1] #> multcomp 1.4-8 2017-11-08 [1] #> munsell 0.5.0 2018-06-12 [1] #> mvtnorm 1.0-8 2018-05-31 [1] #> nlme 3.1-137 2018-04-07 [2] #> nloptr 1.2.1 2018-10-03 [1] #> paletteer 0.2.0 2019-02-04 [1] #> pbapply 1.4-0 2019-02-05 [1] #> pcaPP 1.9-73 2018-01-14 [1] #> pillar 1.3.1 2018-12-15 [1] #> pkgbuild 1.0.2 2018-10-16 [1] #> pkgconfig 2.0.2 2018-08-16 [1] #> pkgload 1.0.2 2018-10-29 [1] #> plyr 1.8.4 2016-06-08 [1] #> prediction 0.3.6.2 2019-01-31 [1] #> prettyunits 1.0.2 2015-07-13 [1] #> processx 3.2.1 2018-12-05 [1] #> promises 1.0.1 2018-04-13 [1] #> ps 1.3.0 2018-12-21 [1] #> psych 1.8.12 2019-01-12 [1] #> purrr 0.3.0 2019-01-27 [1] #> purrrlyr 0.0.3 2018-05-29 [1] #> pwr 1.2-2 2018-03-03 [1] #> R6 2.3.0 2018-10-04 [1] #> Rcpp 1.0.0 2018-11-07 [1] #> remotes 2.0.2 2018-10-30 [1] #> reshape 0.8.8 2018-10-23 [1] #> reshape2 1.4.3 2017-12-11 [1] #> rex 1.1.2 2017-10-19 [1] #> rjson 0.2.20 2018-06-08 [1] #> rlang 0.3.1 2019-01-08 [1] #> rmarkdown 1.11 2018-12-08 [1] #> robust 0.4-18 2017-04-27 [1] #> robustbase 0.93-3 2018-09-21 [1] #> rprojroot 1.3-2 2018-01-03 [1] #> rrcov 1.4-7 2018-11-15 [1] #> rstudioapi 0.9.0 2019-01-09 [1] #> sandwich 2.5-0 2018-08-17 [1] #> scales 1.0.0 2018-08-09 [1] #> sessioninfo 1.1.1 2018-11-05 [1] #> shiny 1.2.0 2018-11-02 [1] #> sjlabelled 1.0.16 2019-01-10 [1] #> sjmisc 2.7.7 2019-01-02 [1] #> sjstats 0.17.3.9000 2019-02-06 [1] #> skimr 2.0 2019-01-21 [1] #> snakecase 0.9.2 2018-08-14 [1] #> ssanv 1.1 2015-06-23 [1] #> stringdist 0.9.5.1 2018-06-08 [1] #> stringi 1.2.4 2018-07-20 [1] #> stringr 1.4.0 2019-02-10 [1] #> survival 2.43-3 2018-11-26 [2] #> testthat 2.0.1 2018-10-13 [1] #> TH.data 1.0-10 2019-01-21 [1] #> tibble 2.0.1 2019-01-12 [1] #> tidyr 0.8.2 2018-10-28 [1] #> tidyselect 0.2.5 2018-10-11 [1] #> TMB 1.7.15 2018-11-09 [1] #> usethis 1.4.0.9000 2019-01-29 [1] #> whisker 0.3-2 2013-04-28 [1] #> withr 2.1.2 2018-03-15 [1] #> WRS2 0.10-0 2018-06-15 [1] #> xfun 0.4 2018-10-23 [1] #> xtable 1.8-3 2018-08-29 [1] #> yaml 2.2.0 2018-07-25 [1] #> zoo 1.8-4 2018-09-19 [1] #> source #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> Github (tidymodels/broom@66411c4) #> Github (bbolker/broom.mixed@fbe9597) #> CRAN (R 3.6.0) #> Github (r-lib/cli@94e2fc5) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> Github (metrumresearchgroup/covrpage@11baf11) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.0) #> Github (r-lib/desc@42b9578) #> Github (r-lib/devtools@e4e57aa) #> CRAN (R 3.5.1) #> Github (tidyverse/dplyr@cf0e282) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> Github (r-lib/generics@d59e6b4) #> local #> Github (daattali/ggExtra@4fe4b67) #> Github (tidyverse/ggplot2@140f27b) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> local #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> local #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> CRAN (R 3.6.0) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.2) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> Github (strengejacke/sjstats@cd5eec3) #> Github (ropenscilabs/skimr@d2b0b93) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> Github (r-lib/usethis@5a0680b) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> #> [1] C:/Users/inp099/Documents/R/win-library/3.6 #> [2] C:/Program Files/R/R-devel/library ```
yonicd commented 5 years ago

Thanks for the issue. I’ll look at it in a few days when i get to a computer.

yonicd commented 5 years ago

the package name parser did not take into account having versions on the packages (in the imports/depends). i'll add one that can handle that additional information.

yonicd commented 5 years ago

test this patch. it should fix the problem.

IndrajeetPatil commented 5 years ago

Yes, the patch solved the issue!

yonicd commented 5 years ago

merged https://github.com/metrumresearchgroup/covrpage/commit/2e48e620aa6e2469250e6d46f67095cabee23654