GUI Development reg

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

GUI Development reg

Vijayanpadmanabhan
Dear R Group

I have a character vector from which I want to select a few elements and
create a new character vector.
I need a GUI to do this in R Script.
Can someone help?

a<-c("A","B","C","D","E")

## I want to have a GUI  in R that will display elements in "object a"  as
a drop down list.. from there I want to be able to select a few elements
say my requirement is to select "A", "D" and "E" from the list

and want to pass the selection into a new vector b, such that

b<-c("A", "D" , "E")

How do i do this in R?




Regards
Vijayan Padmanabhan


"What is expressed without proof can be denied without proof" - Euclide.

Please visit us at www.itcportal.com
******************************************************************************
This Communication is for the exclusive use of the intended recipient (s) and shall
not attach any liability on the originator or ITC Ltd./its Subsidiaries/its Group
Companies. If you are the addressee, the contents of this email are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorisation from the originator or ITC Ltd./its Subsidiaries/its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Ltd./its Subsidiaries/its Group Companies.
        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: GUI Development reg

Bert Gunter
Vijayan:

Choose one or both from the following.

1. You don't . R is a programming language that you learn. Read the
Intro to R Tutorial to start learning.

2. See the R GUI page on CRAN here: http://www.sciviews.org/_rgui/
 There are several GUI's available for R and you can choose one that
suits.

Cheers,
Bert

On Wed, Nov 14, 2012 at 10:31 PM, Vijayan Padmanabhan
<[hidden email]> wrote:

> Dear R Group
>
> I have a character vector from which I want to select a few elements and
> create a new character vector.
> I need a GUI to do this in R Script.
> Can someone help?
>
> a<-c("A","B","C","D","E")
>
> ## I want to have a GUI  in R that will display elements in "object a"  as
> a drop down list.. from there I want to be able to select a few elements
> say my requirement is to select "A", "D" and "E" from the list
>
> and want to pass the selection into a new vector b, such that
>
> b<-c("A", "D" , "E")
>
> How do i do this in R?
>
>
>
>
> Regards
> Vijayan Padmanabhan
>
>
> "What is expressed without proof can be denied without proof" - Euclide.
>
> Please visit us at www.itcportal.com
> ******************************************************************************
> This Communication is for the exclusive use of the intended recipient (s) and shall
> not attach any liability on the originator or ITC Ltd./its Subsidiaries/its Group
> Companies. If you are the addressee, the contents of this email are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorisation from the originator or ITC Ltd./its Subsidiaries/its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Ltd./its Subsidiaries/its Group Companies.
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: GUI Development reg

Ista Zahn
In reply to this post by Vijayanpadmanabhan
Hi Vijayan,

I just discovered http://www.rstudio.com/shiny/ which I think would
make it pretty easy to do this.

Best,
Ista

On Thu, Nov 15, 2012 at 1:31 AM, Vijayan Padmanabhan
<[hidden email]> wrote:

> Dear R Group
>
> I have a character vector from which I want to select a few elements and
> create a new character vector.
> I need a GUI to do this in R Script.
> Can someone help?
>
> a<-c("A","B","C","D","E")
>
> ## I want to have a GUI  in R that will display elements in "object a"  as
> a drop down list.. from there I want to be able to select a few elements
> say my requirement is to select "A", "D" and "E" from the list
>
> and want to pass the selection into a new vector b, such that
>
> b<-c("A", "D" , "E")
>
> How do i do this in R?
>
>
>
>
> Regards
> Vijayan Padmanabhan
>
>
> "What is expressed without proof can be denied without proof" - Euclide.
>
> Please visit us at www.itcportal.com
> ******************************************************************************
> This Communication is for the exclusive use of the intended recipient (s) and shall
> not attach any liability on the originator or ITC Ltd./its Subsidiaries/its Group
> Companies. If you are the addressee, the contents of this email are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorisation from the originator or ITC Ltd./its Subsidiaries/its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Ltd./its Subsidiaries/its Group Companies.
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: GUI Development reg

jverzaniNWBKZ
In reply to this post by Vijayanpadmanabhan
You can use the `gWidgets` package to do this kind of thing easily enough:

require(gWidgets)
my_vec <- character(0)
items <- state.name ## some  values

handler <- function(h,...) my_vec <<- svalue(h$obj)

w <- gwindow()
g <- ggroup(cont=w, horizontal=FALSE)
## one way to select one or more from many
gcheckboxgroup(items, cont=g, use.table=TRUE, handler=handler)