[ESS-bugs] ESS[R] file-remote-p: Wrong type argument: stringp, nil

Sparapani, Rodney rsparapa at mcw.edu
Sat Sep 8 00:16:29 CEST 2012


ess-eval-visibly-p is nil

C-u C-c C-b ...
> require(Rcpp)
Loading required package: Rcpp
> require(inline)
Loading required package: 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")
file6da675399df.cpp: In function  SEXPREC* file6da675399df(SEXPREC*, SEXPREC*) :
file6da675399df.cpp:32: error: cannot convert  Rcpp::stats::Q0<14, true, Rcpp::Vector<14> >  to  double  in initialization
make: *** [file6da675399df.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 file6da675399df( SEXP arg1, SEXP arg2) ;
 24: }
 25: 
 26: // definition
 27: 
 28: SEXP file6da675399df( 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! file6da675399df.cpp: In function  SEXPREC* file6da675399df(SEXPREC*, SEXPREC*) :
file6da675399df.cpp:32: error: cannot convert  Rcpp::stats::Q0<14, true, Rcpp::Vector<14> >  to  double  in initialization
make: *** [file6da675399df.o] Error 1
In addition: Warning message:
running command '/opt/local/lib64/R/bin/R CMD SHLIB file6da675399df.cpp 2> file6da675399df.cpp.err.txt' had status 1 
> 
> check2(0.5, 0.5)
Error: could not find function "check2"
> 
> #qnorm(pnorm(a, 0., 1.)+runif(1, 0., 1.)*(pnorm(b)-pnorm(a)))
> 

C-c C-b ...
> > + + + + > >

At this point, typing C-g doesn't do anything.  The *R* buffer is just frozen
with the cursor blinking.
________________________________________
From: Vitalie Spinu [spinuvit at gmail.com]
Sent: Friday, September 07, 2012 4:36 PM
To: Sparapani, Rodney
Cc: ess-bugs at r-project.org
Subject: Re: [ESS-bugs] ESS[R] file-remote-p: Wrong type argument: stringp, nil

  >> Rodney Sparapani <rsparapa at mcw.edu>
  >> on Fri, 07 Sep 2012 16:28:26 -0500 wrote:

  > On 09/07/2012 04:13 PM, Vitalie Spinu wrote:
  >> That is very bad. The worst part, is that I cannot reproduce anything.
  >>
  >> Does it happen with both visible and invisible evaluation? (C-u C-c C-b)

  > It works with C-u C-c C-b

 I really have to get it word by word from you ;)

So, what is C-u is it visible or invisible? In other words what is the
value of ess-eval-visibly-p?

It looks like it is the visible evaluation which you have trouble
with. But I am still not fully understanding what you see. Can you
please paste the output of both C-u C-c C-b and C-c C-b?

Do you have to C-g to stop the C-c C-b evaluation?

    Vitalie



More information about the ESS-bugs mailing list