[R] install.packages() failed

2006-02-10 Thread Zepu Zhang
I use Mac. I installed R with the download from R-project, so R is in /usr/bin/R. My TclTk library is installed via fink (although I don't remember I intentionally installed it) so libtk8.4.dylib is in /sw/lib. I tried to install the HDF5 package from within R: install.packages('hdf5') and

[R] failed installing hdf5 package--can't find zlib

2006-02-11 Thread Zepu Zhang
I use Mac, tried to install the package hdf5-1.6. Its configuration script can't find zlib, which apparently exists in my /usr directory. I used R CMD INSTALL --configure-args=--with-hdf5=/sw --configure-args=--with-zlib=/usr hdf5tar.gz It still can't find zlib. Is this a bug? Any pointer

[R] problem installing RNetCDF

2006-03-07 Thread Zepu Zhang
Hello all, I set 'UDUNITS_PATH' and 'NETCDF_PATH' successfully to my custom places and then % R CMD INSTALL RNetCDF_1.1-3.tar.gz and got this: ... checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc

[R] help! installing R on Mac OS X 10.3.9

2006-03-12 Thread Zepu Zhang
Question 1: install R..dmg How can I install R in ~/Applications and Rframework in ~/Library, instead of / Library? My preferred behavior is that if I choose /Applications for the app, framework goes into /Library; if I choose ~/Applications, libraries go into ~/Library (and don't ask me root

[R] grid.remove() doesn't remove output

2005-11-10 Thread Zepu Zhang
I've found that grid.remove() doesn't clear the output when the grob is the only one on the device (or viewport; I didn't test it). For example: library(grid) grid.newpage() grid.circle(name=cir, x=.5, y=.5, r=.3, gp=gpar(lwd=5)) grid.lines(c(.2, .8), c(.3, .7), name=lin) grid.remove(cir)

[R] problem with grid animation

2005-11-13 Thread Zepu Zhang
I'm trying to do animation with grid. Basically it's a vector field, like what 'quiver' in Matlab creates. I need to update it with grid.edit(). It seems grid erases the whole thing first, then redraws. Therefore the evident 'flash' between frames. Any way to avoid this flash? Thanks.

[R] Possible bugs in 'seek' and 'readBin'

2006-10-21 Thread Zepu Zhang
I found that seek(..., origin = 'current', ...) and readBin(..., what = 'integer', ...) or 'int' do not work correctly. Did anyone have the same experience? __ R-help@stat.math.ethz.ch mailing list

Re: [R] Possible bugs in 'seek' and 'readBin'

2006-10-22 Thread Zepu Zhang
Sorry I can't provide reproducible code because it involves data files. I saw no warning messages. I'm using Mac 10.3, but the R is compiled by myself from command line. I'm reading in data from a XDR formatted file. The first 4 bytes is a 'long' integer, the remainder is double. --- problem

[R] global option settings for grid and lattice?

2006-11-17 Thread Zepu Zhang
Hello, I'd like to be able to set options for grid and lattice globally, once for all subsequent plots, just like what ps.options() does. I walked through the functions of Grid and didn't find it. The following are related things that are available: get.gpar() trellis.par.set() any ideas?