Skip to content

anonymous /gist:5785498

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Error from compiling f4 function
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1: #include <R.h>
2: #include <Rdefines.h>
3: #include <R_ext/Error.h>
4:
5:
6: extern "C" {
7: SEXP file11b424fb58f ( SEXP x );
8: }
9:
10: SEXP file11b424fb58f ( SEXP x ) {
11:
12: int imin = 0, imax = Rf_length(x) - 1, imid;
13: while (imax >= imin) {
14: imid = imin + (imax - imin) / 2;
15: if (REAL(x)[imid] >= 0)
16: imax = imid - 1;
17: else
18: imin = imid + 1;
19: }
20: return ScalarInteger(imax + 1);
21:
22: warning("your C program does not return anything!");
23: return R_NilValue;
24: }
Error in compileCode(f, code, language, verbose) :
Compilation ERROR, function(s)/method(s) not created!
In addition: Warning message:
running command 'F:/R/R-30~1.1/bin/i386/R CMD SHLIB file11b424fb58f.cpp 2> file11b424fb58f.cpp.err.txt' had status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.