运行R CMD检查后,带有PDF手册的mypackage.Rcheck目录消失 [英] After running R CMD Check, the mypackage.Rcheck directory with PDF manual disappeared

查看:131
本文介绍了运行R CMD检查后,带有PDF手册的mypackage.Rcheck目录消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的笔记本电脑上安装了Rtools v.31和MKTeX2.9,然后构建了我的R包。在我运行R CMD检查后,一个名为mypackage.Rcheck和源文件mypackage_1.x.tar.gz的目录出现,而RStudio构建包函数正在检查的一切,没有警告或错误消息,但最后当它说明(如下),应该包含PDF手册的相应mypackage.Rcheck目录消失了:

I have installed Rtools v.31 and MKTeX2.9 on my laptop before building my R package. 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:


  • 检查PDF版本的手册。 .. OK

  • DONE
    注意:有3个音符。
    详情请参阅
    'C:/.../packages/mypackage.Rcheck / 00check.log'

R CMD检查成功

我认为这可能是Rtools和R之间的版本冲突,因为我使用R13.1.2和Rtools v。 31,其中位于 http://cran.r-project.org/bin/windows / Rtools / 网站,它说图像不冻结(我不明白这是什么意思)。但我试过所有建议的兼容版本对Rtools和R之间,仍然不能得到它的工作。所以我认为这消失了mypackage.RCheck不是由于版本冲突。

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). But I tried all the suggested compatible version pairs between Rtools and R, and still couldn't get it working. So I think this disappearing of mypackage.RCheck is not due to version conflict.

我不认为这是MiKTeX问题,因为显然生成pdf,但是被删除。我也试过在R CMD检查中使用--options,但没有办法强制生成pdf手册,加上pdf生成在一个点。我也在这个网站上阅读一个帖子,建议使用Rutils函数Rd2pdf:R CMD Rd2pdf mypackage,但我不能在Windows上运行,而Rutils包不可用于R13.1.2。

I don't think it's MiKTeX problem because apparently pdf is generated, but was consequently removed. 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. 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.

有人可以建议问题的根源,或者如果他们之前已经看到这个问题,并能够解决它?

can someone suggest the source of the problem or if they have seen this problem before and was able to fix it?

推荐答案

在RStudio:工具 - >全局选项 - >包。有一个设置成功R CMD检查后清理输出。如果选中此项,则会在成功检查后删除package.Rcheck文件夹。如果您取消选中此设置,则不会删除package.Rcheck文件夹,您将在其中找到参考手册pdf。

In RStudio: Tools -> Global Options -> Packages. There is a setting "Cleanup output after successful R CMD Check". If this is checked it removes the package.Rcheck folder after a successful check. If you uncheck this setting, the package.Rcheck folder is not removed and you will find the reference manual pdf there.

这篇关于运行R CMD检查后,带有PDF手册的mypackage.Rcheck目录消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆