Skip to content

Commit 769758e

Browse files
author
smeyer
committed
comments
git-svn-id: https://svn.r-project.org/R/trunk@87327 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 215a37c commit 769758e

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/library/tools/R/Rd2HTML.R

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818

1919
## also used by Rd2latex, but only 'topic' and 'dest'
2020
get_link <- function(arg, tag, Rdfile) {
21-
## 'topic' is the name to display, 'dest' is the topic to link to
22-
## optionaly in package 'pkg'. If 'target' is set it is the file
23-
## to link to in HTML help
24-
25-
## \link[=bar]{foo} means shows foo but treat this as a link to bar.
26-
## \link[pkg]{bar} means show bar and link to *file* bar in package pkg
27-
## \link{pkg:bar]{foo} means show foo and link to file bar in package pkg.
21+
## 'topic' is the text to display (used by Rd2latex, also as \index entry),
22+
## 'dest' is the topic to link to (unless for option [pkg:bar]).
23+
## Package-anchored links have non-NULL 'pkg' and 'targetfile',
24+
## where the latter is the topic/file to link to in HTML help.
25+
26+
## \link{foo}: show and link to topic foo.
27+
## \link[=bar]{foo} means shows foo but treat this as a link to *topic* bar.
28+
## \link[pkg]{bar} means show bar and link to topic/file bar in package pkg.
29+
## \link[pkg:bar]{foo} means show foo and link to topic/file bar in package pkg.
2830
## As from 2.10.0, look for topic 'bar' if file not found.
2931
## As from 4.1.0, prefer topic 'bar' over file 'bar' (in which case 'targetfile' is a misnomer)
3032

src/library/tools/R/install.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,6 +2862,7 @@ if(FALSE) {
28622862
sep = "", file=conn)
28632863
if (any(file.exists(file.path(outDir,
28642864
c("NEWS", "NEWS.Rd", "NEWS.md")))))
2865+
## FIXME: link target needs adjustment for static help
28652866
cat('<li><a href="../NEWS">Package NEWS</a>.</li>\n',
28662867
sep = "", file=conn)
28672868

0 commit comments

Comments
 (0)