[R] A question in Rinternals.h

PO SU rhelpmaillist at 163.com
Tue Aug 19 17:26:47 CEST 2014




BTW, you say i always send html format email, finally i find that it is my mail server which send mail in html format by default., i should change the format eveytime before sending a mail.......


--

PO SU
mail: desolator88 at 163.com 
Majored in Statistics from SJTU



At 2014-08-19 06:28:06, "Prof Brian Ripley" <ripley at stats.ox.ac.uk> wrote:
>Please do read the posting guide (clearly you have not as you sent HTML).
>
>- This is the wrong list: it is a question about C code.
>
>- In any case, it is about C.  The R Internals manual may help you, 
>otherwise you need to talk to a local C adviser.  (Even if this were not 
>off-topic here, we do not know what it is you cannot 'figure out' and 
>you need to interact with someone.)
>
>On 19/08/2014 11:14, PO SU wrote:
>>
>>
>> Dear Rusers,
>>      when i am reading Rinternals.h file, i can't understand the following codes in lines 395-407:
>>
>>
>> #define CHAR(x)R_CHAR(x)
>> const char *(R_CHAR)(SEXP x);
>> /* Various tests with macro versions below */
>> Rboolean (Rf_isNull)(SEXP s);
>> Rboolean (Rf_isSymbol)(SEXP s);
>> Rboolean (Rf_isLogical)(SEXP s);
>> Rboolean (Rf_isReal)(SEXP s);
>> Rboolean (Rf_isComplex)(SEXP s);
>> Rboolean (Rf_isExpression)(SEXP s);
>> Rboolean (Rf_isEnvironment)(SEXP s);
>> Rboolean (Rf_isString)(SEXP s);
>> Rboolean (Rf_isObject)(SEXP s);
>>
>>
>> I can't figure out what are "R_CHAR,Rf_isNull....Rf_isObject" meaning, they seem like function declarations, Rf_XXX maybe function pointers?
>> I need your help.
>>
>>
>>
>>
>> --
>>
>> PO SU
>> mail: desolator88 at 163.com
>> Majored in Statistics from SJTU
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>-- 
>Brian D. Ripley,                  ripley at stats.ox.ac.uk
>Emeritus Professor of Applied Statistics, University of Oxford
>1 South Parks Road, Oxford OX1 3TG, UK


More information about the R-help mailing list