search for: extract_subset

Displaying 6 results from an estimated 6 matches for "extract_subset".

2020 Feb 03
1
ALTREP "wrapper" classes needs an Extract_subset method
Hi all, I believe I have found a bug (or perhaps just an oversight) with the ALTREP wrapper classes. The short form of this is that I believe that the wrapper classes need to override the default ALTREP `Extract_subset_method()` with a method that calls `Extract_subset()` on the "wrapped" object. I have a patch prepared here: https://github.com/DavisVaughan/r-source/pull/1 There is currently no call to `R_set_altvec_Extract_subset_method()` in the wrapper class init functions. This means that the defa...
2019 Jul 24
1
[External] Re: Any plans for ALTREP lists (VECSXP)?
...e 'altlist'. > > 'altrep' methods that a class can provide: > > Unserialize or UnserializeEX > Serialized_state > Duplicate or DuplicateEx > Coerce > Inspect > Length > > 'altvec' methods a class should provide: > > Extract_subset > not Dataptr > not Dataptr_or_null > > 'altlist' specific methods: > > Elt > Set_elt > > Best, > > luke > > On Tue, 23 Jul 2019, Gabriel Becker wrote: > > > Hi Kylie, > > > > Is it a list with only numerics in it? (I o...
2020 Sep 07
0
some questions about R internal SEXP types
...come from. So I guess a better phrasing of my original question is whether valid SEXP value fields ever hold C NULL. If they do, then I have a problem. I'm very much hoping that some kind of sanity in the code prevails and this doesn't ever happen. > The problem that jumps out at me is Extract_subset. Now I'd need to > do some digging to be certain but there, for some types in some > situations, it DOES seem like you might need to return the R-NULL and > find yourself unable to do so. I have not looked at all at ALTREP (though it looks like it would be valuable given the goal of...
2019 Jul 24
0
[External] Re: Any plans for ALTREP lists (VECSXP)?
...ight think. A reasonable name for the abstract class would be 'altlist'. 'altrep' methods that a class can provide: Unserialize or UnserializeEX Serialized_state Duplicate or DuplicateEx Coerce Inspect Length 'altvec' methods a class should provide: Extract_subset not Dataptr not Dataptr_or_null 'altlist' specific methods: Elt Set_elt Best, luke On Tue, 23 Jul 2019, Gabriel Becker wrote: > Hi Kylie, > > Is it a list with only numerics in it? (I only see REALSXPs there, but > obviously inspect isn't showing all of the...
2019 Jul 23
3
Any plans for ALTREP lists (VECSXP)?
Hi Kylie, Is it a list with only numerics in it? (I only see REALSXPs there, but obviously inspect isn't showing all of them). If so, you could load it up into one big vector and then also keep partitioning information around. Bioconductor does this (see ?IRanges::CompressedList ). The potential benefit here being that the underlying large vector could then be a big out-of-memory altrep. How
2020 Sep 06
8
some questions about R internal SEXP types
Hello, I am writing an R/Go interoperability tool[1] that work similarly to Rcpp; the tool takes packages written in Go and performs the necessary Go type analysis to wrap the Go code with C and R shims that allow the Go code to then be called from R. The system is largely complete (with the exception of having a clean approach to handling generalised attributes in the easy case[2] - the less