elixir: Transmutation of Languages

Tools for transforming R expressions.

Provides functions for finding, extracting, and replacing patterns in R language objects, similarly to how regular expressions can be used to find, extract, and replace patterns in text. Also provides functions for generating code using specially-formatted template files and for translating R expressions into similar expressions in other programming languages. The package may be helpful for advanced uses of R expressions, such as developing domain-specific languages.

Installation

You can install the released version of elixir from CRAN with:

install.packages("elixir")

You can install the development version of elixir from GitHub with:

# install.packages("devtools")
# devtools::install_github("nicholasdavies/elixir")
install.packages("elixir", repos = c('https://nicholasdavies.r-universe.dev', 'https://cloud.r-project.org'))