R: error report (PR#150)

adelchi.azzalini@jrc.it adelchi.azzalini@jrc.it
Fri, 26 Mar 1999 09:30:13 +0100


This is a multi-part message in MIME format.
--------------25A3389DABC0A1B4530C7640
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi.

I have been told (by R) to report an error.
Running the attached file simul-pic.R produces the
somthing like the following 

>   source("simul-pic.R")
[1] 50.000  2.539
    poisson binomial f.srs f.pps
0   7.89403  7.38439  5.64  6.32
1  20.04344 19.75250 17.28 20.64
2  25.44578 25.88961 25.00 26.96
3  21.53616 22.16067 24.56 22.48
4  13.67042 13.93022 14.80 13.92
5   6.94201  6.85619  7.48  6.12
6   2.93770  2.75094  3.72  2.68
7   1.06557  0.92507  1.24  0.64
8   0.33819  0.26600  0.20  0.16
9   0.09541  0.06641  0.08  0.08
10  0.02423  0.01457  0.00  0.00
Error: Bad units specified in GConvert, please report!
> 

The program should generate a pictex file, but it fails
to complete it.  Replicated executions produce slightly 
different outcomes, but still an error.

If I comment out the lines following the PicTeX line,
then the program runs with no error.

The environment is WinNT 4.0 with R Version 0.63.2 Beta 
(Jan 12, 1999).

I have first contacted Guido Masarotto about this problem,
but the same thing occurs on the Unix version of R, and
he suggested to write to your address.

Reagards, 
Adelchi Azzalini
--------------25A3389DABC0A1B4530C7640
Content-Type: application/x-tex;
 name="simul-00.tex"
Content-Disposition: inline;
 filename="simul-00.tex"
Content-Transfer-Encoding: 7bit

\hbox{\beginpicture
\setcoordinatesystem units <1pt,1pt>
\setplotarea x from 0 to 0.00, y from 0 to 0.00
\setlinear
\font\picfont cmss10\picfont
\font\picfont cmss10 at 10pt\picfont
\font\picfont cmss10 at 10pt\picfont
\setsolid
\plot 45.02 50.98 45.02 110.81 /
\setsolid
\plot 72.15 50.98 72.15 202.87 /
\setsolid
\plot 99.28 50.98 99.28 243.81 /
\setsolid
\plot 126.41 50.98 126.41 214.19 /
\setsolid
\plot 153.54 50.98 153.54 154.58 /
\setsolid
\plot 180.67 50.98 180.67 103.59 /
\setsolid
\plot 207.81 50.98 207.81 73.25 /
\setsolid
\plot 234.94 50.98 234.94 59.06 /
\setsolid
\plot 262.07 50.98 262.07 53.55 /
\setsolid
\plot 289.20 50.98 289.20 51.71 /
\setsolid
\plot 316.33 50.98 316.33 51.17 /
\setsolid
\plot 45.02 42.50 316.33 42.50 /
\setsolid
\plot 45.02 42.50 45.02 38.33 /
\setsolid
\plot 99.28 42.50 99.28 38.33 /
\setsolid
\plot 153.54 42.50 153.54 38.33 /
\setsolid
\plot 207.81 42.50 207.81 38.33 /
\setsolid
\plot 262.07 42.50 262.07 38.33 /
\setsolid
\plot 316.33 42.50 316.33 38.33 /
\put {0}  [lB] <-2.50pt,0.00pt> at 45.02 25.83
\put {2}  [lB] <-2.50pt,0.00pt> at 99.28 25.83
\put {4}  [lB] <-2.50pt,0.00pt> at 153.54 25.83
\put {6}  [lB] <-2.50pt,0.00pt> at 207.81 25.83
\put {8}  [lB] <-2.50pt,0.00pt> at 262.07 25.83
\put {10}  [lB] <-5.00pt,0.00pt> at 316.33 25.83
\setsolid
\plot 34.17 50.98 34.17 240.43 /
\setsolid
\plot 34.17 50.98 30.00 50.98 /
\setsolid
\plot 34.17 88.87 30.00 88.87 /
\setsolid
\plot 34.17 126.76 30.00 126.76 /
\setsolid
\plot 34.17 164.65 30.00 164.65 /
\setsolid
\plot 34.17 202.54 30.00 202.54 /
\setsolid
\plot 34.17 240.43 30.00 240.43 /
\put {0.00}  [rB] <0.00pt,-4.17pt> at 25.83 50.98
\put {0.05}  [rB] <0.00pt,-4.17pt> at 25.83 88.87
\put {0.10}  [rB] <0.00pt,-4.17pt> at 25.83 126.76
\put {0.15}  [rB] <0.00pt,-4.17pt> at 25.83 164.65
\put {0.20}  [rB] <0.00pt,-4.17pt> at 25.83 202.54
\put {0.25}  [rB] <0.00pt,-4.17pt> at 25.83 240.43
\setsolid
\plot 34.17 42.50 327.18 42.50 /
\plot 327.18 42.50 327.18 271.58 /
\plot 327.18 271.58 34.17 271.58 /
\plot 34.17 271.58 34.17 42.50 /
\put {m}  [lB] <-3.97pt,0.00pt> at 180.67 9.17
\put {Prob(M=m)}  [rB] <0.00pt,-4.17pt> at 9.17 157.04
\circulararc 360 degrees from 45.02 112.87 center at 45.02 110.81
\circulararc 360 degrees from 72.15 204.94 center at 72.15 202.87
\circulararc 360 degrees from 99.28 245.88 center at 99.28 243.81
\circulararc 360 degrees from 126.41 216.25 center at 126.41 214.19
\circulararc 360 degrees from 153.54 156.64 center at 153.54 154.58
\circulararc 360 degrees from 180.67 105.65 center at 180.67 103.59
\circulararc 360 degrees from 207.81 75.31 center at 207.81 73.25
\circulararc 360 degrees from 234.94 61.12 center at 234.94 59.06
\circulararc 360 degrees from 262.07 55.61 center at 262.07 53.55
\circulararc 360 degrees from 289.20 53.77 center at 289.20 51.71
\circulararc 360 degrees from 316.33 53.23 center at 316.33 51.17
\font\picfont cmssbx10 at 9pt\picfont
\put {Simulated no. of events and Poisson approximation}  [lB] <-103.02pt,-3.75pt> at 180.67 288.66
\put {  }  [lB] <-2.30pt,-3.75pt> at 180.67 280.33
\pu

--------------25A3389DABC0A1B4530C7640
Content-Type: application/x-unknown-content-type-R_auto_file;
 name="simul-pic.R"
Content-Disposition: inline;
 filename="simul-pic.R"
Content-Transfer-Encoding: base64

IyBzaW11bGF6aW9uZSBkZWxsYSBkaXN0cmlidXppb25lIGVzYXR0YSBkaSBNLCANCiMgZSBj
b25mb250byBjb24gdmMgUG9pc3NvbiANCiMgMjQvMy85OQ0KIw0KIy0tLS0tIGNvc3RydXpp
b25lIGRlbGxhIHBvcG9sYXppb25lDQpOPC0xMDAwDQp4PC1yZ2FtbWEoTiwxLDUpDQpUeDwt
c3VtKHgpDQpwcm9iLmV2ZW50IDwtZnVuY3Rpb24oeCwgcGhpMCwgYmV0YSkgcGhpMC8oMStl
eHAoLWJldGEqeCkpIA0KcGhpMCA8LSAwLjENCmJldGEgPC0gMA0KSXogPC0gcmJpbm9tKE4s
MSxwcm9iLmV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aW9uPSIsbi9OLCIsIHJlcGxpY2F0ZXM9
IixuLnJlcGwpKQ0KbGVnZW5kKHg9bWF4Lm0qMC43LHk9bWF4KHBvaXNzb24pLA0KICAgICAg
IGxlZ2VuZD1jKCJQb2lzc29uIGFwcHJveCIsInNpbXVsYXRlZCBTUlMiLCJzaW11bGF0ZWQg
UFBTIiksDQogICAgICAgcGNoPWMoMSwyLDQpKQ0KcGFyKGNleD0xKQ0KcG9pbnRzKDA6bWF4
Lm0sIGYuc3JzLCBwY2g9Mixjb2w9MykNCnBvaW50cygwOm1heC5tLCBmLnBwcywgcGNoPTQs
Y29sPTQpDQpYMTEoKQ0KDQo=
--------------25A3389DABC0A1B4530C7640--


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._