Re: [R] converting "call" objects into character

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue, 05 Apr 2011 07:13:30 -0400

On Sun, Apr 3, 2011 at 12:14 PM, Samuel Le <Samuel.Le_at_srlglobal.com> wrote:
> Dear all,
>
>
>
> I would like to log the calls to my functions. I am trying to do this using the function match.call():
>
>
>
> fTest<-function(x)
>
> {
>
>      theCall<-match.call()
>
>      print(theCall)
>
>      return(x)
>
> }
>
>
>
>> fTest(2)
>
> fTest(x = 2)
>
> [1] 2
>
>
>
> I can see "theCall" printed into the console, but I don't manage to convert it into a character to write it into a log file with other informations.
>

See ?trace

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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.
Received on Tue 05 Apr 2011 - 11:15:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 11:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive