inline function code doesn't compile
问题 I am trying to experiment with the inline library. I tried the first example given at http://adv-r.had.co.nz/C-interface.html library(inline) add <- cfunction(signature(a = "integer", b = "integer"), " SEXP result; PROTECT(result = allocVector(REALSXP, 1)); REAL(result)[0] = asReal(a) + asReal(b); UNPROTECT(1); return(result); ") I get the following error: Warning message: running command 'make -f "C:/PROGRA~1/R/R-30~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-30~1.3/share/make/winshlib.mk"