诊断R包构建警告:“创建PDF版本时的LaTeX错误” [英] Diagnosing R package build warning: "LaTeX errors when creating PDF version"

查看:151
本文介绍了诊断R包构建警告:“创建PDF版本时的LaTeX错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

建立包裹时,我收到以下警告:

When building a package, I received the following warning:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.

我不知道如何开始诊断这个。有没有一个工具告诉我的.Rd文件的问题在哪里?

I have no idea how to even begin diagnosing this. Is there a tool that tells me what .Rd file the problem is in?

在检查文档步骤中,我没有任何关于我的Rd文件的警告....

I get no warnings about any of my Rd files in the checking documentation step....

推荐答案

尝试 R CMD Rd2pdf mypackage 创建手册,还设置 - 不干净选项来保留临时文件。这应该允许您调试LaTeX代码触发错误。

Try R CMD Rd2pdf mypackage to create the manual, and possibly also set the --no-clean option to keep the temporary files. This should allow you to debug the LaTeX code triggering the error.

这篇关于诊断R包构建警告:“创建PDF版本时的LaTeX错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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