ModelOriented / modelDown

modelDown generates a website with HTML summaries for predictive models
https://ModelOriented.github.io/modelDown/
119 stars 14 forks source link

Error in file.copy #7

Closed pbiecek closed 6 years ago

pbiecek commented 6 years ago

I was executing your examples: https://htmlpreview.github.io/?https://raw.githubusercontent.com/kromash/modelDown/master/docs/reference/modelDown.html

and got following error:

> modelDown::modelDown(explainer_ranger, explainer_glm) #all defaults
Error in file.copy(css_files_paths, to, recursive = TRUE, overwrite = TRUE) : 
  invalid 'from' argument

Here is the traceback:

> traceback()
3: file.copy(css_files_paths, to, recursive = TRUE, overwrite = TRUE)
2: copyAssets(system.file("extdata", "template", package = "modelDown"), 
       output_folder)
1: modelDown::modelDown(explainer_ranger, explainer_glm)

and here is my session info

> devtools::session_info()
Session info ---------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.4 (2018-03-15)
 system   x86_64, darwin15.6.0        
 ui       RStudio (1.1.442)           
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       Europe/Warsaw               
 date     2018-05-31                  

Packages -------------------------------------------------------------------------------------
 package       * version    date       source                                 
 agricolae       1.2-8      2017-09-12 cran (@1.2-8)                          
 ALEPlot         1.0        2017-11-13 CRAN (R 3.4.2)                         
 AlgDesign       1.1-7.3    2014-10-15 CRAN (R 3.2.0)                         
 assertthat      0.2.0      2017-04-11 CRAN (R 3.4.0)                         
 backports       1.1.2      2017-12-13 cran (@1.1.2)                          
 base          * 3.4.4      2018-03-15 local                                  
 base64enc       0.1-3      2015-07-28 CRAN (R 3.2.0)                         
 bindr           0.1.1      2018-03-13 CRAN (R 3.4.4)                         
 bindrcpp        0.2.2      2018-03-29 CRAN (R 3.4.4)                         
 BiocInstaller   1.16.5     2015-05-20 Bioconductor                           
 boot            1.3-20     2017-08-06 CRAN (R 3.4.4)                         
 breakDown     * 0.1.6      2018-05-17 local (pbiecek/breakDown@NA)           
 callr           2.0.3      2018-04-11 CRAN (R 3.4.4)                         
 cluster         2.0.7-1    2018-04-09 CRAN (R 3.4.4)                         
 coda            0.19-1     2016-12-08 cran (@0.19-1)                         
 colorspace      1.3-2      2016-12-14 CRAN (R 3.4.0)                         
 combinat        0.0-8      2012-10-29 CRAN (R 3.1.0)                         
 commonmark      1.4        2017-09-01 cran (@1.4)                            
 compiler        3.4.4      2018-03-15 local                                  
 crayon          1.3.4      2017-09-16 CRAN (R 3.4.1)                         
 curl            3.2        2018-03-28 CRAN (R 3.4.4)                         
 DALEX         * 0.2.2      2018-05-22 CRAN (R 3.4.4)                         
 datasets      * 3.4.4      2018-03-15 local                                  
 debugme         1.1.0      2017-10-22 CRAN (R 3.4.2)                         
 deldir          0.1-15     2018-04-01 CRAN (R 3.4.4)                         
 desc            1.1.1      2017-08-03 cran (@1.1.1)                          
 devtools        1.13.5     2018-02-18 CRAN (R 3.4.3)                         
 digest          0.6.15     2018-01-28 cran (@0.6.15)                         
 dplyr           0.7.4      2017-09-28 CRAN (R 3.4.2)                         
 evaluate        0.10.1     2017-06-24 CRAN (R 3.4.1)                         
 expm            0.999-2    2017-03-29 cran (@0.999-2)                        
 factorMerger    0.3.6      2018-04-04 CRAN (R 3.4.4)                         
 gdata           2.18.0     2017-06-06 CRAN (R 3.4.0)                         
 gdtools       * 0.1.7      2018-02-27 CRAN (R 3.4.3)                         
 ggiraph       * 0.4.2      2017-12-19 CRAN (R 3.4.3)                         
 ggplot2       * 2.2.1.9000 2018-05-31 Github (thomasp85/ggplot2@dfa0bc3)     
 ggpubr          0.1.6      2017-11-14 cran (@0.1.6)                          
 git2r           0.21.0     2018-01-04 CRAN (R 3.4.3)                         
 glue            1.2.0      2017-10-29 cran (@1.2.0)                          
 gmodels         2.16.2     2015-07-22 CRAN (R 3.4.0)                         
 graphics      * 3.4.4      2018-03-15 local                                  
 grDevices     * 3.4.4      2018-03-15 local                                  
 grid            3.4.4      2018-03-15 local                                  
 gridExtra       2.3        2017-09-09 CRAN (R 3.4.1)                         
 gtable          0.2.0      2016-02-26 CRAN (R 3.2.3)                         
 gtools          3.5.0      2015-05-29 CRAN (R 3.2.0)                         
 highlight       0.4.7.2    2017-10-04 cran (@0.4.7.2)                        
 highr           0.6        2016-05-09 CRAN (R 3.4.0)                         
 hms             0.4.2      2018-03-10 CRAN (R 3.4.4)                         
 htmltools       0.3.6      2017-04-28 CRAN (R 3.4.0)                         
 htmlwidgets     1.0        2018-01-20 cran (@1.0)                            
 httpuv          1.3.6.2    2018-03-02 CRAN (R 3.4.3)                         
 httr            1.3.1      2017-08-20 CRAN (R 3.4.1)                         
 jsonlite        1.5        2017-06-01 CRAN (R 3.4.0)                         
 kableExtra      0.9.0      2018-05-21 CRAN (R 3.4.4)                         
 klaR            0.6-14     2018-03-19 CRAN (R 3.4.4)                         
 knitr           1.20       2018-02-20 cran (@1.20)                           
 labeling        0.3        2014-08-23 CRAN (R 3.2.2)                         
 lattice         0.20-35    2017-03-25 CRAN (R 3.4.4)                         
 lazyeval        0.2.1      2017-10-29 CRAN (R 3.4.2)                         
 LearnBayes      2.15.1     2018-03-18 CRAN (R 3.4.4)                         
 magrittr        1.5        2014-11-22 CRAN (R 3.2.2)                         
 MASS            7.3-49     2018-02-23 CRAN (R 3.4.4)                         
 Matrix          1.2-14     2018-04-09 CRAN (R 3.4.4)                         
 memoise         1.1.0      2017-04-21 CRAN (R 3.4.0)                         
 methods       * 3.4.4      2018-03-15 local                                  
 MI2template     0.1.0.0000 2017-12-02 Github (mi2-warsaw/MI2template@a2e7f45)
 mime            0.5        2016-07-07 CRAN (R 3.4.0)                         
 miniUI          0.1.1      2016-01-15 CRAN (R 3.2.3)                         
 modelDown       0.0.0.9000 2018-05-31 Github (kromash/modelDown@8ff72a4)     
 munsell         0.4.3      2016-02-13 CRAN (R 3.2.3)                         
 mvtnorm         1.0-7      2018-01-25 cran (@1.0-7)                          
 nlme            3.1-137    2018-04-07 CRAN (R 3.4.4)                         
 officer         0.2.2      2018-03-14 CRAN (R 3.4.4)                         
 pdp             0.6.0      2017-07-20 CRAN (R 3.4.1)                         
 pillar          1.2.1      2018-02-27 CRAN (R 3.4.3)                         
 pkgbuild        0.0.0.9000 2017-10-25 Github (r-lib/pkgbuild@a70858f)        
 pkgconfig       2.0.1      2017-03-21 CRAN (R 3.4.0)                         
 pkgdown         0.1.0.9000 2017-11-21 Github (hadley/pkgdown@33673a9)        
 pkgload         0.0.0.9000 2017-11-21 Github (r-lib/pkgload@70eaef8)         
 plyr            1.8.4      2016-06-08 CRAN (R 3.4.0)                         
 proxy           0.4-22     2018-04-08 CRAN (R 3.4.4)                         
 purrr           0.2.4      2017-10-18 cran (@0.2.4)                          
 questionr       0.6.2      2017-11-01 CRAN (R 3.4.2)                         
 R.methodsS3     1.7.1      2016-02-16 CRAN (R 3.2.3)                         
 R.oo            1.21.0     2016-11-01 CRAN (R 3.4.0)                         
 R.utils         2.6.0      2017-11-05 CRAN (R 3.4.2)                         
 R6              2.2.2      2017-06-17 CRAN (R 3.4.0)                         
 randomForest  * 4.6-14     2018-03-25 CRAN (R 3.4.4)                         
 ranger        * 0.9.0      2018-01-09 cran (@0.9.0)                          
 Rcpp            0.12.16    2018-03-13 cran (@0.12.16)                        
 readr           1.1.1      2017-05-16 CRAN (R 3.4.0)                         
 reshape2        1.4.3      2017-12-11 cran (@1.4.3)                          
 rlang           0.2.0.9001 2018-05-31 Github (r-lib/rlang@4e7e8f7)           
 rmarkdown       1.9        2018-03-01 CRAN (R 3.4.3)                         
 roxygen2        6.0.1.9000 2017-10-25 Github (klutometis/roxygen@bbf259d)    
 rprojroot       1.3-2      2018-01-03 CRAN (R 3.4.3)                         
 rstudioapi      0.7        2017-09-07 CRAN (R 3.4.1)                         
 rvest           0.3.2      2016-06-17 CRAN (R 3.4.0)                         
 rvg             0.1.8      2018-02-13 CRAN (R 3.4.3)                         
 scales          0.5.0.9000 2018-05-31 Github (hadley/scales@d767915)         
 shiny           1.0.5      2017-08-23 CRAN (R 3.4.1)                         
 sp              1.2-7      2018-01-19 cran (@1.2-7)                          
 spData          0.2.8.3    2018-03-25 CRAN (R 3.4.4)                         
 spdep           0.7-7      2018-04-03 CRAN (R 3.4.4)                         
 splines         3.4.4      2018-03-15 local                                  
 stats         * 3.4.4      2018-03-15 local                                  
 stringi         1.1.7      2018-03-12 cran (@1.1.7)                          
 stringr         1.3.0      2018-02-19 cran (@1.3.0)                          
 survival        2.41-3     2017-04-04 CRAN (R 3.4.4)                         
 testthat        2.0.0      2017-12-13 CRAN (R 3.4.3)                         
 tibble          1.4.2      2018-01-22 cran (@1.4.2)                          
 tools           3.4.4      2018-03-15 local                                  
 usethis         1.3.0      2018-02-24 CRAN (R 3.4.3)                         
 utils         * 3.4.4      2018-03-15 local                                  
 uuid            0.1-2      2015-07-28 CRAN (R 3.4.0)                         
 viridisLite     0.3.0      2018-02-01 cran (@0.3.0)                          
 WhatIfPlots   * 0.1        <NA>       local                                  
 whisker         0.3-2      2013-04-28 CRAN (R 3.1.0)                         
 withr           2.1.2      2018-05-31 Github (jimhester/withr@70d6321)       
 xml2            1.2.0      2018-01-24 cran (@1.2.0)                          
 xtable          1.8-2      2016-02-05 CRAN (R 3.2.3)                         
 yaImpute        1.0-29     2017-12-10 CRAN (R 3.4.3)                         
 yaml            2.1.18     2018-03-08 cran (@2.1.18)                         
 zip             1.0.0      2017-04-25 CRAN (R 3.4.0) 
pbiecek commented 6 years ago

I've just installed fresh R 3.5.0 with all newst packages from CRAN and still get

> modelDown::modelDown(explainer_ranger, explainer_glm) #all defaults
Error in file.copy(css_files_paths, to, recursive = TRUE, overwrite = TRUE) : 
  invalid 'from' argument
kromash commented 6 years ago

Fixed - file.copy was not working correctly with generated list of files on macOS and Linux.