[R] How to call a function defined within another function

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Oct 20 11:40:00 CEST 2011



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.



More information about the R-help mailing list