Thanks, and sorry for hijacking. I tried it once and gave up later because I do not want hard-coded files (may be good or bad, though). My point is that both CRAN and the package documentation are restricted to Sweave for automatic generation of the vignette list. I was hoping that vigettes could be like demos, which are listed in demo/00Index by package authors and will show up in demo(package = xxx). I apologize if this is irrelavent to your question.
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Nov 6, 2011 at 7:51 PM, Henrik Bengtsson <h...@biostat.ucsf.edu> wrote: > Hi. > > On Sun, Nov 6, 2011 at 5:14 PM, Yihui Xie <x...@yihui.name> wrote: >> I have the same question. I wish vignettes which are shown in CRAN and >> the package documentation are not restricted to Sweave (or I missed >> something in the R-exts manual?). What I did in the past was to cheat >> Sweave by putting an Rnw document which is essentially a tex document >> (I used my own functions to compile Rnw to tex). > > How CRAN behaves and how the help package system behaves may be two > different problems. My question is specifically on how CRAN works. > > To have inst/doc/ documents to be listed on the package's help page, > you can add an inst/doc/index.html file, cf. Section 'Writing package > vignettes' in 'Writing R Extensions'. You can use the following > index.html file as a template: > > help.start(); > url <- sprintf("http://127.0.0.1:%s/library/utils/doc/index.html", > tools:::httpdPort); > download.file(url, basename(url)); > browseURL(url); > > /Henrik > >> >> Regards, >> Yihui >> -- >> Yihui Xie <xieyi...@gmail.com> >> Phone: 515-294-2465 Web: http://yihui.name >> Department of Statistics, Iowa State University >> 2215 Snedecor Hall, Ames, IA >> >> >> >> On Sun, Nov 6, 2011 at 6:41 PM, Henrik Bengtsson <h...@biostat.ucsf.edu> >> wrote: >>> Hi, >>> >>> is it possible to have non-Sweave vignettes(*) in inst/doc/ be listed >>> under 'Downloads' on CRAN package pages? For instance, in my R.rsp >>> package I have a inst/doc/report.pdf (part of the source *.tar.gz) >>> that is not detected/listed. The PDF is not based on a Sweave >>> vignette but an *.tex.rsp vignette that is dynamically created via >>> inst/doc/Makefile. It is listed >>> >>> (*) BTW, can the term "vignette" be used for any inst/doc/ document, >>> or should it be reserved for Sweave+LaTeX-based documents? >>> >>> Thanks >>> >>> Henrik >>> >>> ______________________________________________ >>> R-devel@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-devel >>> >> >> ______________________________________________ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel >> > ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel