I attach a dbarts object and test data matrix to this message.
dbarts_debug_example.zip
The example code below sometimes crashes when there is one row in the test data matrix, and sometimes it does not crash.
library(dbarts)
load(file = "......./debugsampler.RData" )
load(file = "....../debugtempbind.RData" )
sampler$predict(as.matrix(rep(tempbind[1,1],100),100,1))
sampler$predict(as.matrix(rep(tempbind[1,1],2),2,1))
sampler$predict(as.matrix(rep(tempbind[1,1],1),1,1))
testpredvec <- sampler$predict(x.test = as.matrix(tempbind[,]), offset.test = NULL)
RStudio: Version 1.3.1056
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
EDIT: I ran this code on another computer and it did not crash.