ast2ast: Translates an R Function to a C++ Function

Enable translation of a tiny subset of R to C++. The user has to define a R function which gets translated. For a full list of possible functions check the documentation. After translation an R function is returned which is a shallow wrapper around the C++ code. Alternatively an external pointer to the C++ function is returned to the user. The intention of the package is to generate fast functions which can be used as ode-system or during optimization.

Version: 1.0
Depends: R (≥ 4.1.0)
Imports: Rcpp (≥ 1.0.4), R6, methods
LinkingTo: Rcpp
Suggests: knitr, kableExtra, rmarkdown, tinytest, microbenchmark, ggplot2, RcppXPtrUtils, pkgbuild, nnls
Published: 2026-09-14
DOI: 10.32614/CRAN.package.ast2ast
Author: Krämer Konrad [aut, cre]
Maintainer: Krämer Konrad <konrad_kraemer at yahoo.de>
BugReports: https://github.com/Konrad1991/ast2ast/issues
License: GPL-3
URL: https://github.com/Konrad1991/ast2ast
NeedsCompilation: yes
SystemRequirements: GNU make, C++20, Rtools (>= 4.5) on Windows
Materials: NEWS
CRAN checks: ast2ast results

Documentation:

Reference manual: ast2ast.html , ast2ast.pdf
Vignettes: Detailed Documentation (source, R code)
Information for package authors (source, R code)
Inner Functions and Custom Types (source, R code)

Downloads:

Package source: ast2ast_1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available
Old sources: ast2ast archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ast2ast to link to this page.