简体   繁体   English

运行R CMD Check后,带有PDF手册的mypackage.Rcheck目录消失了

[英]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目录消失了:

  • checking PDF version of manual ... OK 检查手册的PDF版本......好的
  • DONE NOTE: There were 3 notes. 完成注意:有3个音符。 See 'C:/.../package/mypackage.Rcheck/00check.log' for details. 有关详细信息,请参阅“C:/.../ package / mypackage.Rcheck / 00check.log”。

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.

相关问题 如何在通过“ .R”-&gt;(roxygen2)“ .Rd”-&gt;(R CMD检查mypackage)“ .PDF”创建的.PDF文件的文本中插入空格? - How to insert space in text in a .PDF file created via “.R” -> (roxygen2) “.Rd” -> (R CMD check mypackage) “.PDF”? R CMD Check 未完成“检查 PDF 版本的手册...”步骤 - R CMD Check does not finish the step "Checking PDF version of manual ..." R使用R CMD检查创建参考手册 - R create reference manual with R CMD check 套件无法通过R CMD检查&#39;套件 <mypackage> 没有为arch = i386&#39;安装,为什么会发生这种情况? - Package failing to pass R CMD check 'package <mypackage> is not installed for arch =i386', any reason why this would happen? R cmd检查在R 3.1.3升级后没有在mac上找到texi2pdf - R cmd check not locating texi2pdf on mac after R 3.1.3 upgrade R CMD 检查,'--no-manual':如何更改此选项? - R CMD Check, '--no-manual': How to change this option? 在 R CMD 检查中禁用构建 PDF - Disable building PDF in an R CMD check R CMD检查不在Rtools目录中寻找gcc - R CMD check not looking for gcc in Rtools directory Github 上的 R-CMD-check 失败,存在“配置”但不可执行——请参阅“R 安装和管理手册” - R-CMD-check on Github fails with 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' 运行R CMD检查时未找到R包测试 - R package tests are not found when running R CMD check
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM