Skip to content

vignettes present in 2 folders or won't work

1 message · Georgi Boshnakov

#
From: Duncan Murdoch <murdoch.duncan at gmail.com>
To: Mark van der Loo <mark.vanderloo at gmail.com>
Cc: Dirk Eddelbuettel <edd at debian.org>, r-devel
	<r-devel at r-project.org>


Further to Duncan's comments:
There is the seemingly underused option "package" of help():

help(package = "pkgname", help_type = "html")

The vignettes and other documents (including sources of vignettes, etc) are at the top of the html page (help_type is used in case the default for help is text format, when the output is less convenient in this case). 

What is shown can be customised by a custom index.tml under inst/doc (described in WRE).  An inconvenience for users of devtools::check()  is that it wipes out inst/doc (but it does ask for confirmation).


Georgi Boshnakov



------------------------------

Message: 12
Date: Mon, 2 Nov 2020 05:22:02 -0500
From: Duncan Murdoch <murdoch.duncan at gmail.com>
To: Mark van der Loo <mark.vanderloo at gmail.com>
Cc: Dirk Eddelbuettel <edd at debian.org>, r-devel
	<r-devel at r-project.org>
Subject: Re: [Rd] vignettes present in 2 folders or won't work
Message-ID: <92e51613-b647-5d72-793a-dd64e0edac3c at gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
On 02/11/2020 4:07 a.m., Mark van der Loo wrote:
What I'd suggest is that you write a "browseDocs" function that displays 
them in some nice format (similar to "browseVignettes").  Maybe CRAN 
would choose to add a new category listing its results, but at a 
minimum, you could very easily add a vignette called "Other documents" 
that contains a list of links.   It wouldn't be as prominent as 
"Vignettes" on CRAN, but you could make the display as prominent as you 
want on your own web page.

Duncan Murdoch




------------------------------

Subject: Digest Footer

_______________________________________________
R-devel at r-project.org mailing list  DIGESTED
https://stat.ethz.ch/mailman/listinfo/r-devel


------------------------------

End of R-devel Digest, Vol 213, Issue 1
***************************************