[ESS-bugs] ESS[R] file-remote-p: Wrong type argument: stringp, nil
Vitalie Spinu
spinuvit at gmail.com
Fri Sep 7 21:35:06 CEST 2012
>> Rodney Sparapani <rsparapa at mcw.edu>
>> on Fri, 7 Sep 2012 14:18:20 -0500 wrote:
> In *Messages* I'm seeing stuff like...
> Eval buffer
> file-remote-p: Wrong type argument: stringp, nil
I don't see that. Are using ess-remote? Try to toggle the debugger on
and see what is going on.
> Maybe this is related to the problem that I am having with r5072
> If I do a C-c C-b on the following .R buffer ...
> require(Rcpp)
> require(inline)
> str <- '
> NumericVector a=as<NumericVector>(arg1), b=as<NumericVector>(arg2);
> double x= qnorm(a, b, 1.);
> return wrap(x);
> '
> check2 <- cxxfunction(signature(arg1="numeric", arg2="numeric"), str,
> plugin="Rcpp")
> check2(0.5, 0.5)
> It runs (at least the first 3 statements do), but it doesn't echo
> anything from the last 2 statements. Can someone try this too?
I am getting errors on compilations, so check2 is not defined at all
Vitalie
> > > > > + + + + > > +
file577216cb2b53.cpp: In function ‘SEXPREC* file577216cb2b53(SEXP, SEXP)’:
file577216cb2b53.cpp:32:25: error: cannot convert ‘Rcpp::stats::Q0<14, true, Rcpp::Vector<14> >’ to ‘double’ in initialization
make: *** [file577216cb2b53.o] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3:
4: #include <Rcpp.h>
5:
6:
7: #ifndef BEGIN_RCPP
8: #define BEGIN_RCPP
9: #endif
10:
11: #ifndef END_RCPP
12: #define END_RCPP
13: #endif
14:
15: using namespace Rcpp;
16:
17:
18: // user includes
19:
20:
21: // declarations
22: extern "C" {
23: SEXP file577216cb2b53( SEXP arg1, SEXP arg2) ;
24: }
25:
26: // definition
27:
28: SEXP file577216cb2b53( SEXP arg1, SEXP arg2 ){
29: BEGIN_RCPP
30:
31: NumericVector a=as<NumericVector>(arg1), b=as<NumericVector>(arg2);
32: double x= qnorm(a, b, 1.);
33: return wrap(x);
34:
35: END_RCPP
36: }
37:
38:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! file577216cb2b53.cpp: In function ‘SEXPREC* file577216cb2b53(SEXP, SEXP)’:
file577216cb2b53.cpp:32:25: error: cannot convert ‘Rcpp::stats::Q0<14, true, Rcpp::Vector<14> >’ to ‘double’ in initialization
make: *** [file577216cb2b53.o] Error 1
In addition: Warning message:
running command '/usr/lib/R/bin/R CMD SHLIB file577216cb2b53.cpp 2> file577216cb2b53.cpp.err.txt' had status 1
> >
Error: could not find function "check2"
>
More information about the ESS-bugs
mailing list