Brian & Duncan:
Thanks. This was exactly what I needed to know.
Terry
On 03/27/2012 08:41 AM, Prof Brian Ripley wrote:
On 27/03/2012 14:22, Terry Therneau wrote:
I received the following note this AM. The problem is, I'm not quite
sure how to fix it.
Can one use PROTECT(coxlist(eval(PROTEC
On 12-03-27 9:22 AM, Terry Therneau wrote:
I received the following note this AM. The problem is, I'm not quite
sure how to fix it.
Can one use PROTECT(coxlist(eval(PROTECT , do I create an
intermediate variable, or otherwise?
I think both would work. The usual style in R sources is to us
On 27/03/2012 14:22, Terry Therneau wrote:
I received the following note this AM. The problem is, I'm not quite
sure how to fix it.
Can one use PROTECT(coxlist(eval(PROTECT , do I create an
intermediate variable, or otherwise?
You can, but I find it easiest to follow if you create an interm
On 01/09/2010 02:04 AM, Guillaume Yziquel wrote:
Guillaume Yziquel a écrit :
Simon Urbanek a écrit :
If you have suggestions for extending the API, feel free to post them
with exact explanations how in general that extensions could be
useful (general is the key word here - I think so far it wa
Guillaume Yziquel a écrit :
Simon Urbanek a écrit :
If you have suggestions for extending the API, feel free to post them
with exact explanations how in general that extensions could be useful
(general is the key word here - I think so far it was rather to hack
around your way of implementin
Simon Urbanek a écrit :
If you have suggestions for extending the API, feel free to post them
with exact explanations how in general that extensions could be useful
(general is the key word here - I think so far it was rather to hack
around your way of implementing it). [And FWIW tryEval *is*
Simon Urbanek a écrit :
No, because you cannot use CHARSXP as a TAG. TAGs are always symbols.
Therefore, logically, you must register it first in (or obtain from) the symbol
table using install.
OK. That's R side.
OCaml side, I need to have as little side-effects as possible. Symbol
assign
On Dec 1, 2009, at 8:32 PM, Guillaume Yziquel wrote:
> Simon Urbanek a écrit :
>> You just pass it as value of the call. I suspect the reason it doesn't work
>> is in your code, not in the facility (note that the link above is useless
>> since the construction is mystery - if you were construct
Simon Urbanek a écrit :
You just pass it as value of the call. I suspect the reason it doesn't
work is in your code, not in the facility (note that the link above is
useless since the construction is mystery - if you were constructing it
right, it would work ;)).
Small example:
SEXP myEval
Guillaume Yziquel a écrit :
Guillaume Yziquel a écrit :
One last thing, concerning the use of promises. If I do install,
findVar, without forcing the resulting promise, and then construct the
call, I get a failure:
Replacing findfun by findvar works in this specific case. See below.
Could
Guillaume Yziquel a écrit :
One last thing, concerning the use of promises. If I do install,
findVar, without forcing the resulting promise, and then construct the
call, I get a failure:
# R.eval_langsxp (R.langsxp_of_list [(R.symbol "str"); (R.symbol
"lm")] 2);;
Erreur dans function (objec
Simon Urbanek a écrit :
On Nov 30, 2009, at 16:07 , Guillaume Yziquel wrote:
Simon Urbanek a écrit :
And it goes then to my other question: How can you pass to eval a
LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved?
You just pass it as value of the call. I suspect the r
On Nov 30, 2009, at 16:07 , Guillaume Yziquel wrote:
Simon Urbanek a écrit :
And it goes then to my other question: How can you pass to eval a
LANGSXP where the CAR is an *anonymous* function, no SYMSXP
involved?
You just pass it as value of the call. I suspect the reason it
doesn't wor
Simon Urbanek a écrit :
And it goes then to my other question: How can you pass to eval a
LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved?
You just pass it as value of the call. I suspect the reason it doesn't
work is in your code, not in the facility (note that the link
On Nov 30, 2009, at 13:14 , Guillaume Yziquel wrote:
Simon Urbanek a écrit :
Because I've been unable to find what exactly applyClosure or eval
requires, when it comes to the structure of the argument LANGSXP.
For example.
LANGSXP is simply a pairlist representing the expression, e.g. to
Simon Urbanek a écrit :
Because I've been unable to find what exactly applyClosure or eval
requires, when it comes to the structure of the argument LANGSXP. For
example.
LANGSXP is simply a pairlist representing the expression, e.g. to look
at "a+2" expression:
> .Internal(inspect(quot
On Nov 30, 2009, at 12:08 , Guillaume Yziquel wrote:
Simon Urbanek a écrit :
You're talking about two entirely different things -- bypassing the
API is a very bad idea, but it has nothing to do with your last
paragraph.
It's very good to hear that it's two different things. This has been
Simon Urbanek a écrit :
You're talking about two entirely different things -- bypassing the API
is a very bad idea, but it has nothing to do with your last paragraph.
It's very good to hear that it's two different things. This has been
quite unclear to me.
The API gives you access all use
Guillaume,
On Nov 29, 2009, at 13:57 , Guillaume Yziquel wrote:
Simon Urbanek a écrit :
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote:
FWIW what I think you should be really looking at is
R_PreserveObject/R_ReleaseObject.
OK. Thanks.
I would suggest looking at the many other R embe
Simon Urbanek a écrit :
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote:
FWIW what I think you should be really looking at is
R_PreserveObject/R_ReleaseObject.
OK. Thanks.
I would suggest looking at the many other R embeddings in other languages that
already exist since I don't think
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote:
> Whit Armstrong a écrit :
>> I've had success w/ using a reference counting paradigm in which the outside
>> memory manager calls UNPROTECT_PTR(R_object_); in its destructor.
>> So, in my case (using c++ ) if objects are allocated on the heap
Whit Armstrong a écrit :
I've had success w/ using a reference counting paradigm in which the outside
memory manager calls UNPROTECT_PTR(R_object_); in its destructor.
So, in my case (using c++ ) if objects are allocated on the heap, which
allocate R objects as their backend storage, I don't hav
I've had success w/ using a reference counting paradigm in which the outside
memory manager calls UNPROTECT_PTR(R_object_); in its destructor.
So, in my case (using c++ ) if objects are allocated on the heap, which
allocate R objects as their backend storage, I don't have to worry about out
of ord
Thank you very much, that was very helpful. Now I think I understand
(parts of) the protection mechanism.
/Kasper
On May 23, 2006, at 9:03 PM, Prof Brian Ripley wrote:
> On Tue, 23 May 2006, Kasper Daniel Hansen wrote:
>
>> Thank you very much. I think I do have a clearer understanding,
>> b
On Tue, 23 May 2006, Kasper Daniel Hansen wrote:
> Thank you very much. I think I do have a clearer understanding, but I have a
> few questions
>
> On May 23, 2006, at 12:55 AM, Prof Brian Ripley wrote:
>
>> On Tue, 23 May 2006, Prof Brian Ripley wrote:
>>
>>> On Mon, 22 May 2006, Kasper Daniel
Thank you very much. I think I do have a clearer understanding, but I
have a few questions
On May 23, 2006, at 12:55 AM, Prof Brian Ripley wrote:
> On Tue, 23 May 2006, Prof Brian Ripley wrote:
>
>> On Mon, 22 May 2006, Kasper Daniel Hansen wrote:
>>
>>> I have a few simple questions about the
On Tue, 23 May 2006, Prof Brian Ripley wrote:
> On Mon, 22 May 2006, Kasper Daniel Hansen wrote:
>
>> I have a few simple questions about the usage of PROTECT, more
>> specifically how careful one needs to be. Simple yes/no answers are
>> fine.
>
> (Except that in the last case they would be misle
On Mon, 22 May 2006, Kasper Daniel Hansen wrote:
> I have a few simple questions about the usage of PROTECT, more
> specifically how careful one needs to be. Simple yes/no answers are
> fine.
(Except that in the last case they would be misleading.)
> Most of the uses I have seen do protection wh
On Wed, 17 May 2006, Michael Dondrup wrote:
> Thank you very much, Thomas!
>
> Thanks to the explanation, I think I could almost track down that bug. May I,
> just for clarification, ask a further bunch of questions (sorry). From what
> you say, did I get it right:
>
> - 'error in unprotect: stac
Thank you very much, Thomas!
Thanks to the explanation, I think I could almost track down that bug. May I,
just for clarification, ask a further bunch of questions (sorry). From what
you say, did I get it right:
- 'error in unprotect: stack imbalance' is only a warning, it will not cause
ter
On Wed, 17 May 2006, Michael Dondrup wrote:
> Hi,
>
> Im currently trying to debug a 'error in unprotect: stack imbalance' problem
> and I am curious about two basic questions on the use of PROTECT and
> UNPROTECT, which I could not figure out:
>
> - which objects have to be protected, namely, if
31 matches
Mail list logo