[R] Unwanted unicode - solved
Therneau, Terry M., Ph.D.
therneau at mayo.edu
Thu Jun 4 23:20:10 CEST 2015
Thanks to all. The suggestion below by Marc Schwarz (the second I tried) showed the
problem. One of the references in one of the files had been pasted in and had a funky
dash in its "111-196" page number. It looked just fine in my emacs window so I hadn't
picked it up. There are 90 .Rd files so this saved me substantial time.
Terry T.
On 06/04/2015 03:00 PM, Marc Schwartz wrote:
> On Jun 4, 2015, at 12:56 PM, Therneau, Terry M., Ph.D. <therneau at mayo.edu> wrote:
>>
>> I'm checking the survival package and get the following error. How do I find the offending line? (There are a LOT of files in the man directory.)
>>
>> Terry T.
>>
>> ------------------
>>
>> * checking PDF version of manual ... WARNING
>> LaTeX errors when creating PDF version.
>> This typically indicates Rd problems.
>> LaTeX errors found:
>> ! Package inputenc Error: Unicode char \u8:‑ not set up for use with LaTeX.
>
>
> Terry,
>
> One possible option:
>
> require(tools)
>
> sapply(list.files(path = “Path/To/Your/RD/Files", pattern = ".Rd"),
> showNonASCIIfile)
>
> See ?list.files and ?showNonASCIIfile
>
> Regards,
>
> Marc Schwartz
>
More information about the R-help
mailing list