Dear all: I am a newbie in Mac. Just installed R and found R did not react on my command plot (I use command line in terminal). It did not give me any error message, either. All it did was just giving out a new command prompt--no reaction to the plot command. I suppose whenever I gives out a command of plot, it will invoke the AquaTerm for a small graph, as I experience in octave. What can I do for it? Many thanks, Minyu Chen
On 5 Apr 2005, at 19:12, Minyu Chen wrote:> Dear all: > > I am a newbie in Mac. Just installed R and found R did not react on my > command plot (I use command line in terminal). It did not give me any > error message, either. All it did was just giving out a new command > prompt--no reaction to the plot command. I suppose whenever I gives > out a command of plot, it will invoke the AquaTerm for a small graph, > as I experience in octave. What can I do for it? >issue command >getOption("device") to check the output device. The default I have on OS X is X11, do you have it installed before compiling R? It could also be the case that you issued command such as postscript() before plot(...) but forgot to issue dev.off().> Many thanks, > Minyu Chen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >Tony Han Bao tonybao at mac.com
On 5 Apr 2005, at 8:45 pm, Minyu Chen wrote:> No, the only output is postscipt. As I just install X11, I did not > have it before compiling R.You can try to set the device to x11 by issue the following command, options(device = 'x11') and hope now it works.> > What to do now except for getting and compiling R Aqua?Getting and compiling R Aqua is quite easy and you should do so for OS X to make use of its quartz and easy pdf related features. All the best,> > Thanks, > Minyu Chen > On 5 Apr 2005, at 20:23, Tony Han Bao wrote: > >> >> On 5 Apr 2005, at 19:12, Minyu Chen wrote: >> >>> Dear all: >>> >>> I am a newbie in Mac. Just installed R and found R did not react on >>> my command plot (I use command line in terminal). It did not give me >>> any error message, either. All it did was just giving out a new >>> command prompt--no reaction to the plot command. I suppose whenever >>> I gives out a command of plot, it will invoke the AquaTerm for a >>> small graph, as I experience in octave. What can I do for it? >>> >> issue command >> >> >getOption("device") >> >> to check the output device. The default I have on OS X is X11, do you >> have it installed before compiling R? >> >> It could also be the case that you issued command such as >> postscript() before plot(...) but forgot to issue dev.off(). >> >>> Many thanks, >>> Minyu Chen >>> >>> ______________________________________________ >>> R-help at stat.math.ethz.ch mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide! >>> http://www.R-project.org/posting-guide.html >>>Tony Han Bao tonybao at mac.com>> >
On 5 Apr 2005, at 9:39 pm, Minyu Chen wrote:> Sorry for bothering again, but it doesn't work yet. Now it shows "x11" > when I type getOption("device"), but when I do the plot, the terminal > just simply told me x11 is not available. >This is why I asked you whether you have X11 before compiling R. It's no surprise that it doesn't work. I think now the best and cleanest way is to recompile R with the correct configurations so that it sets X11 as the default device. alternatively you may try options(device = 'quartz') to try to make use of quartz (Aqua) but I fear it won't work either.> Thanks, > Minyu Chen > On 5 Apr 2005, at 21:30, Tony Han Bao wrote: > >> >> On 5 Apr 2005, at 8:45 pm, Minyu Chen wrote: >> >>> No, the only output is postscipt. As I just install X11, I did not >>> have it before compiling R. >> You can try to set the device to x11 by issue the following command, >> >> options(device = 'x11') >> >> and hope now it works. >> >>> >>> What to do now except for getting and compiling R Aqua? >> Getting and compiling R Aqua is quite easy and you should do so for >> OS X to make use of its quartz and easy pdf related features. >> >> All the best, >>> >>> Thanks, >>> Minyu Chen >>> On 5 Apr 2005, at 20:23, Tony Han Bao wrote: >>> >>>> >>>> On 5 Apr 2005, at 19:12, Minyu Chen wrote: >>>> >>>>> Dear all: >>>>> >>>>> I am a newbie in Mac. Just installed R and found R did not react >>>>> on my command plot (I use command line in terminal). It did not >>>>> give me any error message, either. All it did was just giving out >>>>> a new command prompt--no reaction to the plot command. I suppose >>>>> whenever I gives out a command of plot, it will invoke the >>>>> AquaTerm for a small graph, as I experience in octave. What can I >>>>> do for it? >>>>> >>>> issue command >>>> >>>> >getOption("device") >>>> >>>> to check the output device. The default I have on OS X is X11, do >>>> you have it installed before compiling R? >>>> >>>> It could also be the case that you issued command such as >>>> postscript() before plot(...) but forgot to issue dev.off(). >>>> >>>>> Many thanks, >>>>> Minyu Chen >>>>> >>>>> ______________________________________________ >>>>> R-help at stat.math.ethz.ch mailing list >>>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>>> PLEASE do read the posting guide! >>>>> http://www.R-project.org/posting-guide.html >>>>> >> Tony Han Bao >> tonybao at mac.com >>>> >>> >> > >Tony Han Bao tonybao at mac.com
Hi, You should use X11. It doesn't work in Terminal. You can use the basic Xterm in X11 or like I do Aterm. David Ruau On Apr 5, 2005, at 20:12, Minyu Chen wrote:> Dear all: > > I am a newbie in Mac. Just installed R and found R did not react on my > command plot (I use command line in terminal). It did not give me any > error message, either. All it did was just giving out a new command > prompt--no reaction to the plot command. I suppose whenever I gives > out a command of plot, it will invoke the AquaTerm for a small graph, > as I experience in octave. What can I do for it? > > Many thanks, > Minyu Chen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
Did you install R from source code, or did you install the binary? If you installed the binary, then you can start R by double-clicking on the R application icon. Then your default graphics device will not require X windows, and will be fully interactive (in the R sense). If you installed from source code, you may or may not have the double-clickable application, depending on what configuration options you specified. If you don't want to use the GUI interface provided by the binary download, then you will have the best results if you work in the X windows environment, in my opinion (there are other opinions). You can work in the X windows environment with either the binary installation, or if you installed from source. Obviously, however, you have to have X Windows installed in order to use it with R -- and if you installed R from source code, you need to install X Windows *before* installing R. I don't know if order matters if you installed the binary. If you don't want to use the GUI, and don't want to use X Windows, then you are operating outside of my experience. But try starting a graphics device using quartz() *before* issuing any plot() command. See also ?Devices I believe there may be alternatives to what I've outlined here, but I don't know what they are. -Don At 7:12 PM +0100 4/5/05, Minyu Chen wrote:>Dear all: > >I am a newbie in Mac. Just installed R and found R did not react on >my command plot (I use command line in terminal). It did not give me >any error message, either. All it did was just giving out a new >command prompt--no reaction to the plot command. I suppose whenever >I gives out a command of plot, it will invoke the AquaTerm for a >small graph, as I experience in octave. What can I do for it? > >Many thanks, >Minyu Chen > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA