Skip to content

Commit 7f65c1e

Browse files
author
hornik
committed
Install package README.md.
git-svn-id: https://svn.r-project.org/R/trunk@89310 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent c43c3c1 commit 7f65c1e

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/library/tools/R/install.R

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,8 @@ if(FALSE) {
12631263

12641264

12651265
if (more_than_libs) {
1266-
for (f in c("NAMESPACE", "LICENSE", "LICENCE", "NEWS", "NEWS.md"))
1266+
for (f in c("NAMESPACE", "LICENSE", "LICENCE",
1267+
"NEWS", "NEWS.md", "README.md"))
12671268
if (file.exists(f)) {
12681269
file.copy(f, instdir, TRUE)
12691270
Sys.chmod(file.path(instdir, f), fmode)
@@ -2907,8 +2908,8 @@ if(FALSE) {
29072908
{
29082909
cat(paste(HTMLheader(title,
29092910
logo = staticLogoPath(dir, relative = TRUE, Rhome = "../../..", dir = TRUE),
2910-
Rhome="../../..",
2911-
up="../../../doc/html/packages.html",
2911+
Rhome = "../../..",
2912+
up = "../../../doc/html/packages.html",
29122913
css = "R.css"),
29132914
collapse = "\n"),
29142915
'<h2>Documentation for package &lsquo;', pkg, '&rsquo; version ',
@@ -2918,21 +2919,27 @@ if(FALSE) {
29182919
## These days we should really always have UTF-8 ...
29192920
if(!is.na(encoding) && (encoding == "UTF-8"))
29202921
"; charset=utf-8",
2921-
'">DESCRIPTION file</a>.</li>\n',
2922-
sep = "", file=conn)
2922+
'">DESCRIPTION file</a></li>\n',
2923+
sep = "", file = conn)
29232924
if (file.exists(file.path(outDir, "doc")))
2924-
cat('<li><a href="../doc/index.html">User guides, package vignettes and other documentation.</a></li>\n',
2925-
file=conn)
2925+
cat('<li><a href="../doc/index.html">User guides, package vignettes and other documentation</a></li>\n',
2926+
file = conn)
29262927
if (file.exists(file.path(outDir, "demo")))
29272928
cat('<li><a href="../demo">Code demos</a>. Use <a href="../../utils/help/demo">demo()</a> to run them.</li>\n',
2928-
sep = "", file=conn)
2929+
sep = "", file = conn)
29292930
for(nfile in c("NEWS", "NEWS.Rd", "NEWS.md")) {
29302931
if(file.exists(file.path(outDir, nfile))) {
2931-
cat('<li><a href="../', nfile, '">Package NEWS</a>.</li>\n',
2932-
sep = "", file=conn)
2932+
cat('<li><a href="../', nfile, '">Package NEWS</a></li>\n',
2933+
sep = "", file = conn)
29332934
break
29342935
}
29352936
}
2937+
## <FIXME>
2938+
## NOTYET: uncomment when dynamic help supports README.md.
2939+
## if(file.exists(file.path(outDir, "README.md")))
2940+
## cat('<li><a href="../README.md">Package README</a></li>\n',
2941+
## sep = "", file = conn)
2942+
## </FIXME>
29362943

29372944
cat('</ul>\n\n<h2>Help Pages</h2>\n\n\n',
29382945
sep ="", file = conn)

0 commit comments

Comments
 (0)