search for: altwrapp

Displaying 3 results from an estimated 3 matches for "altwrapp".

Did you mean: altwrapper
2019 Aug 12
1
ALTREP package interaction with testthat
Hi I found a weird problem in testthat while working with an ALTREP package. The package name is AltWrapper. My ALTREP serialize function is called even when I'm trying to serialize a non-ALTREP object. Here is an example ``` context("altrep") length_func<-function(x){ return(length(x)) } setAltClass(className = "test", classType = "real") setAltMethod...
2019 Jul 18
0
ALTREP wrappers and factors
...XP, the C++ function should be placed at the end of your *matter:::as.altrep *function. I don't know if there is any simpler way to do that and I'll be happy to see any opinion. Also, I notice that you are using ALTREP to create a wrapper for your *matter_vec *class. I'm an author of AltWrapper package and the package is able to define an ALTREP in pure R level, it is capable to add an attribute to ALTREP object when creating the object and has a correct reference number. The simplest example would be *CODE* ``` library(AltWrapper) inspectFunc <- function(x) cat("Altrep object\...
2019 Jul 17
2
ALTREP wrappers and factors
Hello, I?m experimenting with ALTREP and was wondering if there is a preferred way to create an ALTREP wrapper vector without using .Internal(wrap_meta(?)), which R CMD check doesn?t like since it uses an .Internal() function. I was trying to create a factor that used an ALTREP integer, but attempting to set the class and levels attributes always ended up duplicating and materializing the