This repository contains the code neccessary to run Copy and Patch JIT for R.
- Clone with
git clone --recurse-submodules - Navigate to
/external/rsh/external/R/and run../../tools/build-gnur.sh .to install custom R environment - Navigate to
/rcp/and runmaketo install the project - Test it by running
make run - Load the package with
library(rcp) - Compile any function with
copy_patched_result = rcp_cmpfun(function_to_compile, options = list(optimize = 3)) - Run the result as a function itself (for example
copy_patched_result())