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

Something is wrong with rlang:::abort_dots_homonyms() #1394

Closed
NikKrieger opened this issue Apr 20, 2022 · 1 comment
Closed

Something is wrong with rlang:::abort_dots_homonyms() #1394

NikKrieger opened this issue Apr 20, 2022 · 1 comment

Comments

@NikKrieger
Copy link

When .homonyms = "error" in dots_list() is activated, the proper error does not show up. Instead, rlang reports that it can't find "abort_dots_homonyms".

library(rlang)
dots_list(a = 1, a = 2, .homonyms = "error")
#> Error in abort_dots_homonyms(dots = dots, dups = dups): could not find function "abort_dots_homonyms"
sessionInfo()
#> R version 4.0.3 (2020-10-10)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: CentOS Linux 8
#> 
#> Matrix products: default
#> BLAS:   /opt/R-4.0.3/lib64/R/lib/libRblas.so
#> LAPACK: /opt/R-4.0.3/lib64/R/lib/libRlapack.so
#> 
#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
#>  [3] 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   
#>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
#>  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] rlang_1.0.2
#> 
#> loaded via a namespace (and not attached):
#>  [1] rstudioapi_0.13 knitr_1.34      magrittr_2.0.3  fastmap_1.1.0  
#>  [5] fansi_1.0.3     stringr_1.4.0   styler_1.6.1    highr_0.9      
#>  [9] tools_4.0.3     xfun_0.26       utf8_1.2.2      cli_3.0.1      
#> [13] withr_2.4.2     htmltools_0.5.2 ellipsis_0.3.2  yaml_2.2.1     
#> [17] digest_0.6.29   tibble_3.1.4    lifecycle_1.0.1 crayon_1.5.1   
#> [21] purrr_0.3.4     vctrs_0.4.0     fs_1.5.0        glue_1.4.2     
#> [25] evaluate_0.14   rmarkdown_2.11  reprex_2.0.1    stringi_1.7.6  
#> [29] compiler_4.0.3  pillar_1.6.2    backports_1.4.1 pkgconfig_2.0.3

Created on 2022-04-20 by the reprex package (v2.0.1)

@lionel-
Copy link
Member

lionel- commented Apr 20, 2022

Thanks for the report, this is now:

Error:
! Arguments in `...` must have unique names.Multiple arguments named `a` at positions 1 and 2.

davidchall added a commit to davidchall/jinjar that referenced this issue Apr 29, 2022
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