Displaying 2 results from an estimated 2 matches for "rcpp_rothc_modul".
Did you mean:
rcpp_rothc_module
2011 Jan 26
1
Problem with "setMethod" in R package
...;plot" is dispatched correctly
> showMethods("plot")
Function: plot (package graphics) # now "plot" from graphics shows up
x="ANY", y="ANY" # why was it missing before?
x="Rcpp_rothC", y="missing"
######### FILE rcpp_rothC_module.h #########
class rothC { ... }
######### FILE rcpp_rothC_module.cpp #########
using namespace Rcpp ;
RCPP_MODULE(rothC) {
class_<rothC>("rothC")
.constructor()
...
}
######### FILE rcpp_rothC.R #########
Rcpp_rothC.plot <- function(x,y,...) { ... }
##########...
2011 Jan 23
0
setMethod call in package code using Rcpp
...plot" is dispatched correctly
> showMethods("plot")
Function: plot (package graphics) # now "plot" from graphics shows up
x="ANY", y="ANY" # why was it missing before?
x="Rcpp_rothC", y="missing"
######### FILE rcpp_rothC_module.h #########
class rothC { ... }
######### FILE rcpp_rothC_module.cpp #########
using namespace Rcpp ;
RCPP_MODULE(rothC) {
class_<rothC>("rothC")
.constructor()
...
}
######### FILE rcpp_rothC.R #########
Rcpp_rothC.plot <- function(x,y,...) { ... }
##########...