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

2011-04-05 Thread Gabor Grothendieck
On Sun, Apr 3, 2011 at 12:14 PM, Samuel Le 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) > > } > > > >>

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

2011-04-05 Thread Samuel Le
1 18:56 To: Douglas Bates Cc: Samuel Le; r-help@r-project.org Subject: Re: [R] converting "call" objects into character On Apr 3, 2011, at 1:22 PM, Douglas Bates wrote: > On Sun, Apr 3, 2011 at 11:42 AM, David Winsemius > wrote: >> >> On Apr 3, 2011, at 12:1

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

2011-04-03 Thread David Winsemius
On Apr 3, 2011, at 1:22 PM, Douglas Bates wrote: On Sun, Apr 3, 2011 at 11:42 AM, David Winsemius > wrote: On Apr 3, 2011, at 12:14 PM, Samuel Le 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)

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

2011-04-03 Thread Douglas Bates
On Sun, Apr 3, 2011 at 11:42 AM, David Winsemius wrote: > > On Apr 3, 2011, at 12:14 PM, Samuel Le 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() >      

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

2011-04-03 Thread David Winsemius
On Apr 3, 2011, at 12:14 PM, Samuel Le 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(list(x=x, logf = theCall)) } > fTest(x=2)$x [1

[R] converting "call" objects into character

2011-04-03 Thread Samuel Le
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, bu