Search unicode character in R package/.Rd file

房东的猫 提交于 2021-01-28 05:14:42

问题


How can I search for a specific unicode character in an R package or a specific file (I am using the RStudio IDE).

I am trying to submit a package to CRAN. All checks pass except for:

W  checking PDF version of manual (49.5s)
   LaTeX errors when creating PDF version.
   This typically indicates Rd problems.
   LaTeX errors found:
   ! Package inputenc Error: Unicode character  (U+008D)
   (inputenc)                not set up for use with LaTeX.

So when all Rd files are compiled to one pdf there seems to be a problematic character. To fix this I need to go through all my .Rd files and find character U+008D, the reverse line feed character).

Since it is sort of a sneaky character, I am not sure if the RStudio editor even displays it.

Any ideas?

Notes:

  • I have no control over the latex engine, as the error occurs on one of CRANs machines

回答1:


Although this is not a direct answer to my question, I'll answer to explain where the error occured.

The problem was a bibtex entry. I'm using the Rdpack package to include bibtex entries in my .Rd files.

One of the entries had a symbol that bibtex didnt like (some accent character). Removing the character in the bibtex file fixed it.



来源:https://stackoverflow.com/questions/60901844/search-unicode-character-in-r-package-rd-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!