Package: ast2ast 0.4

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.4.tar.gz
ast2ast_0.4.zip(r-4.5)ast2ast_0.4.zip(r-4.4)ast2ast_0.4.zip(r-4.3)
ast2ast_0.4.tgz(r-4.4-x86_64)ast2ast_0.4.tgz(r-4.4-arm64)ast2ast_0.4.tgz(r-4.3-x86_64)ast2ast_0.4.tgz(r-4.3-arm64)
ast2ast_0.4.tar.gz(r-4.5-noble)ast2ast_0.4.tar.gz(r-4.4-noble)
ast2ast_0.4.tgz(r-4.4-emscripten)ast2ast_0.4.tgz(r-4.3-emscripten)
ast2ast.pdf |ast2ast.html
ast2ast/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

abstract-syntax-treecc-plus-plusexpression-templatematrixrcpptranspilervector

1 exports 33 stars 3.39 score 18 dependencies 2 dependents 11 scripts 345 downloads

Last updated 6 days agofrom:df7b1b5daf. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 12 2024
R-4.5-win-x86_64OKSep 12 2024
R-4.5-linux-x86_64OKSep 12 2024
R-4.4-win-x86_64OKSep 12 2024
R-4.4-mac-x86_64OKSep 12 2024
R-4.4-mac-aarch64OKSep 12 2024
R-4.3-win-x86_64OKSep 12 2024
R-4.3-mac-x86_64OKSep 12 2024
R-4.3-mac-aarch64OKSep 12 2024

Exports:translate

Dependencies:clicodetoolscpp11crayongluelifecyclelobstrmagrittrprettyunitspryrpurrrR6RcppRcppArmadillorlangstringistringrvctrs

Detailed Documentation

Rendered fromDetailedDocumentation.Rmdusingknitr::rmarkdownon Sep 12 2024.

Last update: 2024-07-03
Started: 2022-01-14

Information for package authors

Rendered fromInformationForPackageAuthors.Rmdusingknitr::rmarkdownon Sep 12 2024.

Last update: 2024-07-03
Started: 2022-01-31