nojit {jit}R Documentation

Inhibit just-in-time compilation of a variable

Description

Inhibit just-in-time compilation of a variable.

Usage

  nojit(sym = NULL)

Arguments

sym the variable

Details

The JIT compiler will not allow you to change the type or length of a jitted variable. Sometimes this can be a nuisance, and if so you can use nojit(variable) to inhibit jitting of the specified variable.

Any error message (not necessarily issued by the jitter) disables jitting and thus clears all nojit settings i.e. if there is an error message you will have to re-nojit your variable.

Value

A character vector containing the symbols marked as not jittable, if any, else NULL.

See Also

jit
is.ra

Examples

## Not run: 
jit(1); x <- 0; y <- 0
nojit(x)         # allows use of "c" below which changes the length of x
for (i in 1:3) {
    x <- c(x,i)  # will not be jitted
    y <- y + 1   # will be jitted
}
nojit(0)
## End(Not run)

[Package jit version 1.0-4 Index]