Re: [Rd] ALTREP wrappers and factors

2019-08-16 Thread Bemis, Kylie
Using R_tryWrap() at the C-level works perfectly and does what I need. Thanks, Gabe! Yes, my reference count is maxed (I assume) because I am using MARK_NOT_MUTABLE(). Which makes me think I may want to return a wrapped matter/ALTREP object by default, so the user can set the names() and dim()

Re: [Rd] ALTREP wrappers and factors

2019-07-18 Thread Gabriel Becker
Hi Jiefei and Kylie, Great to see people engaging with the ALTREP framework and identifying places we may need more tooling. Comments inline. On Thu, Jul 18, 2019 at 12:22 PM King Jiefei wrote: > > If that is the case and you are 100% sure the reference number should be 1 > for your variable *y

Re: [Rd] ALTREP wrappers and factors

2019-07-18 Thread King Jiefei
Hi Kylie, For your question, I don't think a wrapper can completely solve your problem. The duplication occurs since your variable y has more than 1 reference number( Please see highlighted), so even you have a wrapper, any changes on the value of the wrapper still can trigger the duplication. >