@@ -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 ‘' , pkg , ' ’ 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