软件包开发:pdf手册和小插图的位置 [英] Package development : location of pdf manual and vignette

查看:79
本文介绍了软件包开发:pdf手册和小插图的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建mypackage时,一切似乎都可以正常工作

When building mypackage, everything seems to work:

library(devtools)
build(vignettes = T, manual = T)

* checking for file ‘/storage/Documents/client/validate/mypackage/DESCRIPTION’ ... OK
* preparing ‘mypackage’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building ‘mypackage_0.1.tar.gz’

[1] "/storage/Documents/client/validate/mypackage_0.1.tar.gz"

但是我找不到PDF手册和小插图.

However I can't find neither the PDF manual nor the vignette.

小插图:遵循操作流程,如此处所述,使用RStudio/devtools/markdown .但是:

Vignette: followed workflow as described here, using RStudio / devtools / markdown. However:

vignette("mypackage") 警告信息: 找不到小插图"mypackage"

vignette("mypackage") Warning message: vignette ‘mypackage’ not found

对于PDF手册,我已经尝试过,但没有成功.

For the PDF manual I have tried this, but no success.

所以,我的问题是:在哪里可以找到PDF手册和插图?

So, my question is: where can I find the PDF manual and the vignette?

推荐答案

我可以先找到

C:\Users\USERNAME\AppData\Local\Temp\

.您可能必须启用隐藏的文件夹和文件才能看到此信息.在此文件夹中,有许多临时文件夹以及其他类似的东西.按日期排序,然后向下滚动到文件夹所在的位置.最新的是您可能想要的一种.带有"Rtmp"前缀的是R创建的.

within the Windows folder directory. You may have to enable hidden folders and files to see this. Within this folder are many many temp folders and other such things. Sort by date, and scroll down to where the folders are. The most recent one is the one you probably want; the ones that prefix with a "Rtmp" are the ones created by R.

在(可能是)最新的Rtemp[blah]中应该是一个名为PACKAGE.Rcheck的文件夹.假设已成功创建PACKAGE.Rcheck文件夹,则应为手册pdf PACKAGE-manual.pdf.

Within the (probably) most recent Rtemp[blah] should be a folder entitled PACKAGE.Rcheck. In that PACKAGE.Rcheck folder should be the manual pdf PACKAGE-manual.pdf, assuming it was successfully created.

我的计算机上的完整路径字符串(用于此打包创建运行)为

The full path string on my computer (for this package-creation run) is

C:\Users\USERNAME\AppData\Local\Temp\RtmpG0713j\PACKAGE.Rcheck\PACKAGE-manual.pdf.

在找到正确的文件夹之前,您可能必须搜索几个Rtmp[blah]文件夹.

You might have to search through a couple of Rtmp[blah] folders before you get the right one.

这篇关于软件包开发:pdf手册和小插图的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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