Skip to content

Commit 35391ce

Browse files
author
hornik
committed
Tweaks for c88929.
git-svn-id: https://svn.r-project.org/R/trunk@89124 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent b61282f commit 35391ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/library/tools/R/pkg2HTML.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ pkg2HTML <- function(package, dir = NULL, lib.loc = NULL,
169169
## Now to make a file with header + DESCRIPTION + TOC + content + footer
170170

171171
hfcomps <- # should we be able to specify static URLs here?
172-
HTMLcomponents(title = paste0("Help for package ", pkgname), logo = FALSE,
172+
HTMLcomponents(title = sprintf('Package {%s}', pkgname),
173+
headerTitle = paste0("Help for package ", pkgname),
174+
logo = FALSE,
173175
up = NULL, top = NULL,
174176
css = stylesheet,
175177
outputEncoding = outputEncoding,
@@ -202,7 +204,6 @@ pkg2HTML <- function(package, dir = NULL, lib.loc = NULL,
202204
sprintf('<img class="toplogo" src="%s" alt="[logo]">',
203205
if (src.type == "installed") staticLogoPath(pkgname, relative = FALSE)
204206
else staticLogoPath(pkgdir, relative = FALSE, dir = TRUE)),
205-
sprintf('<h1>Package {%s}</h1>', pkgname),
206207
'<h2>Contents</h2>',
207208
'<ul class="menu">',
208209
toclines,

0 commit comments

Comments
 (0)