Running 'globalRecoding_test.R' [4s]
  Running 'microaggregation_test.R' [3s]
  Running 'reporting_test.R' [5s]
  Running 'testhat.R' [5s]
Running the tests in 'tests/testhat.R' failed.
Complete output:
  > library(testthat)
  > library(sdcMicro)
  --------
  This is sdcMicro v5.2.0.
  For references, please have a look at citation('sdcMicro')
  Note: since version 5.0.0, the graphical user-interface is a shiny-app that can be started with sdcApp().
  Please submit suggestions and bugs at: https://github.com/sdcTools/sdcMicro/issues
  --------
  > 
  > test_check("sdcMicro")
  -- 1. Error: data frame method gives the same as method on sdcMicro object (@tes
  Cannot use := to add columns to a null data.table (no columns), currently. You can use := to add (empty) columns to a 0-row data.table (1 or more empty columns), though.
  1: kAnon(df, keyVars = 1:3) at testthat/test_freqCalc.R:7
  2: localSuppression(obj, k = k, importance = importance, combs = combs, ...)
  3: localSuppressionX(obj = obj, k = k, importance = importance, combs = combs, ...)
  4: localSuppressionX(obj = obj, k = k, importance = importance, combs = combs, ...)
  5: .local(obj, k, importance, combs, ...)
  6: localSuppressionWORK(x = obj, keyVars = keyVars, k = k, strataVars = strataVars, 
         importance = importance, combs = combs, alpha = 1)
  7: suppSubset(x = inpDat, k = k, importance = importance, alpha = alpha)
  8: freqCalc(x, keyVars = keyVars, alpha = alpha)
  9: dat_with_na[, `:=`(tmpid, .I)]
  10: `[.data.table`(dat_with_na, , `:=`(tmpid, .I))
  
  -- 2. Error: method1 frequencies should be 2,2,2,2,1 (@test_freqCalc.R#110)  ---
  Cannot use := to add columns to a null data.table (no columns), currently. You can use := to add (empty) columns to a 0-row data.table (1 or more empty columns), though.
  1: kAnon(sdc) at testthat/test_freqCalc.R:110
  2: localSuppression(obj, k = k, importance = importance, combs = combs, ...)
  3: localSuppressionX(obj = obj, k = k, importance = importance, combs = combs, ...)
  4: localSuppressionX(obj = obj, k = k, importance = importance, combs = combs, ...)
  5: .local(obj, k, importance, combs, ...)
  6: localSuppressionWORK(x = df, keyVars = keyVars, strataVars = stratV, k = k, combs = combs, 
         importance = importance, alpha = alpha)
  7: suppSubset(x = inpDat, k = k, importance = importance, alpha = alpha)
  8: freqCalc(x, keyVars = keyVars, alpha = alpha)
  9: dat_with_na[, `:=`(tmpid, .I)]
  10: `[.data.table`(dat_with_na, , `:=`(tmpid, .I))
  
  Number of changed observations: 
  - - - - - - - - - - - 
  x != x_pram : 97 (2.12%)
  Variable:  x
   ----------------------
  Frequencies in original and perturbed data:
                                  x   2    4  5  6  9 NA
  1:           Original Frequencies 814 3697 19 34 16  0
  2: Frequencies after Perturbation 832 3691 15 28 14  0
  
  Transitions:
      transition Frequency
   1:    1 --> 1       789
   2:    1 --> 2        21
   3:    1 --> 3         1
   4:    1 --> 4         2
   5:    1 --> 5         1
   6:    2 --> 1        36
   7:    2 --> 2      3652
   8:    2 --> 3         3
   9:    2 --> 4         4
  10:    2 --> 5         2
  11:    3 --> 1         4
  12:    3 --> 2         4
  13:    3 --> 3        10
  14:    3 --> 4         1
  15:    4 --> 1         3
  16:    4 --> 2        10
  17:    4 --> 4        21
  18:    5 --> 2         4
  19:    5 --> 3         1
  20:    5 --> 5        11
  
  Number of changed observations: 
  - - - - - - - - - - - 
  roof != roof_pram : 144 (3.14%)
  Variable:  roof
   ----------------------
  Frequencies in original and perturbed data:
                               roof   2    4  5  6  9 NA
  1:           Original Frequencies 814 3697 19 34 16  0
  2: Frequencies after Perturbation 817 3703 16 29 15  0
  
  Transitions:
      transition Frequency
   1:    1 --> 1       753
   2:    1 --> 2        51
   3:    1 --> 3         1
   4:    1 --> 4         6
   5:    1 --> 5         3
   6:    2 --> 1        50
   7:    2 --> 2      3640
   8:    2 --> 4         4
   9:    2 --> 5         3
  10:    3 --> 1         3
  11:    3 --> 2         1
  12:    3 --> 3        15
  13:    4 --> 1         7
  14:    4 --> 2         8
  15:    4 --> 4        19
  16:    5 --> 1         4
  17:    5 --> 2         3
  18:    5 --> 5         9
  
  Number of changed observations: 
  - - - - - - - - - - - 
  roof != roof_pram : 288 (6.29%)
  walls != walls_pram : 251 (5.48%)
  water != water_pram : 440 (9.61%)
  Number of changed observations: 
  - - - - - - - - - - - 
  roof != roof_pram : 79 (1.72%)
  walls != walls_pram : 112 (2.45%)
  water != water_pram : 261 (5.7%)
  Number of changed observations: 
  - - - - - - - - - - - 
  roof != roof_pram : 0 (0%)
  Number of changed observations: 
  - - - - - - - - - - - 
  roof != roof_pram : 0 (0%)
  walls != walls_pram : 342 (7.47%)
  Variable:  roof
   ----------------------
  Frequencies in original and perturbed data:
                               roof   2    4  5  6  9 NA
  1:           Original Frequencies 814 3697 19 34 16  0
  2: Frequencies after Perturbation 814 3697 19 34 16  0
  
  Transitions:
     transition Frequency
  1:    1 --> 1       814
  2:    2 --> 2      3697
  3:    3 --> 3        19
  4:    4 --> 4        34
  5:    5 --> 5        16
  
  Variable:  walls
   ----------------------
  Frequencies in original and perturbed data:
                              walls    2    3  9 NA
  1:           Original Frequencies 1203 3327 50  0
  2: Frequencies after Perturbation 1225 3311 44  0
  
  Transitions:
     transition Frequency
  1:    1 --> 1      1061
  2:    1 --> 2       137
  3:    1 --> 3         5
  4:    2 --> 1       159
  5:    2 --> 2      3153
  6:    2 --> 3        15
  7:    3 --> 1         5
  8:    3 --> 2        21
  9:    3 --> 3        24
  
  Post-Randomization (PRAM):
  Variable: urbrur 
  --> final Transition-Matrix:
             1         2
  1 0.93174850 0.0682515
  2 0.02792107 0.9720789
  
  Changed observations:
    variable nrChanges percChanges
  1   urbrur         5        5.38
  ---------------------------------------------------------------------- 
  
  Post-Randomization (PRAM):
  Variable: urbrur 
  --> final Transition-Matrix:
           1        2
  1 0.901946 0.098054
  2 0.040113 0.959887
  
  Changed observations:
    variable nrChanges percChanges
  1   urbrur         5        5.38
  ---------------------------------------------------------------------- 
  
  Post-Randomization (PRAM):
  Variable: roof 
  --> final Transition-Matrix:
      2 4 5    6    9
  2 0.9 0 0 0.05 0.05
  4 0.0 1 0 0.00 0.00
  5 0.0 0 1 0.00 0.00
  6 0.0 0 0 1.00 0.00
  9 0.0 0 0 0.00 1.00
  
  Changed observations:
    variable nrChanges percChanges
  1     roof         1        1.08
  ---------------------------------------------------------------------- 
  
  == testthat results  ===========================================================
  OK: 5 SKIPPED: 5 FAILED: 2
  1. Error: data frame method gives the same as method on sdcMicro object (@test_freqCalc.R#7) 
  2. Error: method1 frequencies should be 2,2,2,2,1 (@test_freqCalc.R#110) 
  
  Error: testthat unit tests failed
  Execution halted