2015-12-30 30 views
6

在Ubuntu 14.04與texlive這個,檢查的R包,例如與devtoolscheck()將返回:inconsolata失蹤建設[R小品

LaTeX errors found: 
! LaTeX Error: File `inconsolata.sty' not found. 

Type X to quit or <RETURN> to proceed, 
or enter new name. (Default extension: sty) 

! Emergency stop. 
<read *> 

l.276 ^^M 

! ==> Fatal error occurred, no output PDF file produced! 
+0

搜索 「inconsolata.sty」。 – 2015-12-30 08:06:32

+0

@Pascal首先導致從CTAN下載inconsolata.sty,這是一個壞主意,特別是如果你想要的是R包內置沒有錯誤 – cmbarbu

+0

我從來沒有這樣建議。只需安裝一個Latex發行版。 – 2016-01-02 13:09:14

回答

6

安裝texlive-fonts-extra應該照顧它。

你也可以(雖然可能不會推薦)告訴R不要使用inconsolata。只要改變:

\DeclareOption{inconsolata}{\setboolean{[email protected]@inconsolata}{true}} 

\DeclareOption{inconsolata}{\setboolean{[email protected]@inconsolata}{false}} 

Rd.sty文件。在我安裝它在:

/usr/share/R/share/texmf/tex/latex/Rd.sty 

locate Rd.sty 

應該找到它的任何系統上。

+0

感謝您的第二個解決方案(改變Rd.sty)! incosolate就像1.7GB,我在機場wifi上! – user189035

1

我有Mac OSx並且接受的解決方案對我無效。

這是在我的情況的解決方案,安裝MacTEX都:互聯網https://tug.org/mactex/mactex-download.html

+0

如果使用basictex請參閱:https://gist.github.com/joethorley/b0766f8d03ec542dd62fcd59c1477f77 –