R Under development (unstable) (2024-09-25 r87194 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > set.seed(1) > > library(vistla) > > data(chain) > > vistla(Y~.,data=chain,threads=2)->V > > expected_paths<-list( + M2=c("M2","M1","Y"), + M3=c("M3","M2","M1","Y"), + M4=c("M4","M3","M2","M1","Y"), + T=c("T","M4","M3","M2","M1","Y") + ) > > stopifnot(identical( + paths(V), + expected_paths + )) > > stopifnot(identical( + hierarchy(V)$name, + names(chain) + )) > > > proc.time() user system elapsed 0.17 0.03 0.18