<div>Hello,</div>
<div> Still got error: </div>
<div> </div>
<div> fx <- cxxfunction( signature(x = "integer", y = "numeric" ) , '<br>+ return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;<br>+ ' ,<font color="#ff0000">verbose = TRUE</font>)<br> >> Program source :</div>
<div> 1 : // includes from the plugin<br> 2 : #include <R.h><br> 3 : #include <Rdefines.h><br> 4 : #include <R_ext/Error.h><br> 5 : <br> 6 : <br> 7 : // user includes<br> 8 : <br> 9 : <br>
10 : // declaration<br> 11 : extern "C" {<br> 12 : SEXP file8616435( SEXP x, SEXP y) ;<br> 13 : }<br> 14 : <br> 15 : // definition<br> 16 : <br> 17 : SEXP file8616435( SEXP x, SEXP y ){<br> 18 : <br> 19 : return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;<br>
20 : <br> 21 : Rf_warning("your C++ program does not return anything"); <br> 22 : return R_NilValue ; <br> 23 : }<br> 24 : <br> 25 : <br><font color="#000099"><strong>Compilation argument:<br> </strong></font><a href="file://in-fs1/UserDocuments/PARAM~1.JEE/MYDOCU~1/R/R-211~1.1/bin/R"><font color="#000099"><strong>\\In-fs1\UserDocuments\PARAM~1.JEE\MYDOCU~1\R\R-211~1.1/bin/R</strong></font></a><font color="#000099"><strong> CMD SHLIB file8616435.cpp <br>
'sh' is not recognized as an internal or external command,<br>operable program or batch file.</strong></font></div>
<div><strong><font color="#000099"></font></strong> </div>
<div><strong><font color="#ff0000">ERROR(s) during compilation: source code errors or compiler configuration errors!</font></strong></div>
<div>Program source:<br> 1: // includes from the plugin<br> 2: #include <R.h><br> 3: #include <Rdefines.h><br> 4: #include <R_ext/Error.h><br> 5: <br> 6: <br> 7: // user includes<br> 8: <br> 9: <br>
10: // declaration<br> 11: extern "C" {<br> 12: SEXP file8616435( SEXP x, SEXP y) ;<br> 13: }<br> 14: <br> 15: // definition<br> 16: <br> 17: SEXP file8616435( SEXP x, SEXP y ){<br> 18: <br> 19: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;<br>
20: <br> 21: Rf_warning("your C++ program does not return anything"); <br> 22: return R_NilValue ; <br> 23: }<br> 24: <br> 25: <br>Error in compileCode(f, code, language = language, verbose = verbose) : <br>
Compilation ERROR, function(s)/method(s) not created!<br></div>
<div> </div>
<div>Param<br><br></div>
<div class="gmail_quote">On Wed, Jul 21, 2010 at 8:19 PM, Davor Cubranic <span dir="ltr"><<a href="mailto:cubranic@stat.ubc.ca">cubranic@stat.ubc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You should probably try 'verbose = TRUE'.<br><font color="#888888"><br>Davor<br></font>
<div class="im"><br>On July 21, 2010 06:44:05 am param jeet wrote:<br>> Hello Mr. Romain,<br>> Thanks for replying. Yes it is window. How to check R is correctly<br>> installed?<br>> Even with verbose it does not work. It give the same error. I am<br>
> printing sessionInfo() result and cxxfunction with verbose below.<br></div>[...]<br>
<div class="im">> fx <- cxxfunction( signature(x = "integer", y = "numeric" ) , '<br>> + return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;<br>> + ' ,verbose = FALSE)<br>> ERROR(s) during compilation: source code errors or compiler<br>
> configuration errors!<br></div>[...]<br></blockquote></div><br>