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

New version of rlang causes error with dots (...) #7

Open
yogat3ch opened this issue May 6, 2021 · 3 comments
Open

New version of rlang causes error with dots (...) #7

yogat3ch opened this issue May 6, 2021 · 3 comments

Comments

@yogat3ch
Copy link

yogat3ch commented May 6, 2021

I recently updated rlang to v 0.4.11.9000 and am now encountering an error with make_plans and make_catch_fn that has to do with the function catchr:::approx_arg_name and how expr_deparse now deals with ....

Error trace:

`...` is not empty.
i These dots only exist to allow future extensions and should be empty.
x We detected these problematic arguments:
* `..1`
i Did you misspecify an argument?
Backtrace:
     x
  1. +-base::source("~/R/Quant/JobsScripts/TuneHP.R", echo = TRUE)
  2. | +-base::withVisible(eval(ei, envir))
  3. | \-base::eval(ei, envir)
  4. |   \-base::eval(ei, envir)
  5. +-qf::start_cluster(outfile = "~/R/Quant/cl_log.log") ~/R/Quant/JobsScripts/TuneHP.R:12:0
  6. | +-base::eval(...)
  7. | | \-base::eval(...)
  8. | \-catchr::make_catch_fn(...)
  9. |   \-catchr::make_plans(..., .opts = .opts)
 10. |     \-catchr:::check_and_clean_input(..., spec_names = special_terms)
 11. |       \-catchr:::clean_input(akw$kwargs, spec_names)
 12. |         \-`%>%`(...)
 13. +-catchr:::add_back_arg_pos(., qs)
 14. | \-purrr::map2(...)
 15. +-purrr::map(., ~classify_arg(., spec_names))
 16. | \-catchr:::.f(.x[[i]], ...)
 17. |   \-catchr:::classify_arg(., spec_names)
 18. |     \-catchr:::approx_arg_name(!!arg)
 19. |       \-get_expr(enquo(x)) %>% expr_deparse(999) %>% paste(collapse = "")
 20. +-base::paste(., collapse = "")
 21. \-rlang::expr_deparse(., 999)
 22.   \-rlang::check_dots_empty0(...)
 23.     \-rlang::check_dots_empty()
 24.       \-rlang:::action_dots(...)

SessionInfo:

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
[1] parsnip_0.1.5        RevoUtils_11.0.2     RevoUtilsMath_11.0.0

loaded via a namespace (and not attached):
 [1] colorspace_2.0-0    slider_0.1.5        ellipsis_0.3.1     
 [4] class_7.3-17        timetk_2.6.0        fs_1.5.0           
 [7] logspline_2.1.16    rstudioapi_0.13     mice_3.13.0        
[10] listenv_0.8.0       furrr_0.2.1         dials_0.0.9.9000   
[13] bit64_4.0.5         prodlim_2019.11.13  fansi_0.4.2        
[16] mvtnorm_1.1-1       lubridate_1.7.9.2   codetools_0.2-16   
[19] splines_4.0.2       knitr_1.31          jsonlite_1.7.2     
[22] workflows_0.2.2     pROC_1.16.2         broom_0.7.6        
[25] anytime_0.3.9       yardstick_0.0.8     tune_0.1.5         
[28] compiler_4.0.2      httr_1.4.2          tictoc_1.0         
[31] backports_1.2.1     assertthat_0.2.1    Matrix_1.2-18      
[34] cli_2.5.0           htmltools_0.5.1.1   tools_4.0.2        
[37] gtable_0.3.0        glue_1.4.2          dplyr_1.0.5        
[40] Rcpp_1.0.6          DiceDesign_1.8-1    vctrs_0.3.8.9000   
[43] debugme_1.1.0       iterators_1.0.13    timeDate_3043.102  
[46] gower_0.2.2         xfun_0.22           stringr_1.4.0      
[49] globals_0.14.0      lifecycle_1.0.0     qf_0.0.0.9999      
[52] future_1.20.1       tsibble_0.9.3       MASS_7.3-51.6      
[55] zoo_1.8-8           scales_1.1.1        ipred_0.9-9        
[58] parallel_4.0.2      expm_0.999-4        yaml_2.2.1         
[61] quantmod_0.4.17     curl_4.3            Exact_2.0          
[64] memoise_1.1.0       ggplot2_3.3.3       rpart_4.1-15       
[67] stringi_1.5.3       RSQLite_2.2.2       foreach_1.5.1      
[70] TTR_0.23-6          lhs_1.1.1           warp_0.2.0         
[73] boot_1.3-25         lava_1.6.8.1        rlang_0.4.11.9000  
[76] pkgconfig_2.0.3     rsample_0.0.9       evaluate_0.14      
[79] lattice_0.20-41     purrr_0.3.4         recipes_0.1.16     
[82] bit_4.0.4           tidyselect_1.1.0    parallelly_1.21.0  
[85] plyr_1.8.6          magrittr_2.0.1      R6_2.5.0           
[88] DescTools_0.99.37   generics_0.1.0      DBI_1.1.1          
[91] pillar_1.5.1        withr_2.3.0         xts_0.12.1         
[94] RPushbullet_0.3.3.1 survival_3.1-12     nnet_7.3-14        
[97] tibble_3.1.0        crayon_1.4.1        catchr_0.2.3       
[100] utf8_1.2.1          AlpacaforR_1.0.0    rmarkdown_2.7.1    
[103] workflowsets_0.0.2  grid_4.0.2          data.table_1.13.2  
[106] blob_1.2.1          digest_0.6.27       tidyr_1.1.3        
[109] GPfit_1.0-8         munsell_0.5.0 
@yogat3ch yogat3ch changed the title New version New version of rlang causes error with dots (...) May 6, 2021
@burchill
Copy link
Owner

Can you tell me if the new version (0.2.31) solves this issue?

@yogat3ch
Copy link
Author

I can. I haven't worked on that repo in a hot minute tho - it will take me a bit to get it running!

@yogat3ch
Copy link
Author

yogat3ch commented Jan 6, 2022

I still haven't had a chance to work on this project. I'll update this when I do!

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

No branches or pull requests

2 participants