Running ‘testthat.R’ [87s/104s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(egor)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: tibble
  > library(dplyr)
  > 
  > test_check("egor")
  5 Egos/ Ego Networks 
  80 Alters 
  Min. Netsize 9 
  Average Netsize 15.04 
  Max. Netsize 22 
  Average Density 0.488502012607276 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Sampling variables:
    - ids: `1` 
    - weights: sampling_weight 
  Data variables: 
    - .egoID (dbl), sex (chr), age (fct), age.years (int), country (chr), income
      (dbl), sampling_weight (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  5 Egos/ Ego Networks 
  80 Alters 
  Min. Netsize 9 
  Average Netsize 15.04 
  Max. Netsize 22 
  Average Density 0.488502012607276 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Sampling variables:
    - ids: `1` 
    - weights: sampling_weight 
  Data variables: 
    - .egoID (dbl), sex (chr), age (fct), age.years (int), country (chr), income
      (dbl), sampling_weight (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  3 Egos/ Ego Networks 
  28 Alters 
  Min. Netsize 7 
  Average Netsize 9.33333333333333 
  Max. Netsize 12 
  Average Density 0.474627224627225 
  Alter survey design:
    Maximum nominations: Inf 
  32 Egos/ Ego Networks 
  384 Alters 
  Min. Netsize 12 
  Average Netsize 12 
  Max. Netsize 12 
  Average Density 0.5 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Data variables: 
    - .egoID (dbl), sex (fct), age (fct), age.years (int), country (chr), income
      (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  5 Egos/ Ego Networks 
  16 Alters 
  Min. Netsize 0 
  Average Netsize 3.2 
  Max. Netsize 4 
  Average Density 1.33333333333333 
  Alter survey design:
    Maximum nominations: Inf 
  4 Egos/ Ego Networks 
  16 Alters 
  Min. Netsize 4 
  Average Netsize 4 
  Max. Netsize 4 
  Average Density 1.33333333333333 
  Alter survey design:
    Maximum nominations: Inf 
  Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: Filtering out empty alter entries using provided network size values: 32 Egos/ Ego Networks 
  384 Alters 
  Min. Netsize 12 
  Average Netsize 12 
  Max. Netsize 12 
  Average Density 0.5 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Data variables: 
    - .egoID (dbl), sex (fct), age (fct), age.years (int), country (chr), income
      (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  32 Egos/ Ego Networks 
  372 Alters 
  Min. Netsize 0 
  Average Netsize 11.625 
  Max. Netsize 12 
  Average Density 0.5 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Data variables: 
    - .egoID (dbl), sex (fct), age (fct), age.years (int), country (chr), income
      (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  2 Egos/ Ego Networks 
  5 Alters 
  Min. Netsize 2 
  Average Netsize 2.33333333333333 
  Max. Netsize 3 
  Average Density 0 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Sampling variables:
    - ids: `1` 
    - probs: weight 
  Data variables: 
    - .egoID (chr), weight (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  5 Egos/ Ego Networks 
  25 Alters 
  Min. Netsize 5 
  Average Netsize 5 
  Max. Netsize 5 
  Average Density 0.512915129151291 
  
  Ego sampling design:
  Independent Sampling design (with replacement)
  Called via srvyr
  Sampling variables:
    - ids: `1` 
    - probs: w 
  Data variables: 
    - .egoID (dbl), sex (chr), age (fct), age.years (int), country (chr), income
      (dbl), w (dbl), .netsize (dbl)
  Alter survey design:
    Maximum nominations: Inf 
  Saving _problems/test-summary_egor-68.R
  Sorting data by egoID: Transforming alters data to long format: Transforming wide dyad data to edgelist: [ FAIL 1 | WARN 0 | SKIP 18 | PASS 227 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-ei.R:3:11', 'test-ei.R:72:13', 'test-ei.R:85:13',
    'test-ei.R:95:13', 'test-ei.R:125:13', 'test-ei.R:141:3', 'test-ei.R:150:3',
    'test-ei.R:164:3', 'test-onefile_to_egor.R:5:3',
    'test-onefile_to_egor.R:35:3', 'test-onefile_to_egor.R:67:3',
    'test-twofiles_to_egor.R:2:3', 'test-twofiles_to_egor.R:34:3',
    'test-twofiles_to_egor.R:65:3', 'test-twofiles_to_egor.R:94:13'
  • empty test (3): , ,
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-summary_egor.R:68:3'): summary.egor() uses weights to calculate average network size ──
  Expected `netsize_no_weights == netsize_with_weights` to be FALSE.
  Differences:
  `actual`:   TRUE 
  `expected`: FALSE
  
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 227 ]
  Error:
  ! Test failures.
  Execution halted