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)
>
> }
>
>
>
>>
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
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)
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()
>
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
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
6 matches
Mail list logo