Displaying 1 result from an estimated 1 matches for "myaltrep".
Did you mean:
altrep
2019 Aug 12
1
ALTREP package interaction with testthat
...e a non-ALTREP object. Here is an example
```
context("altrep")
length_func<-function(x){
return(length(x))
}
setAltClass(className = "test", classType = "real")
setAltMethod(className = "test", getLength = length_func)
testData = runif(10)
myAltrep = makeAltrep("test", testData)
test_that("Auto serialize", {
browser()
A = 10
A_serialized=serialize(A,NULL)
B = new.env()
B_serialized=serialize(B,NULL)
})
```
There is nothing but two variables A and B in the test function. I use
browser() to sto...