Message-ID: <4E9FEC70.1010406@statistik.tu-dortmund.de>
Date: 2011-10-20T09:40:00Z
From: Uwe Ligges
Subject: How to call a function defined within another function
In-Reply-To: <CABR8ZvoHA-wg2fPRLfDhCKnBcuE4w_EK_Tt+-P+9wa+Cac1ENg@mail.gmail.com>
On 19.10.2011 22:08, S?bastien Bihorel wrote:
> Dear R-users,
>
> I would need some advices on the proper way to call a particular function.
> This function is called scope.char and it is embedded in the step.gam
> function from the gam package. I am trying to call scope.char directly in a
> script but I did not find the proper way to do so. Is this even possible? If
> so, what is the proper syntax?
>
You cannot, since it is only defined in the environment of the function
step.gam while that is active. The gam license is "GPL-2", so go ahead.
Best,
Uwe Ligges
> Thank you for your time and help.
>
> Sebastien
>
> [[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.