Skip to content
Prev 29202 / 63424 Next

Posting Guide - help.request() function?

Okay, here's the update.

I've created a new function create.post() (with Windows and Unix 
versions) which would be the internal function that creates the post 
template ready to edit and optionally send. In the Windows version I've 
added an experimental method == "mailto" option, which will open the 
post template in the default mailer (e.g. Outlook) ready to edit and 
post. Maybe a Unix version would also be nice, e.g.

browseURL("mailto:r-bugs at r-project.org?subject=my bug&body=%0A<<insert 
bug report here>>%0A%0A%0A%0A--please do not edit the information 
below--%0A%0AVersion:%0A platform = x86_64-unknown-linux-gnu%0A ...")

would open the post template in e.g. Thunderbird, but has the side 
effect of opening an empty page in the web browser. I don't know if 
there's a neater solution?

The create.post() function is basically the old bug.report() with two 
extra arguments: 'description' (e.g. "bug report") and 'instructions' 
(e.g. "\\n<<Type your message here>>\\n") for customization. It could be 
used directly e.g to post to R-devel with session information.

The new bug.report() simply calls create.post() with the appropriate 
arguments.

The improved help-request() function calls create.post() after running 
through the checks described before.

In response to Gabor's comments, help.request():

  - now checks packages are up-to-date and gives option to update 
on-the-fly (user may not know whether involved in query, so check all)

  - keeps default mailing options as in old bug.report() but 
create.post() gives clearer message ("Email the post now?\n (yes/no)") 
requiring definite response ("yes" vs "y")

  - still uses online documents because some are only available online 
(R Site Search, posting guide), it ensures the most up-to-date 
documentation is used, and it allows direction to global FAQ page, 
avoiding need to check whether user is on Windows/Mac

  - uses more robust method of checking R version is up-to-date

I've also written a help file for help.request() which includes the 
method="mailto" option. The help file for bug.report would need updating 
if this option was kept.

Best wishes,

Heather
Martin Maechler wrote: