1

我是 Roxygen 的新手,并使用 Roxygen 来记录我的函数和脚本(我不是在构建包,而是使用包结构以便能够使用 Roxygen)。我使用Rd2HTML函数将 .Rd 转换为 .html。我正在尝试在一个 .Rd 文件中创建指向另一个 .Rd 文件的超链接,并在 .html 文件中维护该链接。

假设我有两个脚本和 .Rd 文件:code1code2. 当我添加\code{\link{code1}}到 roxygen 注释中,code2运行roxygenize("<location of package>")并使用Rd2HTML来构建一个 html 文件时,结果是 html文件在. 换句话说:code1的html文件中没有显示超链接,而是格式化为code返回。添加包名称不能解决问题。code1\code{\link{code1}}code1

谁能解释这种行为(并解决我的问题:))?

详细信息:命名空间文件:

# Generated by roxygen2 (4.1.1): do not edit by hand

export(code1)
export(code2)

描述文件:

Package: Scripts
Type: Package
Title: What the package does (short line)
Version: 0.0.1
Date: 2012-11-12
Author: Who wrote it
Maintainer: Who to complain to <yourfault@somewhere.net>
Description: More about what it does (maybe more than one line)
License: GPL
4

1 回答 1

0

我自己解决了这个问题。我没有安装该软件包,因此找不到任何 .html 链接。

顺便说一句, http: //yihui.name/en/2012/10/build-static-html-help/帮助我轻松构建帮助页面的.html 页面。

于 2015-09-10T12:20:07.353 回答