Skip to content
Prev 43740 / 63424 Next

Encoding errors in Rd files

On 24/07/2012 21:08, steven mosher wrote:
How to handle those is in 'Writing R Extensions': basically convert to 
UTF-8 and mark them as UTF-8.
Without the actual file we can do little.  The message means that 
something in the manual inputs (and it could be the DESCRIPTION file or 
an Rd file) contains a character not known to LaTeX.  Most likely it is 
simply not a UTF-8 character, but it could also be outside LaTeX's gamut.

Normally the LaTeX log (which is in the check output) is more revealing: 
you can also try this part alone with R CMD Rd2pdf (and R CMD Rd2pdf 
--no-description often points the finger at the DESCRIPTION file).
Assuming this is not something esoteric, UTF-8 is the most comprehensive 
choice, but LaTeX's UTF-8 coverage (and that of the fonts used) is 
heavily biased to Western European scripts.  So for example for 
Lithuanian you may want to choose something else (Latin-7?).