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.
If you use emacs you can use 'M-x find-grep-dired', select the directory, and search for '?' (maybe won't work on Windows, I'm not sure). If you are on Linux (OS X?) you can run the equivalent find . \( -type f -exec grep -q -e \? \{\} \; \) -ls in a terminal. Best, Ista On Thu, Jun 4, 2015 at 1: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. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
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
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 >