A value will be assigned to 'cdata', but it will happen within the frame of
the callback. You'll need to do something with it there, or use the <<-
operator to assign it to the global workspace (recommended only while you
prototype). In the context of a larger application, you'll need an
underlying mutable data model, perhaps implemented with a reference class
object or an environment.

Michael


On Tue, May 14, 2013 at 2:10 PM, Thames, Chandra <chandra.tha...@frx.com>wrote:

> Thank you! That did work. But I wanted to create a data frame from the
> file that is choosen. I used the following code:
> gSignalConnect(buttoncount,"file-set",function(buttoncount){
>                           cdata <- read.csv(buttoncount$getFilename())
>                           })
>
> I use the cdata <- read.csv(buttoncount$getFilename()) statement instead
> of the print(buttoncount$getFilename()). When I do this I don't get an
> error, but I also the cdata is not created. Am I missing something?
>
> Thanks!
>
> Chandra
>
>
>
> **********************************************************************
> This e-mail and its attachments may contain Forest Laboratories, Inc.
> proprietary information that is privileged, confidential or subject to
> copyright belonging to Forest Laboratories, Inc. This e-mail is intended
> solely for the use of the individual or entity to which it is addressed. If
> you are not the intended recipient of this e-mail, or the employee or agent
> responsible for delivering this e-mail to the intended recipient, you are
> hereby notified that any dissemination, distribution, copying or action
> taken in relation to the contents of and attachments to this e-mail is
> strictly prohibited and may be unlawful. If you have received this e-mail
> in error, please notify the sender immediately and permanently delete the
> original and any copy of this e-mail and any printout.
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-GUI mailing list
> R-SIG-GUI@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-gui

Reply via email to