December 2017
Beginner to intermediate
470 pages
12h 29m
English
R also supports Just-in-time (JIT) compilation. When JIT compilation is enabled, R will automatically byte code compile any code that is executed without explicitly having called one of the compile functions. To activate JIT compilation, use the enableJIT() function.
The level argument tells R how much code to compile before execution; 0 disables JIT, 1 compiles functions before their first use, 2 also compiles functions before they are duplicated, and 3 also compiles loops before they are executed:
library(compiler) enableJIT(level = 3)