Package: ast2ast 0.5

Krämer Konrad

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.

Authors:Krämer Konrad [aut, cre]

ast2ast_0.5.tar.gz
ast2ast_0.5.zip(r-4.7)ast2ast_0.5.zip(r-4.6)ast2ast_0.5.zip(r-4.5)
ast2ast_0.5.tgz(r-4.6-x86_64)ast2ast_0.5.tgz(r-4.6-arm64)ast2ast_0.5.tgz(r-4.5-x86_64)ast2ast_0.5.tgz(r-4.5-arm64)
ast2ast_0.5.tar.gz(r-4.7-arm64)ast2ast_0.5.tar.gz(r-4.7-x86_64)ast2ast_0.5.tar.gz(r-4.6-arm64)ast2ast_0.5.tar.gz(r-4.6-x86_64)
ast2ast_0.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ast2ast/json (API)

# Install 'ast2ast' in R:
install.packages('ast2ast', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/konrad1991/ast2ast/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

abstract-syntax-treecc-plus-plusexpression-templatematrixrcpptranspilervectoropenblascpp

5.35 score 34 stars 15 scripts 74 downloads 1 exports 2 dependencies

Last updated from:7a802f9240. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK309
linux-devel-x86_64OK316
source / vignettesOK416
linux-release-arm64OK280
linux-release-x86_64OK286
macos-release-arm64OK165
macos-release-x86_64OK443
macos-oldrel-arm64OK168
macos-oldrel-x86_64OK512
windows-develOK350
windows-releaseOK315
windows-oldrelOK376
wasm-releaseOK201

Exports:translate

Dependencies:R6Rcpp

Information for package authors
Guidance for Package Authors | Naming rationalization ast2ast | Comparison of R and ETR code | The XPtr interface | First, one creates the external pointer of the R function. | Afterwards the external pointer is used in an R package | call the function from the R package

Last update: 2026-02-24
Started: 2022-01-31

Detailed Documentation
Overview | Type system in ast2ast | Setting types for function arguments | Default behavior | Using args_f | Borrowing, constness, and references | Setting types for variables inside the function | Immutability of types | Derivatives | Forward mode | Reverse mode | Design philosophy | Interpolation

Last update: 2026-01-10
Started: 2022-01-14