/ usr / bin / texi2dvi:无法创建目录

时间:2023-02-05 23:39:55

After upgrading Ubuntu from 14.04 to 16.04, whenever I use

每当我使用时,将Ubuntu从14.04升级到16.04

knit2pdf(input="ABC.Rnw", quiet = TRUE)

in RStudio Version 0.99.1197, I get the following error:

在RStudio版本0.99.1197中,我收到以下错误:

processing file: ./202Analysis.Rnw Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : Running 'texi2dvi' on 'ABC.tex' failed. Messages: mkdir: cannot create directory ‘Yaseen/XYZ’: No such file or directory /usr/bin/texi2dvi: cannot create directory: Yaseen/XYZ

处理文件:./202Analysis.Rnw texi2dvi中的错误(file = file,pdf = TRUE,clean = clean,quiet = quiet,:'ABC.tex'上运行'texi2dvi'失败。消息:mkdir:无法创建目录'Yaseen / XYZ':没有这样的文件或目录/ usr / bin / texi2dvi:无法创建目录:Yaseen / XYZ

Edited

编辑

My directory ‘Yaseen/XYZ STU’ is containing spaces. Everything works fine after removing these spaces. However the same code was working fine with Ubuntu 14.04. How can I make this (directory names containing spaces) workable with Ubuntu 16.04?

我的目录'Yaseen / XYZ STU'包含空格。删除这些空格后,一切正常。但是相同的代码在Ubuntu 14.04上运行良好。如何使这个(包含空格的目录名)适用于Ubuntu 16.04?

Edited 2

编辑2

This link says:

这个链接说:

To build the PDF documentation, you will need a version of TeX Live or texinfo that includes texi2dvi (BEWARE: recent TeX Live, and some texinfo RPMs, do NOT include texi2dvi).

要构建PDF文档,您需要一个包含texi2dvi的TeX Live或texinfo版本(BEWARE:最近的TeX Live,以及一些texinfo RPM,不包括texi2dvi)。

1 个解决方案

#1


0  

I agree with the previous comments in that the space in the directory seems to be the culprit.

我同意之前的评论,因为目录中的空间似乎是罪魁祸首。

Have you tried escaping the whitespace in your output directory?

您是否尝试转义输出目录中的空白?

knit2pdf(input="ABC.Rnw", quiet = TRUE, output = "Yaseen/XYZ\ STU")

#1


0  

I agree with the previous comments in that the space in the directory seems to be the culprit.

我同意之前的评论,因为目录中的空间似乎是罪魁祸首。

Have you tried escaping the whitespace in your output directory?

您是否尝试转义输出目录中的空白?

knit2pdf(input="ABC.Rnw", quiet = TRUE, output = "Yaseen/XYZ\ STU")