[英]After running R CMD Check, the mypackage.Rcheck directory with PDF manual disappeared
I have installed Rtools v.31 and MKTeX2.9 on my laptop before building my R package. 在构建我的R包之前,我已经在笔记本电脑上安装了Rtools v.31和MKTeX2.9。 After I ran R CMD check, a directory called mypackage.Rcheck and the source file mypackage_1.x.tar.gz appeared, and while RStudio build package function is checking everything, there is no warning or error message, but at the end when it said (as follows), the corresponding mypackage.Rcheck directory which is supposed to contain the PDF manual disappeared:
运行R CMD检查后,出现了一个名为mypackage.Rcheck的目录和源文件mypackage_1.x.tar.gz,虽然RStudio构建包函数正在检查所有内容,但没有警告或错误消息,但最后是说(如下),应该包含PDF手册的相应mypackage.Rcheck目录消失了:
R CMD check succeeded R CMD检查成功
I thought it might be a version conflict between Rtools and R because I'm using R13.1.2 and Rtools v.31, where on the http://cran.r-project.org/bin/windows/Rtools/ website, it said the image isn't frozen (which I don't understand what it means). 我认为这可能是Rtools和R之间的版本冲突,因为我使用的是R13.1.2和Rtools v.31,在http://cran.r-project.org/bin/windows/Rtools/网站上,它说图像没有冻结(我不明白这是什么意思)。 But I tried all the suggested compatible version pairs between Rtools and R, and still couldn't get it working.
但我尝试了Rtools和R之间所有建议的兼容版本对,但仍然无法使其正常工作。 So I think this disappearing of mypackage.RCheck is not due to version conflict.
所以我认为mypackage.RCheck的消失不是因为版本冲突。
I don't think it's MiKTeX problem because apparently pdf is generated, but was consequently removed. 我不认为这是MiKTeX问题,因为显然是生成pdf,但因此被删除了。 I also tried using --options in R CMD check, but there is no way to force generation of pdf manual, plus pdf was generated at one point.
我也尝试在R CMD检查中使用--options,但是没有办法强制生成pdf手册,加上pdf是在一个点生成的。 I also read one post on this website, suggesting the use of Rutils function Rd2pdf: "R CMD Rd2pdf mypackage", but I can't run in on windows, and Rutils package is not available for R13.1.2.
我还阅读了本网站上的一篇文章,建议使用Rutils函数Rd2pdf:“R CMD Rd2pdf mypackage”,但我无法在Windows上运行,并且Rutils软件包不适用于R13.1.2。
can someone suggest the source of the problem or if they have seen this problem before and was able to fix it? 有人可以建议问题的根源,或者他们之前是否已经看过这个问题,并且能够修复它吗?
In RStudio: Tools -> Global Options -> Packages. 在RStudio中:工具 - >全局选项 - >包。 There is a setting "Cleanup output after successful R CMD Check".
有一个设置“成功进行R CMD检查后的清理输出”。 If this is checked it removes the package.Rcheck folder after a successful check.
如果选中此选项,则会在成功检查后删除package.Rcheck文件夹。 If you uncheck this setting, the package.Rcheck folder is not removed and you will find the reference manual pdf there.
如果取消选中此设置,则不会删除package.Rcheck文件夹,您可以在那里找到参考手册pdf。
A common problem for mysterious disappearances of files from R tarballs is to accidentally specify that they should be ignored in the .Rbuildignore file. R tarball文件神秘消失的一个常见问题是意外地指定它们应该在.Rbuildignore文件中被忽略。 The lines in that file are regular expressions, so leaving off the anchors ^ and $ can cause them to match more files than you intended.
该文件中的行是正则表达式,因此不使用锚点^和$可以使它们匹配比您预期的文件更多的文件。 For example,
例如,
vig.e
matches vignette.pdf (because there are no anchors to the start and end of the name, and the dot means "any character". 匹配vignette.pdf(因为名称的开头和结尾没有锚点,而点表示“任何字符”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.