Displaying 2 results from an estimated 2 matches for "setcmethod".
Did you mean:
getmethod
2007 Jul 23
1
CHAR(STRING_ELT( - OK but CHAR(asChar(STRING_ELT( - not, why?
...1 <- "
for (int i = 0; i < LENGTH(x); i++ )
Rprintf(\"%s\\n\", CHAR(STRING_ELT(x, i)));
return R_NilValue;
"
code2 <- "
for (int i = 0; i < LENGTH(x); i++ )
Rprintf(\"%s\\n\", CHAR(asChar(STRING_ELT(x, i))));
return R_NilValue;
"
setCMethod(c("p1","p2"), list(sig,sig), list(code1,code2))
#----------------------------------------------------------
p1(c("str1", "str2"))
# str1
# str2
# NULL
p2(c("str1", "str2"))
# NA
# NA
# NULL
--
Dr. Oleg Sklyar * EBI-EMBL, Cambridge CB...
2007 Jul 03
0
'inline' package update
Dear all,
the 'inline' package was updated to version 0.2.2 with the following
changes:
- functions declared using 'cfunction' can now be saved, the code
is recompiled when the object is loaded (not yet implemented
for setCMethod)
- full path to the R binary is used for compilation allowing for
the use of the correct R version when several are installed
The update has been submitted to CRAN and should appear shortly.
Meanwhile, the package is available from
http://www.ebi.ac.uk/~osklyar/inline
Best,
Oleg
--
Dr Ol...