Home

Awesome

Rmath-julia

CI

This is a slightly modified version of the standalone Rmath library from R, built to be used with the Rmath.jl Julia package.

The main difference is that it is built to allow defining custom random number generating functions via C function pointers (see include/callback.h). When using the library, these should be defined before calling any of the random functions.

Build instructions

Rmath-julia requires GNU Make (https://www.gnu.org/software/make). Just run make to compile the library.

Updating

To update to the latest version of R, bump the RVERSION file, and run make update. Some additional manual changes to the headers may be necessary: these should go in include/Rconfig.h (this would typically be generated by autotools, but we try to simplify the build process). Please also check that declarations with _Thread_local are not dropped as part of the update, see https://github.com/JuliaStats/Rmath-julia/pull/50.