针织问题.Rnw文件

时间:2016-02-07 11:31:55

标签: r knitr

我必须设置一台新计算机并使用Ubuntu 14.04作为正在运行的系统。我遵循了过去运作良好的所有指示。

问题与knit2pdf有关。在使用Rstudio通过.Rnw编译library(knitr)时,pdfLaTeX or XeLaTeX一切正常。因此,例如yihui Beamer .Rnw编译时没有任何PDF问题。使用knit2pdf会产生以下错误:

Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  Running 'texi2dvi' on 'Beamer.tex' failed.
Messages:
tar: Beamer.aux: Cannot utime: Operation not permitted
tar: Beamer.nav: Cannot utime: Operation not permitted
tar: Beamer.out: Cannot utime: Operation not permitted
tar: Beamer.toc: Cannot utime: Operation not permitted

我试图找出问题并遵循一些指示但没有成功:

我重新安装了Ubuntu并尝试了不同的事情

sudo apt-get install texlive-full 

sudo apt-get install texinfo

这里是我电脑的一些细节:

R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS

locale:
 [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C                   LC_TIME=de_DE.UTF-8       
  [4] LC_COLLATE=de_DE.UTF-8     LC_MONETARY=de_DE.UTF-8        LC_MESSAGES=de_DE.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                           LC_ADDRESS=C              
 [10] LC_TELEPHONE=C             LC_MEASUREMENT=de_DE.UTF-8      LC_IDENTIFICATION=C       

 attached base packages:
 [1] stats     graphics  grDevices utils     datasets  methods   base     

 other attached packages:
 [1] rmarkdown_0.9.2 ggplot2_2.0.0   stringi_1.0-1   reshape_0.8.5       reshape2_1.4.1  knitr_1.12.3   

loaded via a namespace (and not attached):
  [1] Rcpp_0.12.3      digest_0.6.9     grid_3.2.3       plyr_1.8.3           gtable_0.1.2     formatR_1.2.1   
 [7] magrittr_1.5     evaluate_0.8     scales_0.3.0     highr_0.5.1          labeling_0.3     tools_3.2.3     
[13] stringr_1.0.0    munsell_0.4.2    colorspace_1.2-6 htmltools_0.3   

0 个答案:

没有答案