看板 R_Language 關於我們 聯絡資訊
[問題類型]: 各位前輩好,我今天在上傳package到CRAN,但是一直出現下面這個error,拿去 餵狗也沒有看到有解,想請問有沒有人有想法/經驗拜託告訴我 QAQ! 感激ㄅ盡! * 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 ‐ (U+2010) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. * checking PDF version of manual without hyperrefs or index ... ERROR * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 WARNING, 1 NOTE 補充1: 此error和warning只出現在windows平台上,Debian沒有。 補充2: 有用Travis CI測試過,兩個都會pass,以下是.travis.yaml的內容 language: R cache: packages r_check_args: --as-cran matrix: include: - os: linux r: release - os: osx r: release 同時也在本地端consol用 devtools::check(args = c('--as-cran'),manual = TRUE) 也是0 error, 0 warning, 0 note -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.36.84 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1596208852.A.EBC.html
andrew43: 所以文檔中確實沒有U+2010字符嗎(即「‐」)? 07/31 23:25
ChenEye: 感謝樓上 我來搜搜看 另外我想請問 我在網路上好像有看到 07/31 23:33
ChenEye: 可以在r studio透過搜尋regex \x{2010}搜到嗎? 如果是 07/31 23:34
ChenEye: 那我搜過一遍了,還真的沒有... 07/31 23:34
ChenEye: 感謝大大 我用眉蓁姊姊的複製貼上方式搜到了 copy and p 07/31 23:45
ChenEye: aste 萬歲 07/31 23:45
locka: 眉蓁姐姐XDDDD 08/01 00:09
andrew43: 可能是你用的編輯器自作聰明幫你自動U+002D轉U+2010 08/01 01:22