[Rd] "warning: assignment discards qualifiers from pointer target type"

Simon Urbanek simon.urbanek at r-project.org
Thu Jun 9 02:35:34 CEST 2011


On Jun 8, 2011, at 8:32 PM, oliver wrote:

> On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote:
> [...]
>> OK, I looked at this now.
>> 
>> LENGTH() checks the length of the vector.
>> 
>> Good to know this.
>> 
>> So the problem of a vector of length 0 can be with any arguments of type SEXP,
>> hence I will need to check ANY arg on it's length.
>> 
>> This is vital to stability under any situation.
>> 
>> Thanks for this valuable hint!
>> 
>> I will add checks for all my SEXP-args.
> [...]
> 
> Hey, LENGTH() does not work with String-vectors! :(
> 

Of course it does ...



More information about the R-devel mailing list