The goal of relational is to represent expressions and provide a set of generics for transformations of tables (relations).
You can install the development version of relational like so:
devtools::install_github("duckdblabs/relational")
library(relational)
expr_function(
"+",
list(
expr_reference("column"),
expr_constant(42, alias = "fortytwo")
)
)
#> list(
#> name = "+",
#> args = list(
#> list(name = "column", alias = NULL) |>
#> structure(class = c("relational_expr_reference", "relational_expr")),
#> list(val = 42, alias = "fortytwo") |>
#> structure(class = c("relational_expr_constant", "relational_expr"))
#> ),
#> alias = NULL
#> ) |>
#> structure(class = c("relational_expr_function", "relational_expr"))
Please note that the relational project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.