Re: [R] rpanel / list error

2012-03-12 Thread R. Michael Weylandt
My code doesn't give that error so you must have done something differently -- without seeing your code, I can't tell you what though. Also, please cc the list on follow-up if you are seeking further help. I'm not particularly knowledgeable about rpanel and others might be able to give concrete he

Re: [R] rpanel / list error

2012-03-10 Thread R. Michael Weylandt
Your immediate problem seems to be that you use "sum" as a variable name when it is also a function name. You also have scoping issues that result from how you're using with() -- if you don't return an object, it gets thrown away after the with() function is done (part of the functional paradigm) -

Re: [R] rpanel / list error

2012-03-09 Thread jism7690
Hi Michael, Thank you for your reply. I have uploaded the minimum, I have left out the formulas for calculating the amounts as they are not important to the loop. Basically I have a while loop running that adds to the list of values and then outside this loop I have a list called sis, this is the

Re: [R] rpanel / list error

2012-03-09 Thread R. Michael Weylandt
Yes, please upload some code / data (minimal working example). The easiest way to upload data is to use dput() for a plain text representation. Also remember that the majority of R-Helpers don't use Nabble (rather they use an email client directly) so it's easier for us if you put things in the bod

[R] rpanel / list error

2012-03-08 Thread jism7690
Hi All, I have created a simulation that works perfect and I have the results been returned in a list as I have multiple values. I then decided to include some user interaction by using the package rpanel, I now get the error: object of type 'builtin' is not subsettable when I attempted to have

Re: [R] rpanel package - retrieve data from panel

2011-11-08 Thread michalseneca
I found names(y)<-y before the end is working ;) some more ideas ? -- View this message in context: http://r.789695.n4.nabble.com/rpanel-package-retrieve-data-from-panel-tp4016953p4017082.html Sent from the R help mailing list archive at Nabble.com.

[R] rpanel package - retrieve data from panel

2011-11-08 Thread michalseneca
Dear Co-Forumeees Does anybody have experience with using rpanel..or how to retrieve data from created panel. For example my panel draws some interactive graph and computes something inside the panel. Question : is there a way to retrieve those data ? For illustration: if (interactive()) {

[R] rpanel

2011-10-11 Thread Pascal A. Niklaus
Dear all, I am struggling to align "textentry" fields in a Tcl/Tk widget. In the example below, I'd like to have the boxes aligned. library(rpanel) panel <- rp.control(title="title",size=c(100,100)) rp.textentry(panel,var=a,labels="Variable A", initval="1",pos=list(row=0,column=0

[R] rpanel rp.tkrplot: x&y when using layout

2011-02-24 Thread Philip Wilson
Hi all, I wish to use rp.tkrplot from the rpanel package with subplots produced by layout or split.screen. My problem is that I want to use a click function, but I can't work out how to convert the x and y values it produces into the values on the plots as unlike for a single plot they don't