Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-05 Thread Mark Klik
thanks Luke, I can work with that and will watch out for changes and new developments in the ALTREP code with great interest. all the best, Mark On Wed, Jun 5, 2019 at 6:02 PM Tierney, Luke wrote: > For now you can use > > R_altrep_inherits(x, R_compact_intseq_class) > > The variable R_compac

Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-05 Thread Tierney, Luke
For now you can use R_altrep_inherits(x, R_compact_intseq_class) The variable R_compact_intseq_class should currently be visible to packages on all platforms, though that may change if we eventually provide a string-based lookup mechanism, e.g. somehting like R_find_altrep_class("compact_intseq"

Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-04 Thread Mark Klik
Hi Gabriel, thanks for your detailed explanation, that definitely clarifies the design choices that were made in setting up the ALTREP framework and I can see how those choices make sure existing code won't break. My specific use-case for wanting to check whether a vector is an ALTREP is the foll

Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-04 Thread Gabriel Becker
Hi Mark, So depending pretty strongly on what you mean by "ALTREP aware", packages aren't necessarily supposed to be ALTREP aware. What I mean by this is that as of right now, ALTREP objects are designed to be interacted with by non-ALTREP-implementing package code, *more-or-less *exactly as stand

Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-04 Thread Mark Klik
thanks for clearing that up, so these methods are actually not meant to be exported on Windows and OSX? Some of the ALTREP methods that now use 'attribute_hidden' would be very useful to packages that aim to be ALTREP aware, should the currently (exported) API be considered final? thanks for your

Re: [Rd] [External] undefined symbol errors when compiling package using ALTREP API

2019-06-04 Thread Tierney, Luke
On Tue, 4 Jun 2019, Mark Klik wrote: > Hello, > > I'm developing a package (lazyvec) that makes full use of the ALTREP > framework (R >= 3.6.0). > One application of the package is to wrap existing ALTREP vectors in a new > ALTREP vector and pass all calls from R to the contained object. The > pur