Skip to content

Commit c827c00

Browse files
author
hornik
committed
Use only the package itself and the base packages for Rd xrefs without package anchors when generating static HTML.
git-svn-id: https://svn.r-project.org/R/trunk@88089 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f41c8f6 commit c827c00

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/library/tools/R/install.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,13 +3072,7 @@ if(FALSE) {
30723072
if (!silent) message(" finding HTML links ...", appendLF = FALSE, domain = NA)
30733073
Links <- findHTMLlinks(outDir, level = 0:1)
30743074
if (!silent) message(" done")
3075-
.Links2 <- function() {
3076-
message("\n finding level-2 HTML links ...", appendLF = FALSE, domain = NA)
3077-
Links2 <- findHTMLlinks(level = 2)
3078-
message(" done", domain = NA)
3079-
Links2
3080-
}
3081-
delayedAssign("Links2", .Links2())
3075+
Links2 <- character()
30823076
}
30833077

30843078
## Rd objects may already have been installed.

src/library/tools/R/pkg2HTML.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
## obtained directly from the db, which is useful for non-installed packages.
8282
Links0 <- .build_links_index(Rd_contents(db), basename(pkgdir))
8383
Links <- c(Links0, findHTMLlinks(pkgdir, level = 1))
84-
Links2 <- if (length(xLinks)) xLinks else findHTMLlinks(level = 2)
84+
Links2 <- xLinks
8585

8686
rd2lines <- function(Rd, ...) {
8787
## Rd2HTML() returns output location, which is not useful

0 commit comments

Comments
 (0)