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

object 'progress_bar' not found #1208

Closed
mbacou opened this issue Mar 7, 2020 · 4 comments
Closed

object 'progress_bar' not found #1208

mbacou opened this issue Mar 7, 2020 · 4 comments
Assignees

Comments

@mbacou
Copy link

mbacou commented Mar 7, 2020

Just installed latest version from Github 7.11.0.9000:

plan <- drake_plan(
  raw = mtcars,
  group_index = raw$cyl,
  munged = target(raw[, c("mpg", "cyl")], dynamic = map(raw)),
  mean_mpg_by_cyl = target(
    data.frame(mpg = mean(munged$mpg), cyl = munged$cyl[1]),
    dynamic = group(munged, .by = group_index)
  )
)
make(plan)
Error in refclass_logger$new(verbose = verbose, file = file, progress_bar = progress_bar) : 
  object 'progress_bar' not found
> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS:   /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] drake_7.11.0.9000

loaded via a namespace (and not attached):
 [1] storr_1.2.1         tidyselect_1.0.0    xfun_0.12           purrr_0.3.3         splines_3.6.2      
 [6] lattice_0.20-40     vctrs_0.2.3         colorspace_1.4-1    htmltools_0.4.0     base64enc_0.1-3    
[11] survival_3.1-8      rlang_0.4.5         pillar_1.4.3        txtq_0.2.0          foreign_0.8-76     
[16] glue_1.3.1          sp_1.4-1            RColorBrewer_1.1-2  jpeg_0.1-8.1        lifecycle_0.1.0    
[21] stringr_1.4.0       munsell_0.5.0       gtable_0.3.0        raster_3.0-12       htmlwidgets_1.5.1  
[26] codetools_0.2-16    latticeExtra_0.6-29 knitr_1.28          parallel_3.6.2      fansi_0.4.1        
[31] htmlTable_1.13.3    Rcpp_1.0.3          acepack_1.4.1       filelock_1.0.2      scales_1.1.0       
[36] backports_1.1.5     checkmate_2.0.0     Hmisc_4.3-1         gridExtra_2.3       ggplot2_3.3.0      
[41] png_0.1-7           digest_0.6.25       packrat_0.5.0       stringi_1.4.6       dplyr_0.8.4        
[46] grid_3.6.2          cli_2.0.2           tools_3.6.2         base64url_1.4       magrittr_1.5       
[51] tibble_2.1.3        Formula_1.2-3       cluster_2.1.0       crayon_1.3.4        pkgconfig_2.0.3    
[56] Matrix_1.2-18       data.table_1.12.8   assertthat_0.2.1    rstudioapi_0.11     R6_2.4.1           
[61] rpart_4.1-15        igraph_1.2.4.2      tables_0.8.8        nnet_7.3-13         compiler_3.6.2  
@wlandau
Copy link
Member

wlandau commented Mar 7, 2020

Installing the progress package fixes the issue. I meant to make drake work without progress, but I guess I goofed. Patch forthcoming.

@mbacou
Copy link
Author

mbacou commented Mar 7, 2020

Thanks, had to install progress and visNetwork. Problem resolved!

@mbacou mbacou closed this as completed Mar 7, 2020
wlandau pushed a commit that referenced this issue Mar 7, 2020
@wlandau
Copy link
Member

wlandau commented Mar 7, 2020

In 8d34019 and later, drake should work without the progress package. I assume you needed visNetwork for vis_drake_graph()? Hopefully the error was informative that time.

@mbacou
Copy link
Author

mbacou commented Mar 7, 2020

Correct, vis_drake_graph error was straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants