Running examples in ‘catspec-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ctab
> ### Title: Percentage tables
> ### Aliases: ctab print.ctab summary.ctab
> ### Keywords: category
> 
> ### ** Examples
> 
> ftable(Titanic)
                   Survived  No Yes
Class Sex    Age                   
1st   Male   Child            0   5
             Adult          118  57
      Female Child            0   1
             Adult            4 140
2nd   Male   Child            0  11
             Adult          154  14
      Female Child            0  13
             Adult           13  80
3rd   Male   Child           35  13
             Adult          387  75
      Female Child           17  14
             Adult           89  76
Crew  Male   Child            0   0
             Adult          670 192
      Female Child            0   0
             Adult            3  20
> ctab(Titanic) # same output
                   Survived  No Yes
Class Sex    Age                   
1st   Male   Child            0   5
             Adult          118  57
      Female Child            0   1
             Adult            4 140
2nd   Male   Child            0  11
             Adult          154  14
      Female Child            0  13
             Adult           13  80
3rd   Male   Child           35  13
             Adult          387  75
      Female Child           17  14
             Adult           89  76
Crew  Male   Child            0   0
             Adult          670 192
      Female Child            0   0
             Adult            3  20
> ctab(Titanic,type="r")
                   Survived     No    Yes
Class Sex    Age                         
1st   Male   Child            0.00 100.00
             Adult           67.43  32.57
      Female Child            0.00 100.00
             Adult            2.78  97.22
2nd   Male   Child            0.00 100.00
             Adult           91.67   8.33
      Female Child            0.00 100.00
             Adult           13.98  86.02
3rd   Male   Child           72.92  27.08
             Adult           83.77  16.23
      Female Child           54.84  45.16
             Adult           53.94  46.06
Crew  Male   Child             NaN    NaN
             Adult           77.73  22.27
      Female Child             NaN    NaN
             Adult           13.04  86.96
> ctab(Titanic,type=c("n","r"),addmargins=TRUE)
                         Survived     No    Yes    Sum
Class Sex    Age                                      
1st   Male   Child Count            0.00   5.00   5.00
                   Row %            0.00 100.00 100.00
             Adult Count          118.00  57.00 175.00
                   Row %           67.43  32.57 100.00
             Sum   Count          118.00  62.00 180.00
                   Row %           67.43 132.57 200.00
      Female Child Count            0.00   1.00   1.00
                   Row %            0.00 100.00 100.00
             Adult Count            4.00 140.00 144.00
                   Row %            2.78  97.22 100.00
             Sum   Count            4.00 141.00 145.00
                   Row %            2.78 197.22 200.00
2nd   Male   Child Count            0.00  11.00  11.00
                   Row %            0.00 100.00 100.00
             Adult Count          154.00  14.00 168.00
                   Row %           91.67   8.33 100.00
             Sum   Count          154.00  25.00 179.00
                   Row %           91.67 108.33 200.00
      Female Child Count            0.00  13.00  13.00
                   Row %            0.00 100.00 100.00
             Adult Count           13.00  80.00  93.00
                   Row %           13.98  86.02 100.00
             Sum   Count           13.00  93.00 106.00
                   Row %           13.98 186.02 200.00
3rd   Male   Child Count           35.00  13.00  48.00
                   Row %           72.92  27.08 100.00
             Adult Count          387.00  75.00 462.00
                   Row %           83.77  16.23 100.00
             Sum   Count          422.00  88.00 510.00
                   Row %          156.68  43.32 200.00
      Female Child Count           17.00  14.00  31.00
                   Row %           54.84  45.16 100.00
             Adult Count           89.00  76.00 165.00
                   Row %           53.94  46.06 100.00
             Sum   Count          106.00  90.00 196.00
                   Row %          108.78  91.22 200.00
Crew  Male   Child Count            0.00   0.00   0.00
                   Row %            0.00   0.00   0.00
             Adult Count          670.00 192.00 862.00
                   Row %           77.73  22.27 100.00
             Sum   Count          670.00 192.00 862.00
                   Row %           77.73  22.27 100.00
      Female Child Count            0.00   0.00   0.00
                   Row %            0.00   0.00   0.00
             Adult Count            3.00  20.00  23.00
                   Row %           13.04  86.96 100.00
             Sum   Count            3.00  20.00  23.00
                   Row %           13.04  86.96 100.00
> ctab(Titanic,type=c("n","c","t","r"),style="w")
                             Count        Column %        Total %         Row %       
                   Survived     No    Yes       No    Yes      No    Yes     No    Yes
Class Sex    Age                                                                      
1st   Male   Child            0.00   5.00     0.00   8.06    0.00   2.78   0.00 100.00
             Adult          118.00  57.00   100.00  91.94   65.56  31.67  67.43  32.57
      Female Child            0.00   1.00     0.00   0.71    0.00   0.69   0.00 100.00
             Adult            4.00 140.00   100.00  99.29    2.76  96.55   2.78  97.22
2nd   Male   Child            0.00  11.00     0.00  44.00    0.00   6.15   0.00 100.00
             Adult          154.00  14.00   100.00  56.00   86.03   7.82  91.67   8.33
      Female Child            0.00  13.00     0.00  13.98    0.00  12.26   0.00 100.00
             Adult           13.00  80.00   100.00  86.02   12.26  75.47  13.98  86.02
3rd   Male   Child           35.00  13.00     8.29  14.77    6.86   2.55  72.92  27.08
             Adult          387.00  75.00    91.71  85.23   75.88  14.71  83.77  16.23
      Female Child           17.00  14.00    16.04  15.56    8.67   7.14  54.84  45.16
             Adult           89.00  76.00    83.96  84.44   45.41  38.78  53.94  46.06
Crew  Male   Child            0.00   0.00     0.00   0.00    0.00   0.00   0.00   0.00
             Adult          670.00 192.00   100.00 100.00   77.73  22.27  77.73  22.27
      Female Child            0.00   0.00     0.00   0.00    0.00   0.00   0.00   0.00
             Adult            3.00  20.00   100.00 100.00   13.04  86.96  13.04  86.96
> mytab<-ftable(Titanic,row.vars=c(1,3),type="r")
> mytab
            Sex      Male     Female    
            Survived   No Yes     No Yes
Class Age                               
1st   Child             0   5      0   1
      Adult           118  57      4 140
2nd   Child             0  11      0  13
      Adult           154  14     13  80
3rd   Child            35  13     17  14
      Adult           387  75     89  76
Crew  Child             0   0      0   0
      Adult           670 192      3  20
> ctab(mytab)
            Sex      Male     Female    
            Survived   No Yes     No Yes
Class Age                               
1st   Child             0   5      0   1
      Adult           118  57      4 140
2nd   Child             0  11      0  13
      Adult           154  14     13  80
3rd   Child            35  13     17  14
      Adult           387  75     89  76
Crew  Child             0   0      0   0
      Adult           670 192      3  20
> newtab<-ctab(mytab,type="r")
> newtab
            Sex        Male        Female       
            Survived     No    Yes     No    Yes
Class Age                                       
1st   Child            0.00 100.00   0.00 100.00
      Adult           67.43  32.57   2.78  97.22
2nd   Child            0.00 100.00   0.00 100.00
      Adult           91.67   8.33  13.98  86.02
3rd   Child           72.92  27.08  54.84  45.16
      Adult           83.77  16.23  53.94  46.06
Crew  Child             NaN    NaN    NaN    NaN
      Adult           77.73  22.27  13.04  86.96
> summary(newtab)
Number of cases in table: 2201 
Number of factors: 4 
Test for independence of all factors:
	Chisq = 1637.4, df = 25, p-value = 0
	Chi-squared approximation may be incorrect
> 
> #second example using a data frame rather than table data
> library(survival)
Error: package or namespace load failed for ‘survival’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/lattice/libs/lattice.so':
  /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/lattice/libs/lattice.so: failed to map segment from shared object
Execution halted