Re: [Rd] ALTREP package interaction with testthat

2019-08-12 Thread Dirk Eddelbuettel
On 12 August 2019 at 12:56, Wang Jiefei wrote: | I am stuck here. I do not know if it is a bug of my package or testthat or | the ALTREP implementation of R or possibly the interaction between them. I don't have any concrete advice for your issue here but when I find myself in similar debugging

[Rd] ALTREP package interaction with testthat

2019-08-12 Thread Wang Jiefei
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