Re: [Rd] Transferring ownership of R-managed buffer

2017-03-30 Thread Tim Keitt
On Thu, Mar 30, 2017 at 3:15 PM, Gabriel Becker wrote: > technically possible So the garbage collector knows the buffer length independently of the SEXPREC length field? Then, yes, its doable, but as you say not advisable. THK http://www.keittlab.org/ [[alternative HTML version delet

Re: [Rd] Transferring ownership of R-managed buffer

2017-03-30 Thread Gabriel Becker
On Thu, Mar 30, 2017 at 11:52 AM, Tim Keitt wrote: > > On Wed, Mar 29, 2017 at 4:56 PM, Gabriel Becker > wrote: > >> The concept of having a vector which is a "window" into another vector >> without duplication ( which I suspect is at least related to your use-case, >> though I could be wrong) i

Re: [Rd] Transferring ownership of R-managed buffer

2017-03-30 Thread Tim Keitt
On Wed, Mar 29, 2017 at 4:56 PM, Gabriel Becker wrote: > The concept of having a vector which is a "window" into another vector > without duplication ( which I suspect is at least related to your use-case, > though I could be wrong) is a special case of one of alt-representations I > have implem

[Rd] get_all_vars() does not handle rhs matrices in formulae

2017-03-30 Thread Thomas J. Leeper
Hello again, It appears that get_all_vars() incorrectly handles model formulae that use a right-hand side (rhs) matrix. For example, consider these two substantively identical models: # model using named variables mpg <- mtcars$mpg wt <- mtcars$wt hp <- mtcars$hp m1 <- lm(mpg ~ wt + hp) # model