Skip to content
Prev 5099 / 10988 Next

[Rcpp-devel] Fwd: CRAN package ConConPiWiFun

I have a new problem with my package 
It seems that my example fails on windows devel version and some others. 

According to email below from Prof Brian Ripley 
"running under valgrind does not report a problem" and it crashes while using my "plot method"
Error in plot(CCPWLfunc1$Swap(y)) :
   error in evaluating the argument 'x' in selecting a method for 
function 'plot': Error in .External(list(name = 
"CppMethod__invoke_notvoid", address = <pointer: 0x1c1ff90>,  :
   first argument must be a string (of length 1) or native symbol reference

but there are several preceding example where the "plot methods" work successfully. In addition I tried everything with the R devel version on my computer with windows and got no crash... 
any idea where this comes from ? note that I'm using "RCPP_EXPOSED_CLASS(cplfunction)" 
and I declare the plot method with something starting by:
"setMethod( "plot", signature(x="Rcpp_cplfunction",y="ANY") , function(x,y,...) {  ..." 

maybe I should send a version of my package with no example to pass checks ?
 
Robin

----- Mail transf?r? -----
De: "Prof Brian Ripley" <ripley at stats.ox.ac.uk>
?: CRAN at r-project.org
Cc: "Uwe Ligges" <Uwe.Ligges at r-project.org>, "Robin Girard" <robin.girard at mines-paristech.fr>
Envoy?: Mardi 15 Janvier 2013 17:05:26
Objet: Re: CRAN package ConConPiWiFun
On 15/01/2013 14:38, Uwe Ligges wrote:
I also see failures on Linux boxes.  For example on the Fedora check 
system under R-patched (the same machine for which the results are up 
under R-devel).  OTOH, running under valgrind does not report a problem.
$Breakpoints
[1] -Inf    2    4

$Slopes
[1] -1  2
f^*(y) =inf_x {xy-f(x)}
definite) out of [left,right]
Error in plot(CCPWLfunc1$Swap(y)) :
   error in evaluating the argument 'x' in selecting a method for 
function 'plot': Error in .External(list(name = 
"CppMethod__invoke_notvoid", address = <pointer: 0x1c1ff90>,  :
   first argument must be a string (of length 1) or native symbol reference