Hi, this is tangentially related to the recent discussion on vignettes. vignette() currently produces a listing of available vignettes, but these are not clickable. Since R has a browseURL() function, it seems natural to have a version that produces HTML with clickable links. Here's an attempt at that: source("http://dsarkar.fhcrc.org/R/vignette-browser.R") browseVignettes() browseVignettes(package = "grid") etc. Perhaps some variant of this could be added to R. Comments welcome. -Deepayan
>>>>> On Fri, 1 Jun 2007 16:22:18 -0700, >>>>> Deepayan Sarkar (DS) wrote:> Hi, > this is tangentially related to the recent discussion on vignettes. > vignette() currently produces a listing of available vignettes, but > these are not clickable. Since R has a browseURL() function, it seems > natural to have a version that produces HTML with clickable links. > Here's an attempt at that: > source("http://dsarkar.fhcrc.org/R/vignette-browser.R") > browseVignettes() > browseVignettes(package = "grid") > etc. Perhaps some variant of this could be added to R. > Comments welcome. Looks good to me, and certainly something worth being added to R. 2 quick (related) comments: 1) I am not sure if we want to include links to the Latex-Sources by default, those might confuse unsuspecting novices a lot. Perhaps make those optional using an argument to browseVignettes(), which is FALSE by default? 2) Instead links to .Rnw files we may want to include links to the R code -> should we R CMD INSTALL a tangled version of each vignette such that we can link to it? Of course it is redundant information given the .Rnw, but we also have the help pages in several formats ready. .f
This is very nice work and I like it a lot. I think it would be quite useful for teaching. My only thought was that when I saw 'source' I was expecting R code, but instead got LaTeX/Noweb. It does seem that 'source' is a little ambiguous here. -roger On 6/1/07, Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:> Hi, > > this is tangentially related to the recent discussion on vignettes. > vignette() currently produces a listing of available vignettes, but > these are not clickable. Since R has a browseURL() function, it seems > natural to have a version that produces HTML with clickable links. > Here's an attempt at that: > > source("http://dsarkar.fhcrc.org/R/vignette-browser.R") > browseVignettes() > browseVignettes(package = "grid") > > etc. Perhaps some variant of this could be added to R. > > Comments welcome. > > -Deepayan > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/