[Rd] sQuote() on zero-length inputs

Ben Bolker bbolker at gmail.com
Wed Jan 2 03:02:30 CET 2013


  It's not desperately important, but it would seem more consistent to
me if sQuote(character(0)) or sQuote(NULL) returned character(0) rather
than "‘’" .  This could easily be achieved by putting

if (length(x)==0) return(character(0))

at the beginning ...

  Ben Bolker



More information about the R-devel mailing list