Rev 47307 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/help.request.Rd% Part of the R package, http://www.R-project.org% Copyright 2008 R Core Development Team% Distributed under GPL 2 or later\name{help.request}\alias{help.request}\title{Send a Post to R-help}\description{Prompts the user to check they have done all that is expected of thembefore sending a post to the R-help mailing list, provides a templatefor the post with session information included and optionally sendsthe email (on Unix systems).}\usage{help.request(subject = "",ccaddress = Sys.getenv("USER"),method = getOption("mailer"),address = "r-help@R-project.org",file = "R.help.request")}\arguments{\item{subject}{subject of the email. Please do not use single quotes(\kbd{'}) in the subject! Post separate help requests for multiplequeries.}\item{ccaddress}{optional email address for copies (default is currentuser). Use \code{ccaddress = FALSE} for no copies.}\item{method}{submission method: for Unix one of \code{"mailx"},\code{"gnudoit"}, \code{"none"} or \code{"ess"}; for Windows either\code{"none"} (default) or \code{"mailto"}.}\item{address}{recipient's email address.}\item{file}{file to use for setting up the email (or storing it whenmethod is \code{"none"} or sending mail fails).}}\details{This function is not intended to replace the postingguide. Please read the guide before posting to R-help or using thisfunction (see \url{http://www.r-project.org/posting-guide.html}).The \code{help.request} function:\itemize{\item asks whether the user has consulted relevant resources,stopping and opening the relevant url if a negative response ifgiven.\item checks whether the current version of R is being used andwhether the add-on packages are up-to-date, giving the option ofupdating where necessary.\item asks whether the user has prepared appropriate (minimal,reproducible, self-contained, commented) example code ready topaste into the post.}Once this checklist has been completed a template post is preparedincluding current session information.If method is \code{"none"} or \code{NULL}, then the default texteditor is opened for the user to complete the post. Which editor isused can be controlled using \code{\link{options}}, type\code{getOption("editor")} to see what editor is currentlydefined. Please use the help pages of the respective editor fordetails of usage. The report can then be copied to your favorite emailprogram and sent to the r-help list.On Windows systems there is an experimental \code{"mailto"} option,which sends the template post to the system's default email program forthe user to edit and send.On Unix systems there are three options for direct submission of thepost. If the submission method is \code{"mailx"}, then the defaulteditor is used to write the help request. After saving the help request(in the temporary file opened) and exiting the editor the report ismailed using a Unix command line mail utility such as \code{mailx}. Acopy of the mail is sent to the current user. If method is\code{"gnudoit"}, then an emacs mail buffer is opened and used forsending the email. If method is \code{"ess"} the body of the mail issimply sent to stdout.}\value{Nothing useful.}\seealso{The posting guide(\url{http://www.r-project.org/posting-guide.html}),also \code{\link{sessionInfo}()} from which you may addto the help request.}\author{Heather Turner, based on code and help page of\code{\link{bug.report}()}.}\keyword{utilities}\keyword{error}