[Bioc-devel] Sweave and integers specified as 0x...

Joern Toedling toedling at ebi.ac.uk
Wed May 28 16:01:50 CEST 2008


Hello,
you could use the Sweave option keep.source=TRUE for that code chunk, 
which would probably preserve the hex notation.
Regards,
Joern

Crispin Miller wrote:
> Hi,
> I have a slight, I think, Sweave issue I'm hoping someone can help me
> with... 
>
>
> I have a function that takes an integer as a parameter, that I want to
> specify in hex using 0x...
>
> e.g. 0xAABBCC
>
> I'm finding that this is being translated back into a 'normal' integer (e.g.
> 11189196) in the finished document so that, for example, if I was to write
> the following:
>  
> <<echo=TRUE>>=
>  my.fun(0xAABBCC)
> @
>
> It appears in my assembled .pdf file as:
>
>  > my.fun(11189196)
>
> Any ideas would be much appreciated -- I know I could specify it as a
> string, but I'd like to avoid that if possible...
>
>
> Crispin 
> --------------------------------------------------------
>



More information about the Bioc-devel mailing list