Re: [R] gWidgets process management

2008-02-13 Thread Peter McMahan
wFunction", but I can add an extra argument to conditionally check if it's called in "interactive mode") Thanks again to everybody for their help. Peter On Feb 13, 2008, at 11:18 AM, Peter McMahan wrote: > Thanks for that link to the mac Gtk2, it's been very help

Re: [R] gWidgets process management

2008-02-13 Thread Peter McMahan
indow close and then the process start, all in a while loop. This won't allow for a button to stop the simulation, but it will do. Thanks for all your help everybody. Peter On Feb 12, 2008, at 1:56 PM, Michael Lawrence wrote: > On Feb 12, 2008 1:51 PM, Peter McMahan <[EMAIL PROTECTED]&g

Re: [R] gWidgets process management

2008-02-12 Thread Peter McMahan
Thanks, that's very helpful. Unfortunately Gtk2 is difficult to get running on a Mac, so I've been trying the gWidgetstcktk interface. It sounds like the behavior you're describing is exactly what I want, so it may just be a difference in the TGtk2 and tcltk event loops? In your example, can yo

[R] gWidgets process management

2008-02-12 Thread mcmahan
Hello, I'm trying to make a graphical interface for an R function I've written. A common use for the function is to call it with specific parameters, and then watch the output as it evolves. There's not necessarily a logical stopping point, so I usually use ctrl-C when I'm done to stop it. I've mad

Re: [R] changing the values in a list

2008-01-10 Thread Peter McMahan
On Jan 10, 2008, at 9:48 PM, Peter McMahan wrote: > y <- matrix(rep(y,ncol(x)),nrow=nrow(y)) > x[is.na(x)] <- y[is.na(x)] oops, i meant: y <- matrix(rep(y,ncol(res)),nrow=nrow(y)) res[is.na(res)] <- y[is.na(res)] __ R-help@r-projec

Re: [R] changing the values in a list

2008-01-10 Thread Peter McMahan
try: res <- apply(res,2,function(x){x[is.na(x)] <- y[is.na(x)];x}) should work, though not the most efficient/elegant alternately: y <- matrix(rep(y,ncol(x)),nrow=nrow(y)) x[is.na(x)] <- y[is.na(x)] (also not the most efficient/elegant) On Jan 10, 2008, at 9:38 PM, dxc13 wrote: > > useR's, > >

Re: [R] loading igraph package on Solaris

2008-01-10 Thread Peter McMahan
ea if this was the right thing to do) I compiled and installed using: R CMD INSTALL --configure-args="CC='gcc'" igraph and still, library(igraph) gives me: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/home/mcmahan/

Re: [R] installing and using a package

2008-01-10 Thread Peter McMahan
R distinguishes between "installing" and "loading" a package. It looks like your installation of yags went fine. Now type library(yags) to load the package. now help(yags) should bring up something, as should example(yags) . __ R-help@r-project.org mai

[R] loading igraph package on Solaris

2008-01-08 Thread Peter McMahan
in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/home/mcmahan/R/i386-pc- solaris2.10-library/2.5/igraph/libs/igraph.so': ld.so.1: R: fatal: relocation error: file /home/mcmahan/R/i386-pc- solaris2.10-library/2.5/igraph/libs/igraph.so: symbol