From Friedrich.Leisch@ci.tuwien.ac.at  Fri Feb 11 13:23:14 2000
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Fri, 11 Feb 2000 14:23:14 +0100 (CET)
Subject: [Rd] behaviour of bug.report (PR#432)
In-Reply-To: <200002111209.NAA02992@pubhealth.ku.dk>
References: <200002111209.NAA02992@pubhealth.ku.dk>
Message-ID: <14500.3394.154542.961920@galadriel.ci.tuwien.ac.at>

>>>>> On Fri, 11 Feb 2000 13:09:31 +0100 (MET),
>>>>> berwin  (b) wrote:

b> Dear R developers,
b> it seems that I am in the mood of filing bug reports.  Partly because
b> R-1.0 is approaching fast, partly to explain why I have send (yet)
b> another empty bug report.  

b> My settings are as follows:
>> options()$mailer
b> [1] "mailx"
>> options()$method
b> NULL
>> options()$editor
b> [1] "emacsclient"

b> My first attempt to send the last bug-report about "R CMD check
b> [nlme|MASS" was:

>> bug.report(subject="`R CMD check [nlme|MASS]' fails")
b> Waiting for Emacs...Done
b> Submit the bug report? y
b> Sending email ...
b> sh: unexpected EOF while looking for `''
b> sh: -c: line 2: syntax error
b> sh: unexpected EOF while looking for `''
b> sh: -c: line 2: syntax error
b> sh: unexpected EOF while looking for `''
b> sh: -c: line 2: syntax error
b> Sending email failed!
b> The unsent bug report can be found in file R.bug.report 


b> Obviously, something didn't like the `'' in the subject line.  Can it
b> be escaped?

The subject is used as argument to the command line option -s of mailx
which is included in single quotes (to avoid
substitutions). Unfortunately you cannot escape this as far as I can
see -> I'll add a warning to the help page of bug.report. 

b> Next I typed:
>> bug.report(subject="R CMD check [nlme|MASS] fails")

b> And emacs asked me if I wanted to revert the buffer of file XXXX from
b> its latest version.  To this I answered `no' since the R.bug.report
b> buffer still contained the messages that I wanted to send and a `yes'
b> answer would have put the bug report template into that buffer.  As
b> expected, I got into the buffer with the report still there.  Upon
b> pressing `C-x #' I got back to the R session and was asked whether I
b> wanted to send the bug report:

b> Waiting for Emacs...Done
b> Submit the bug report? y
b> Sending email ...

b> To my surprise, I then noticed that the empty template was send and
b> not the report.  I gues the "real" report was only in the buffer and
b> never written back to the file R.bug.report.  But I kind of wonder
b> whether emacs or R is to blame for this problem.......

Hmm, I don't want to ask the obvious ... but: You did save the file
before pressing `C-x #'? My emacs asks when I try to leave an
gnuclient buffer without saving, but as every feature in eamcs can be
re-configured ...

Best,
Fritz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] behaviour of bug.report (PR#432)
Friedrich Leisch