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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ast2ast")

1.0.2 by Krämer Konrad, 5 days ago


https://github.com/Konrad1991/ast2ast


Report a bug at https://github.com/Konrad1991/ast2ast/issues


Browse source code at https://github.com/cran/ast2ast


Authors: Krämer Konrad [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, R6, methods

Suggests knitr, kableExtra, rmarkdown, tinytest, microbenchmark, ggplot2, RcppXPtrUtils, pkgbuild, nnls

Linking to Rcpp

System requirements: GNU make, C++20, Rtools (>= 4.5) on Windows


See at CRAN