Compile C code

# is gcc there?
Sys.which('gcc')

Does engine = 'c' work?

void square(double *x) {
  *x = *x * *x;
}

Test the square() function:

.C('square', 9)
.C('square', 123)


Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on May 20, 2021, 5:08 p.m.