Re: [Rd] Re: [R] File Reading Problem (PR#4043)

2003-09-01 Thread Prof Brian Ripley
On Mon, 1 Sep 2003, Duncan Murdoch wrote: > On Mon, 1 Sep 2003 22:32:29 +0200 (MET DST), you wrote: > > >On Mon, 1 Sep 2003 14:26:43 -0700, "Jiming Yu" > ><[EMAIL PROTECTED]> wrote: > > > >>Dear all, > >>I am trying to read characters byte by byte(in their ASCII codes) from a > >>file > > > >

Re: [Rd] Re: [R] File Reading Problem (PR#4043)

2003-09-01 Thread Duncan Murdoch
On Mon, 1 Sep 2003 22:32:29 +0200 (MET DST), you wrote: >On Mon, 1 Sep 2003 14:26:43 -0700, "Jiming Yu" ><[EMAIL PROTECTED]> wrote: > >>Dear all, >>I am trying to read characters byte by byte(in their ASCII codes) from a >>file > >I was going to suggest using readBin, but there seems to be a b

[Rd] Re: [R] File Reading Problem (PR#4044)

2003-09-01 Thread p . dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> writes: > On Mon, 1 Sep 2003 14:26:43 -0700, "Jiming Yu" > <[EMAIL PROTECTED]> wrote: > > >Dear all, > >I am trying to read characters byte by byte(in their ASCII codes) from a > >file > > I was going to suggest using readBin, but there seems to be a bug: >

[Rd] Re: [R] File Reading Problem (PR#4043)

2003-09-01 Thread dmurdoch
On Mon, 1 Sep 2003 14:26:43 -0700, "Jiming Yu" <[EMAIL PROTECTED]> wrote: >Dear all, >I am trying to read characters byte by byte(in their ASCII codes) from a >file I was going to suggest using readBin, but there seems to be a bug: > con <- file('c:/test.txt','rb') > readBin(con,'c',15,1) st

Re: (PR#4307) Re: [Rd] par(new=T) works differently in pdf vspostscript if applied before a plot statement. (PR#4037)

2003-09-01 Thread Prof Brian Ripley
On Mon, 1 Sep 2003, Andrew Robinson wrote: > Certainly. > > postscript("test.ps") > par(new=T) > plot(1:10,1:10) > dev.off() > > Produces a postscript image that can be opened. However But it is not a valid postscript file, and says it has 0 pages. > pdf("test.pdf") > par(new=T) > plot(1:10,

Re: (PR#4307) Re: [Rd] par(new=T) works differently in pdf vspostscript if applied before a plot statement. (PR#4037)

2003-09-01 Thread Andrew Robinson
Certainly. postscript("test.ps") par(new=T) plot(1:10,1:10) dev.off() Produces a postscript image that can be opened. However pdf("test.pdf") par(new=T) plot(1:10,1:10) dev.off() produces a pdf that cannot be opened by Latex or xpdf. Andrew -- Andrew Robinson Ph: 208

(PR#4307) Re: [Rd] par(new=T) works differently in pdf vs postscriptif applied before a plot statement. (PR#4037)

2003-09-01 Thread Prof Brian Ripley
Please give us an example of what you mean (as the FAQ asks). Exactly what order are you doing things in? You can't send scripts to graphics devices, and you should not be calling par(new=TRUE) without a plot already done. So it would appear to be user error, and it may well just be different er

[Rd] par(new=T) works differently in pdf vs postscript if appliedbefore a plot statement. (PR#4037)

2003-09-01 Thread andrewr
If I place par(new=T) before I create a plot in a script that is sent to a pdf device, the pdf is unopenable and reports itself as having no pages. The postscript device seems to ignore the par instruction. I guess one of these is a bug, but I don't know which one! --please do not edit the inf