如何在乳胶中创建 R 文档文件(.Rd)? [英] How to create R documentation file (.Rd) in latex?

查看:18
本文介绍了如何在乳胶中创建 R 文档文件(.Rd)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以为简单的 R 函数创建 R 文档文件?

Is there a simple way to create R documentation file for simple R functions?

我知道我可以在 R-studio 中编辑 .Rd 文件并在 HTML 文件中预览它.但是如何把它放到latex中进行编辑和预览呢?是否有一些乳胶包产生 R 文档格式?

I know I can edit a .Rd file in R-studio and preview it in HTML file. But how to put it into latex to edit and preview? Is there some latex package producing R documentation format?

推荐答案

工具包中有Rd2latex函数,可以将.Rd格式转换为LaTeX格式.这将让您预览 LaTeX 中的文档.但是,这不允许将对 LaTeX 文档的编辑转换回 .Rd 文档.

There is the Rd2latex function in the tools package that will convert from the .Rd format to LaTeX format. This will let you preview the documentation in LaTeX. However this does not allow converting edits to the LaTeX document back to the .Rd document.

这篇关于如何在乳胶中创建 R 文档文件(.Rd)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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