[R] help.start() has a faulty link

peter dalgaard pdalgd at gmail.com
Mon Sep 1 23:00:06 CEST 2014


On 01 Sep 2014, at 20:52 , peter dalgaard <pdalgd at gmail.com> wrote:

> I see it with a default (I think) install of 3.0.2 on OSX (haven't gotten around to upgrading the laptop). Oddly, the Vignettes entry on the Help menu works fine, but the User Manuals entry in the R Help window produces the error. Vignettes installed or not, it doesn't sound like the right message to get. 
> 
> Poking around: Following
> 
> debug(tools:::makeVignetteTable)
> 
> I see
....

A bit of further poking reveals that it comes from a missing drop=FALSE, which has already been fixed in r-patched, specifically by

$ svn log -c 66144 ./src/library/tools/R/dynamicHelp.R
------------------------------------------------------------------------
r66144 | ripley | 2014-07-14 12:09:56 +0200 (Mon, 14 Jul 2014) | 1 line

port tweaks from trunk
------------------------------------------------------------------------
$ svn diff -x -w -c 66144 ./src/library/tools/R/dynamicHelp.R
Index: src/library/tools/R/dynamicHelp.R
===================================================================
--- src/library/tools/R/dynamicHelp.R	(revision 66143)
+++ src/library/tools/R/dynamicHelp.R	(revision 66144)
@@ -1,7 +1,7 @@
 #  File src/library/tools/R/dynamicHelp.R
 #  Part of the R package, http://www.R-project.org
 #
-#  Copyright (C) 1995-2013 The R Core Team
+#  Copyright (C) 1995-2014 The R Core Team
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@
             vinfo <- getVignetteInfo(pkg)
      	    if (nrow(vinfo)) 
          	out <- c(out, paste0('<h2>Manuals in package', sQuote(pkg),'</h2>'),
-         		 makeVignetteTable(cbind(Package=pkg, vinfo[,c("File", "Title", "PDF", "R")])))
+         		 makeVignetteTable(cbind(Package=pkg, vinfo[,c("File", "Title", "PDF", "R"), drop = FALSE])))
      	}
         out <- c(out, "<hr>\n</body></html>")
         list(payload = paste(out, collapse="\n"))

----------------------------------
Notice that 3.1.1 was on July 10, so this won't be in it.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list