R Under development (unstable) (2023-12-13 r85679 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > > library(aster) > > aster:::setfam(fam.default()) > > .C(aster:::C_aster_check_model, + nind = as.integer(42), + nnode = as.integer(4), + pred = as.integer(c(0, 1, 2, 3)), + fam = as.integer(c(1, 1, 2, 3))) $nind [1] 42 $nnode [1] 4 $pred [1] 0 1 2 3 $fam [1] 1 1 2 3 > > options(error=dump.frames) > > .C(aster:::C_aster_check_model, + nind = as.integer(0), + nnode = as.integer(4), + pred = as.integer(c(0, 1, 2, 3)), + fam = as.integer(c(1, 1, 2, 3))) Error: 'nind' must be positive integer > > .C(aster:::C_aster_check_model, + nind = as.integer(42), + nnode = as.integer(-3), + pred = as.integer(c(0, 1, 2, 3)), + fam = as.integer(c(1, 1, 2, 3))) Error: 'nnode' must be positive integer > > .C(aster:::C_aster_check_model, + nind = as.integer(42), + nnode = as.integer(4), + pred = as.integer(c(0, 2, 2, 3)), + fam = as.integer(c(1, 1, 2, 3))) Error: pred[2] = 2, invalid > > .C(aster:::C_aster_check_model, + nind = as.integer(42), + nnode = as.integer(4), + pred = as.integer(c(0, 1, 2, 3)), + fam = as.integer(c(1, 1, 2, 25))) Error: family 25 not valid > > > proc.time() user system elapsed 0.10 0.06 0.15