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

First check if the package can be installed, then proceed with long operations #36

Open
2 tasks done
m7pr opened this issue Sep 13, 2023 · 2 comments
Open
2 tasks done
Assignees
Labels
core enhancement New feature or request

Comments

@m7pr
Copy link
Contributor

m7pr commented Sep 13, 2023

Feature description

Hey, I was trying to run verdepcheck::max_deps_check("../citril") for citril package, but it looks like I missed some basic package dependencies.
Would you be able to edit the flow, so it first check whether the package can be installed, and then proceed to long downloading operations?

> verdepcheck::max_deps_check("../citril")
ℹ Creating library directory: C:\Users\kosinsm4\AppData\Local\Temp\RtmpMBQwYh\file1fe860e1f19Updated metadata database: 5.07 MB in 15 files.Updating metadata database ... doneGetting 95 pkgs (94.89 MB) and 8 pkgs with unknown sizesGot citril.metadata 0.1.5.9001 (source) (41.11 kB)                                                             
✔ Got dunlin 0.1.4.9006 (source) (78.30 kB)                                                                      
✔ Got rlistings 0.2.4.9000 (source) (146.08 kB)                                                                  
✔ Got R.cache 0.16.0 (i386+x86_64-w64-mingw32) (111.35 kB)                                                       
✔ Got R.methodsS3 1.8.2 (i386+x86_64-w64-mingw32) (82.72 kB)                                                     
✔ Got base64enc 0.1-3 (x86_64-w64-mingw32) (32.64 kB)                                                            
✔ Got backports 1.4.1 (x86_64-w64-mingw32) (101.44 kB)                                                           
✔ Got tern 0.9.0.9005 (source) (949.53 kB)                                                                       
✔ Got crayon 1.5.2 (i386+x86_64-w64-mingw32) (162.38 kB)                                                         
✔ Got R.oo 1.25.0 (i386+x86_64-w64-mingw32) (963.51 kB)                                                          
✔ Got estimability 1.4.1 (i386+x86_64-w64-mingw32) (43.23 kB)                                                    
✔ Got MatrixModels 0.5-2 (i386+x86_64-w64-mingw32) (426.41 kB)                                                   
✔ Got fastmap 1.1.1 (x86_64-w64-mingw32) (129.54 kB)                                                             
✔ Got formatters 0.5.2.9002 (source) (2.63 MB)                                                                  
✔ Got R.utils 2.12.2 (i386+x86_64-w64-mingw32) (1.42 MB)                                                       
✔ Got Matrix 1.6-1 (x86_64-w64-mingw32) (4.58 MB)                                                               
✔ Got chevron 0.2.2.9019 (source) (3.14 MB)                                                             
✔ Got farver 2.1.1 (x86_64-w64-mingw32) (1.50 MB)                                                                
✔ Got htmltools 0.5.6 (x86_64-w64-mingw32) (354.67 kB)                                                           
✔ Got mockery 0.4.3 (i386+x86_64-w64-mingw32) (45.88 kB)                                                         
✔ Got pkgconfig 2.0.3 (i386+x86_64-w64-mingw32) (22.45 kB)                                                       
✔ Got car 3.1-2 (i386+x86_64-w64-mingw32) (1.71 MB)                                                              
✔ Got minqa 1.2.5 (x86_64-w64-mingw32) (458.04 kB)                                                               
✔ Got rematch2 2.1.2 (i386+x86_64-w64-mingw32) (47.56 kB)                                                        
✔ Got ggplot2 3.4.3 (i386+x86_64-w64-mingw32) (3.33 MB)                                                          
✔ Got lme4 1.1-34 (x86_64-w64-mingw32) (4.56 MB)                                                                 
✔ Got jsonlite 1.8.7 (x86_64-w64-mingw32) (1.11 MB)                                                             
✔ Got stringr 1.5.0 (i386+x86_64-w64-mingw32) (318.21 kB)                                                       
✔ Got tidyselect 1.2.0 (i386+x86_64-w64-mingw32) (224.33 kB)                                                     
✔ Got processx 3.8.2 (x86_64-w64-mingw32) (686.30 kB)                                                            
✔ Got withr 2.5.0 (i386+x86_64-w64-mingw32) (231.99 kB)                                                          
✔ Got nestcolor 0.1.2.9004 (source) (57.08 kB)                                                                   
✔ Got R6 2.5.1 (i386+x86_64-w64-mingw32) (84.33 kB)                                                              
✔ Got RColorBrewer 1.1-3 (i386+x86_64-w64-mingw32) (55.88 kB)                                                    
✔ Got brio 1.1.3 (x86_64-w64-mingw32) (38.40 kB)                                                                 
✔ Got rmarkdown 2.24 (i386+x86_64-w64-mingw32) (2.67 MB)                                                         
✔ Got checkmate 2.2.0 (x86_64-w64-mingw32) (723.14 kB)                                                           
✔ Got ellipsis 0.3.2 (x86_64-w64-mingw32) (40.50 kB)                                                            
✔ Got rtables 0.6.3.9000 (source) (2.65 MB)                                                                   
✔ Got stringi 1.7.12 (x86_64-w64-mingw32) (14.22 MB)                                                          
✔ Got evaluate 0.21 (i386+x86_64-w64-mingw32) (83.02 kB)                                                      
✔ Got vctrs 0.6.3 (x86_64-w64-mingw32) (1.33 MB)                                                              
✔ Got diffobj 0.3.5 (x86_64-w64-mingw32) (1.01 MB)                                                            
✔ Got quantreg 5.97 (x86_64-w64-mingw32) (1.56 MB)                                                               
✔ Got jquerylib 0.1.4 (i386+x86_64-w64-mingw32) (526.01 kB)                                                     
✔ Got fs 1.6.3 (x86_64-w64-mingw32) (392.55 kB)                                                         
✔ Got munsell 0.5.0 (i386+x86_64-w64-mingw32) (244.66 kB)                                                       
✔ Got gridExtra 2.3 (i386+x86_64-w64-mingw32) (1.11 MB)                                                  
✔ Got mvtnorm 1.2-3 (x86_64-w64-mingw32) (753.52 kB)                                                     
✔ Got pillar 1.9.0 (i386+x86_64-w64-mingw32) (659.28 kB)                                                 
✔ Got purrr 1.0.2 (x86_64-w64-mingw32) (498.70 kB)                                                       
✔ Got broom 1.0.5 (i386+x86_64-w64-mingw32) (1.86 MB)                                                   
✔ Got tinytex 0.46 (i386+x86_64-w64-mingw32) (136.52 kB)                                            
✔ Got rlang 1.1.1 (x86_64-w64-mingw32) (1.57 MB)                                                   
✔ Got isoband 0.2.7 (x86_64-w64-mingw32) (1.97 MB)                                                 
✔ Got testthat 3.1.10 (x86_64-w64-mingw32) (2.22 MB)                                               
✔ Got scales 1.2.1 (i386+x86_64-w64-mingw32) (614.37 kB)                                                       
✔ Got xfun 0.40 (x86_64-w64-mingw32) (435.33 kB)                                                                
✔ Got Rdpack 2.5 (i386+x86_64-w64-mingw32) (746.34 kB)                                                    
✔ Got dplyr 1.1.3 (x86_64-w64-mingw32) (1.55 MB)                                                         
✔ Got glue 1.6.2 (x86_64-w64-mingw32) (162.52 kB)                                                
✔ Got carData 3.0-5 (i386+x86_64-w64-mingw32) (1.82 MB)                                          
✔ Got fontawesome 0.5.2 (i386+x86_64-w64-mingw32) (1.36 MB)                                      
✔ Got magrittr 2.0.3 (x86_64-w64-mingw32) (226.89 kB)                                            
✔ Got cli 3.6.1 (x86_64-w64-mingw32) (1.33 MB)                                                               
✔ Got pkgload 1.3.2.1 (i386+x86_64-w64-mingw32) (178.44 kB)                                      
✔ Got knitr 1.43 (i386+x86_64-w64-mingw32) (1.50 MB)                                                            
✔ Got nloptr 2.0.3 (x86_64-w64-mingw32) (1.02 MB)                                                               
✔ Got ps 1.7.5 (x86_64-w64-mingw32) (553.36 kB)                                                                 
✔ Got waldo 0.5.1 (i386+x86_64-w64-mingw32) (105.07 kB)                                                        
✔ Got yaml 2.3.7 (x86_64-w64-mingw32) (115.67 kB)                                                                
✔ Got tibble 3.2.1 (x86_64-w64-mingw32) (690.77 kB)                                                              
✔ Got sass 0.4.7 (x86_64-w64-mingw32) (2.60 MB)                                                                  
✔ Got lifecycle 1.0.3 (i386+x86_64-w64-mingw32) (139.02 kB)                                                      
✔ Got gtable 0.3.4 (i386+x86_64-w64-mingw32) (225.83 kB)                                                         
✔ Got numDeriv 2016.8-1.1 (i386+x86_64-w64-mingw32) (116.09 kB)                                                  
✔ Got fansi 1.0.4 (x86_64-w64-mingw32) (312.84 kB)                                                              
✔ Got desc 1.4.2 (i386+x86_64-w64-mingw32) (326.28 kB)                                                       
✔ Got rappdirs 0.3.3 (x86_64-w64-mingw32) (51.41 kB)                                                         
✔ Got bslib 0.5.1 (i386+x86_64-w64-mingw32) (6.16 MB)                                                        
✔ Got cachem 1.0.8 (x86_64-w64-mingw32) (72.57 kB)                                                            
✔ Got labeling 0.4.3 (i386+x86_64-w64-mingw32) (62.60 kB)                                                        
✔ Got pbkrtest 0.5.2 (i386+x86_64-w64-mingw32) (191.14 kB)                                                       
✔ Got viridisLite 0.4.2 (i386+x86_64-w64-mingw32) (1.30 MB)                                                     
✔ Got rbibutils 2.2.15 (x86_64-w64-mingw32) (764.59 kB)                                                         
✔ Got forcats 1.0.0 (i386+x86_64-w64-mingw32) (427.54 kB)                                                   
✔ Got cowplot 1.1.1 (i386+x86_64-w64-mingw32) (1.38 MB)                                                   
✔ Got generics 0.1.3 (i386+x86_64-w64-mingw32) (80.20 kB)                                                        
✔ Got memoise 2.0.1 (i386+x86_64-w64-mingw32) (50.23 kB)                                                         
✔ Got styler 1.10.2 (i386+x86_64-w64-mingw32) (732.47 kB)                                                       
✔ Got highr 0.10 (i386+x86_64-w64-mingw32) (46.56 kB)                                              
✔ Got rprojroot 2.0.3 (i386+x86_64-w64-mingw32) (109.30 kB)                                       
✔ Got Rcpp 1.0.11 (x86_64-w64-mingw32) (2.87 MB)                               
✔ Got SparseM 1.81 (x86_64-w64-mingw32) (1.04 MB)                      
✔ Got digest 0.6.33 (x86_64-w64-mingw32) (206.24 kB)                   
✔ Got colorspace 2.1-0 (x86_64-w64-mingw32) (2.63 MB)                  
✔ Got praise 1.0.0 (i386+x86_64-w64-mingw32) (19.87 kB)                
✔ Got mime 0.12 (x86_64-w64-mingw32) (40.81 kB)                        
✔ Got utf8 1.2.3 (x86_64-w64-mingw32) (149.69 kB)                      
✔ Got abind 1.4-5 (i386+x86_64-w64-mingw32) (63.77 kB)                 
✔ Got emmeans 1.8.8 (i386+x86_64-w64-mingw32) (2.19 MB)               
✔ Got callr 3.7.3 (i386+x86_64-w64-mingw32) (440.13 kB)      
✔ Got tidyr 1.3.0 (x86_64-w64-mingw32) (1.28 MB)             
✔ Downloaded 103 packages (104.59 MB)in 1m 37sPackaging citril.metadata 0.1.5.9001Installed MatrixModels 0.5-2  (2.8s)                                                                      
✔ Installed Matrix 1.6-1  (3.7s)                      
✔ Installed R.cache 0.16.0  (4s)                      
✔ Installed R.methodsS3 1.8.2  (4.1s)                 
✔ Installed R.oo 1.25.0  (4.3s)                       
✔ Installed R.utils 2.12.2  (4.5s)                    
✔ Installed R6 2.5.1  (4.7s)                          
✔ Installed RColorBrewer 1.1-3  (5s)                  
✔ Installed Rcpp 1.0.11  (5.2s)                                                                               
✔ Installed Rdpack 2.5  (5.4s)                        
✔ Installed SparseM 1.81  (5.5s)                                                                                 
✔ Packaged citril.metadata 0.1.5.9001 (6.3s)                                                                   
ℹ Building citril.metadata 0.1.5.9001Installed abind 1.4-5  (1s)                                                                   
✔ Installed backports 1.4.1  (374ms)                                                                           
✔ Installed base64enc 0.1-3  (1s)                                                                              
✔ Installed brio 1.1.3  (939ms)                       
✔ Installed broom 1.0.5  (1.7s)                                                                              
✔ Installed cachem 1.0.8  (895ms)                     
✔ Installed callr 3.7.3  (1.4s)                                                                               
✔ Installed carData 3.0-5  (1.6s)                     
✔ Built citril.metadata 0.1.5.9001 (4.3s)                                                                     
✔ Installed bslib 0.5.1  (3.6s)                                                                             
✔ Installed car 3.1-2  (1.8s)                                                                               
✔ Installed checkmate 2.2.0  (1.9s)                                                                       
✔ Installed cli 3.6.1  (1.4s)                                                                      
✔ Installed citril.metadata 0.1.5.9001 (github::insightsengineering/citril.metadata@b1067db) (1.6s)  
✔ Installed cowplot 1.1.1  (895ms)                                                                 
✔ Installed crayon 1.5.2  (897ms)                                                                         
✔ Installed colorspace 2.1-0  (1.9s)                                                                    
✔ Installed desc 1.4.2  (1.4s)                                                                                  
✔ Installed diffobj 0.3.5  (1.2s)                                                                             
✔ Installed digest 0.6.33  (1.5s)                                                                            
✔ Installed ellipsis 0.3.2  (1.7s)                    
✔ Installed dplyr 1.1.3  (2s)                         
✔ Installed emmeans 1.8.8  (1.9s)                     
✔ Installed estimability 1.4.1  (2s)                  
✔ Installed evaluate 0.21  (2s)                       
✔ Installed fansi 1.0.4  (2.2s)                       
✔ Installed farver 2.1.1  (2.2s)                      
✔ Installed fastmap 1.1.1  (2.4s)                     
✔ Installed fontawesome 0.5.2  (2.7s)                 
✔ Installed forcats 1.0.0  (3.1s)                     
✔ Installed fs 1.6.3  (3.3s)                          
✔ Installed generics 0.1.3  (3.4s)                     
✔ Installed ggplot2 3.4.3  (3.4s)                      
✔ Installed glue 1.6.2  (3.5s)                         
✔ Installed gridExtra 2.3  (3.5s)                      
✔ Installed gtable 0.3.4  (3.8s)                       
✔ Installed highr 0.10  (3.8s)                         
✔ Installed htmltools 0.5.6  (3.9s)                    
✔ Installed isoband 0.2.7  (3.7s)                      
✔ Installed jquerylib 0.1.4  (3.8s)                    
✔ Installed jsonlite 1.8.7  (4s)                       
✔ Installed labeling 0.4.3  (4.1s)                     
✔ Installed knitr 1.43  (4.7s)                         
✔ Installed lifecycle 1.0.3  (4.8s)                    
✔ Installed lme4 1.1-34  (5.2s)                        
✔ Installed magrittr 2.0.3  (5.4s)                     
✔ Installed memoise 2.0.1  (5.4s)                      
✔ Installed mime 0.12  (5.3s)                          
✔ Installed minqa 1.2.5  (5.2s)                        
✔ Installed mockery 0.4.3  (5.1s)                      
✔ Installed munsell 0.5.0  (4.9s)                      
✔ Installed mvtnorm 1.2-3  (4.8s)                      
✔ Installed nloptr 2.0.3  (4.7s)                       
✔ Installed numDeriv 2016.8-1.1  (4.4s)                
✔ Installed pbkrtest 0.5.2  (4.3s)                     
✔ Installed pillar 1.9.0  (4.1s)                       
✔ Installed pkgconfig 2.0.3  (4s)                      
✔ Installed pkgload 1.3.2.1  (3.9s)                    
✔ Installed praise 1.0.0  (4s)                         
✔ Installed processx 3.8.2  (4s)                       
✔ Installed ps 1.7.5  (4.1s)                           
✔ Installed purrr 1.0.2  (4.5s)                        
✔ Installed quantreg 5.97  (4.8s)                      
✔ Installed rappdirs 0.3.3  (4.9s)                     
✔ Installed rbibutils 2.2.15  (5.2s)                   
✔ Installed rematch2 2.1.2  (5.3s)                     
✔ Installed rlang 1.1.1  (5.4s)                        
ℹ Packaging formatters 0.5.2.9002Installed rprojroot 2.0.3  (4.9s)                    
✔ Installed rmarkdown 2.24  (5.6s)                     
✔ Installed sass 0.4.7  (4.9s)                         
✔ Installed scales 1.2.1  (4.8s)                       
✔ Installed stringi 1.7.12  (4.9s)                     
✔ Installed stringr 1.5.0  (4.8s)                      
✔ Installed styler 1.10.2  (4.6s)                      
✔ Installed testthat 3.1.10  (4.5s)                    
✔ Installed tibble 3.2.1  (4.4s)                       
✔ Installed tidyr 1.3.0  (4.1s)                        
✔ Installed tidyselect 1.2.0  (3.9s)                  
✔ Installed tinytex 0.46  (3.9s)                      
✔ Installed utf8 1.2.3  (4.1s)                        
✔ Installed vctrs 0.6.3  (4.3s)                       
✔ Installed viridisLite 0.4.2  (4.2s)                 
✔ Installed waldo 0.5.1  (4s)                                                                                  
✔ Installed withr 2.5.0  (4.1s)                                                                              
ℹ Packaging nestcolor 0.1.2.9004Installed xfun 0.40  (4.1s)                                                                               
✔ Installed yaml 2.3.7  (4.1s)                                                                            
ℹ Packaging dunlin 0.1.4.9006Packaged formatters 0.5.2.9002 (8.6s)                                                             
ℹ Building formatters 0.5.2.9002Packaged nestcolor 0.1.2.9004 (3.9s)                                                       
ℹ Building nestcolor 0.1.2.9004Packaged dunlin 0.1.4.9006 (5.5s)                                                          
ℹ Building dunlin 0.1.4.9006Built nestcolor 0.1.2.9004 (5.7s)                                                          
✔ Installed nestcolor 0.1.2.9004 (github::insightsengineering/nestcolor@103298c) (374ms)                
✔ Built dunlin 0.1.4.9006 (10.7s)                                                                     
✔ Built formatters 0.5.2.9002 (15.3s)                                                        
✔ Installed dunlin 0.1.4.9006 (github::insightsengineering/dunlin@a258f62) (489ms)         
✔ Installed formatters 0.5.2.9002 (github::insightsengineering/formatters@9d64682) (439ms)
ℹ Packaging rlistings 0.2.4.9000Packaging rtables 0.6.3.9000Packaged rlistings 0.2.4.9000 (3.1s)                                            
ℹ Building rlistings 0.2.4.9000Built rlistings 0.2.4.9000 (6.5s)                                               
✔ Installed rlistings 0.2.4.9000 (github::insightsengineering/rlistings@eb8a128) (193ms)     
✔ Packaged rtables 0.6.3.9000 (10.9s)                                                      
ℹ Building rtables 0.6.3.9000Built rtables 0.6.3.9000 (26.9s)                                     
✔ Installed rtables 0.6.3.9000 (github::insightsengineering/rtables@8f01282) (266ms)
ℹ Packaging tern 0.9.0.9005Packaged tern 0.9.0.9005 (45.8s)                                     
ℹ Building tern 0.9.0.9005Built tern 0.9.0.9005 (28.5s)                                     
✔ Installed tern 0.9.0.9005 (github::insightsengineering/tern@5f34f7c) (288ms)
ℹ Packaging chevron 0.2.2.9019Packaged chevron 0.2.2.9019 (10.9s)                                  
ℹ Building chevron 0.2.2.9019Built chevron 0.2.2.9019 (22.5s)                                     
✔ Installed chevron 0.2.2.9019 (github::insightsengineering/chevron@0abb78b) (282ms)
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────────────
pdflatex not found! Not building PDF manual.checking for file 'C:\Rprojects\citril/DESCRIPTION' (347ms)
─  preparing 'citril': (805ms)
✔  checking DESCRIPTION meta-information ...installing the package to build vignettes (611ms)
         -----------------------------------
   ERROR: dependencies 'chevron', 'citril.metadata', 'dunlin', 'rlistings' are not available for package 'citril'removing 'C:/Users/kosinsm4/AppData/Local/Temp/RtmpCM1TDB/Rinst586c41017c/citril'
         -----------------------------------
   ERROR: package installation failed
Error in proc$get_built_file() : Build process failed

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.
@m7pr m7pr added enhancement New feature or request core labels Sep 13, 2023
@averissimo
Copy link
Contributor

Very weird bug. I could replicate on my laptop, but not on the VM used in the CI.

It does check for the environment before, it actually installs all packages that it complains about (see your filtered/sorted log below)

# ...

✔ Got chevron 0.2.2.9019 (source) (3.14 MB)                                                             
ℹ Packaging chevron 0.2.2.9019                                        
✔ Packaged chevron 0.2.2.9019 (10.9s)                                  
ℹ Building chevron 0.2.2.9019                                          
✔ Built chevron 0.2.2.9019 (22.5s)                                     
✔ Installed chevron 0.2.2.9019 (github::insightsengineering/chevron@0abb78b) (282ms)

✔ Got citril.metadata 0.1.5.9001 (source) (41.11 kB)                                                             
ℹ Packaging citril.metadata 0.1.5.9001
✔ Packaged citril.metadata 0.1.5.9001 (6.3s)                                                                   
ℹ Building citril.metadata 0.1.5.9001                                                                  
✔ Built citril.metadata 0.1.5.9001 (4.3s)                                                                     
✔ Installed citril.metadata 0.1.5.9001 (github::insightsengineering/citril.metadata@b1067db) (1.6s)  

✔ Got dunlin 0.1.4.9006 (source) (78.30 kB)                                                                      
ℹ Packaging dunlin 0.1.4.9006                                                                         
✔ Packaged dunlin 0.1.4.9006 (5.5s)                                                          
ℹ Building dunlin 0.1.4.9006                                                                 
✔ Built dunlin 0.1.4.9006 (10.7s)                                                                     
✔ Installed dunlin 0.1.4.9006 (github::insightsengineering/dunlin@a258f62) (489ms)         

✔ Got rlistings 0.2.4.9000 (source) (146.08 kB)                                                                  
ℹ Packaging rlistings 0.2.4.9000                                            
✔ Packaged rlistings 0.2.4.9000 (3.1s)                                            
ℹ Building rlistings 0.2.4.9000                                                   
✔ Built rlistings 0.2.4.9000 (6.5s)                                               
✔ Installed rlistings 0.2.4.9000 (github::insightsengineering/rlistings@eb8a128) (193ms)     

# ...

@averissimo
Copy link
Contributor

Screenshot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants