[R] HANDLER FUNCTION PROBLEM
Bert Gunter
gunter.berton at gene.com
Fri Aug 29 16:32:44 CEST 2014
1, Please post in plain text, not HTML, as requested by the posting guide.
2. R is not C, You define, not declare, functions, whose scope and
availability are then determined appropriately. Where is ga() defined?
3. Have you read an Introduction to R or other R tutorial? If not, do
so before posting further. You need to do due diligence before
requesting help.
4. If you have, read the R Language Definition Ref for details of how
scoping in R is determined. R is a functional type language (like LISP
or Scheme)
5. Functions are fully first class objects and can be returned by
other functions.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll
On Fri, Aug 29, 2014 at 2:26 AM, Ashis Deb <ashisdeb83 at gmail.com> wrote:
> Hello ,
>
>
>
> I have a function handler using gWidgets like below ,, i had
> declared a function inside this function . But dont have the
> idea how to call the function outside the handler function.
>
>
>
> addHandlerClicked(AAS,handler=function(h,...)
> {
>
> ga() <<< THIS IS THE FUNCTION TO BE
> CALLED OUTSIDE
>
> {
>
> }
>
>
> })
>
>
> ga() <<--- WANTED IT OUTSIDE
>
>
>
> can anyone help please
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
More information about the R-help
mailing list