R Under development (unstable) (2024-03-25 r86192 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. > #testing CV-related functions > > ## code here that contains the tests > > > rm(list = ls()) > library(PAFit) > # alpha = 0.5, s = 10, ii = 220 > # for CRAN. In developing, set ii from 1 to 1000 > for (ii in 1) { + set.seed(2) + print(ii) + prob_m <- "FALSE" + inc <- "FALSE" + log <- c("FALSE") + i <- 1 + + net <- generate_net(N = 1000, m = 1,prob_m = prob_m, + increase = inc, log = log, multiple_node = 1, num_seed = 20, + mode = i, s = 10,alpha = 0.5) + + net_stat <- get_statistics(net,deg_threshold = 5, + binning = TRUE, g = 50) + + result_A <- only_A_estimate(net, net_stat, stop_cond = 10^-5) + + result <- joint_estimate(net, net_stat, stop_cond = 10^-5) + plot(result,net_stats) + } [1] 1 > > > > > > proc.time() user system elapsed 4.03 0.37 4.20