Why invent your own function to do the same thing as the builtin
one mkString?
Please discuss C programming questions on the R-devel list *as the posting
guide asks*
On Fri, 15 Jul 2005, mkondrin wrote:
> Tuszynski, Jaroslaw W. wrote:
>
>> Hi,
>>
>> I have a C code which produces array of inte
If you want to install comment attribute on return value set it this way
setAttrib(ans, R_CommentSymbol, charToSexp("Some comment"));
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
Tuszynski, Jaroslaw W. wrote:
>Hi,
>
>I have a C code which produces array of integers and potentially a string,
>and I have problems passing the string out. Here is the relevant part of the
>code:
>
> 1 PROTECT(Ret = allocVector(INTSXP, n));
> 2 ret = (int*) INTEGER(Ret); /* get pointer
Hi,
I have a C code which produces array of integers and potentially a string,
and I have problems passing the string out. Here is the relevant part of the
code:
1 PROTECT(Ret = allocVector(INTSXP, n));
2 ret = (int*) INTEGER(Ret); /* get pointer to R's Ret */
3 for(i=0; i0) {//