mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 09:32:10 +01:00
32 lines
608 B
Markdown
32 lines
608 B
Markdown
# Deparses expression as string, substitutes native pipe and adds assign
|
|
|
|
Deparses expression as string, substitutes native pipe and adds assign
|
|
|
|
## Usage
|
|
|
|
``` r
|
|
expression_string(data, assign.str = "")
|
|
```
|
|
|
|
## Arguments
|
|
|
|
- data:
|
|
|
|
expression
|
|
|
|
## Value
|
|
|
|
string
|
|
|
|
## Examples
|
|
|
|
``` r
|
|
list(
|
|
as.symbol(paste0("mtcars$", "mpg")),
|
|
rlang::call2(.fn = "select", !!!list(c("cyl", "di sp")), .ns = "dplyr"),
|
|
rlang::call2(.fn = "default_parsing", .ns = "FreesearchR")
|
|
) |>
|
|
merge_expression() |>
|
|
expression_string()
|
|
#> [1] "mtcars$mpg |>dplyr::select(c('cyl', 'di sp')) |>FreesearchR::default_parsing()"
|
|
```
|