Skip to content

Commit 8f4fc55

Browse files
author
hornik
committed
Tweaks for c88178.
git-svn-id: https://svn.r-project.org/R/trunk@88180 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0039b4c commit 8f4fc55

File tree

1 file changed

+6
-1
lines changed
  • src/library/tools/R

1 file changed

+6
-1
lines changed

src/library/tools/R/Rd.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,12 @@ function(x)
868868
out <<- rbind(out, val)
869869
} else if(identical(tag, "\\linkS4class")) {
870870
arg <- as.character(e[[1L]])
871-
val <- c(arg, sprintf("=%s-class", arg))
871+
opt <- attr(e, "Rd_option")
872+
val <- if(is.null(opt))
873+
c(arg, sprintf("=%s-class", arg))
874+
else
875+
c(sprintf("%s-class", arg),
876+
as.character(opt))
872877
out <<- rbind(out, val)
873878
}
874879
if(is.list(e)) lapply(e, recurse)

0 commit comments

Comments
 (0)