DataSlingers / IMPACC

IMPACC R package
3 stars 0 forks source link

error when K=NULL #4

Open jarbet opened 7 months ago

jarbet commented 7 months ago

There is an error when K=NULL, which I think is due to the new heatmap function:

library(IMPACC);
data(yan);
set.seed(123);
impacc <- IMPACC(
    d = yan$sc_cnt,
    K = NULL,
    reps = 100,
    verbose = FALSE,
    seed = 123
    )
#> Error in IMPACC(d = yan$sc_cnt, K = NULL, reps = 100, verbose = FALSE, : unused argument (seed = 123)

My current solution is to just set the value of K, but it be nice to support K=NULL as well:

library(IMPACC);
data(yan);
set.seed(123);
impacc <- IMPACC(
    d = yan$sc_cnt,
    K = 3,
    reps = 100,
    verbose = FALSE
    )
#> Burn-in stage
#> Adaptive stage
#> Done

Created on 2024-02-05 with reprex v2.0.2