Skip to content

Add standardize_arguments() function#67

Merged
rossellhayes merged 7 commits intomainfrom
feat/standardize-arguments
Apr 6, 2023
Merged

Add standardize_arguments() function#67
rossellhayes merged 7 commits intomainfrom
feat/standardize-arguments

Conversation

@rossellhayes
Copy link
Copy Markdown
Contributor

@rossellhayes rossellhayes commented Mar 31, 2023

.user_code <- "mean(rnorm(10))"
standardize_arguments(.user_code)
#> [1] "mean(x = rnorm(n = 10, mean = 0, sd = 1), trim = 0, na.rm = FALSE)"
standardize_arguments(.user_code, recurse = FALSE)
#> [1] "mean(x = rnorm(10), trim = 0, na.rm = FALSE)"
standardize_arguments(.user_code, add_defaults = FALSE)
#> [1] "mean(x = rnorm(n = 10))"

Created on 2023-03-30 with reprex v2.0.2

@rossellhayes rossellhayes added the feat New feature or request label Mar 31, 2023
@rossellhayes rossellhayes self-assigned this Mar 31, 2023
@rossellhayes rossellhayes force-pushed the feat/standardize-arguments branch from 578075b to e0e549e Compare March 31, 2023 04:05
@rossellhayes rossellhayes force-pushed the feat/standardize-arguments branch from 55698cf to 1c6e25a Compare April 6, 2023 01:32
@rossellhayes rossellhayes merged commit c6b92b7 into main Apr 6, 2023
@rossellhayes rossellhayes deleted the feat/standardize-arguments branch April 6, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant