Skip to content
Prev 139793 / 398506 Next

invalid \uxxxx sequence while trying to create a package

On 18/03/2008 5:17 PM, Charles Annis, P.E. wrote:
The \uxxxx sequences are Unicode characters.  The xxxx are supposed to 
be hexadecimal digits.  So you might have something like

cat("\u00B7")

to display a dot.  "Invalid" means it's not recognized, or not well-formed.

So what I'd suggest is to search your source code for \u, and see if you 
inadvertantly included this for some other purpose.  Alternatively, it's 
possible something has translated a non-Ascii character into a \uxxxx 
sequence; I don't know what might have done that.

If none of that works, you could try reporting on what versions of 
everything you're using.  You didn't mention that yet.  And if they are 
all currrent versions (R 2.6.2, Rtools 2.7) then I guess you'll just 
have to divide and conquer: cut out half the source code and see if you 
still get the error.  If so, cut it again, if not, look in the other half.

Duncan Murdoch