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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: simulation
> ### Title: Simulation Analysis
> ### Aliases: simulation simulate_signature simulate_catalogue
> ###   simulate_catalogue_matrix
> 
> ### ** Examples
> 
> # Generate a catalog
> set.seed(1234)
> catalog <- as.integer(table(sample(1:96, 1000, replace = TRUE)))
> names(catalog) <- paste0("comp", 1:96)
> # Generate a signature
> sig <- catalog / sum(catalog)
> 
> # Simulate catalogs
> x1 <- simulate_catalogue(catalog, 10) # 10 mutations
Loading required namespace: matrixStats
Failed with error:  ‘there is no package called ‘matrixStats’’
'matrixStats' package is not available, installing it.
Installing package into ‘/tmp/RtmplwM4Ym/RLIBS_205aa671f98639’
(as ‘lib’ is unspecified)
* installing *source* package ‘matrixStats’ ...
** package ‘matrixStats’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘gcc-14 (Debian 14.2.0-8) 14.2.0’
make[1]: Entering directory '/tmp/RtmpokRJSs/R.INSTALL2333ca77cc035a/matrixStats/src'
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c 000.init.c -o 000.init.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c allocMatrix2.c -o allocMatrix2.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c anyMissing.c -o anyMissing.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c binCounts.c -o binCounts.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c binMeans.c -o binMeans.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c colCounts.c -o colCounts.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c colOrderStats.c -o colOrderStats.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c colRanges.c -o colRanges.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c diff2.c -o diff2.o
In file included from diff2_lowlevel_template.h:17,
                 from diff2_lowlevel.h:15,
                 from diff2.c:10:
diff2_lowlevel_template.h: In function ‘diff2_int’:
000.types.h:64:31: error: implicit declaration of function ‘Calloc’; did you mean ‘calloc’? [-Wimplicit-function-declaration]
   64 |   #define R_CALLOC(num, size) Calloc(num, size)
      |                               ^~~~~~
diff2_lowlevel_template.h:75:11: note: in expansion of macro ‘R_CALLOC’
   75 |     tmp = R_CALLOC(nidxs - lag, X_C_TYPE);
      |           ^~~~~~~~
000.templates-types.h:40:22: error: expected expression before ‘int’
   40 |     #define X_C_TYPE int
      |                      ^~~
000.types.h:64:43: note: in definition of macro ‘R_CALLOC’
   64 |   #define R_CALLOC(num, size) Calloc(num, size)
      |                                           ^~~~
diff2_lowlevel_template.h:75:33: note: in expansion of macro ‘X_C_TYPE’
   75 |     tmp = R_CALLOC(nidxs - lag, X_C_TYPE);
      |                                 ^~~~~~~~
000.types.h:65:23: error: implicit declaration of function ‘Free’; did you mean ‘free’? [-Wimplicit-function-declaration]
   65 |   #define R_FREE(ptr) Free(ptr)
      |                       ^~~~
diff2_lowlevel_template.h:118:5: note: in expansion of macro ‘R_FREE’
  118 |     R_FREE(tmp);
      |     ^~~~~~
In file included from diff2_lowlevel_template.h:17,
                 from diff2_lowlevel.h:19:
diff2_lowlevel_template.h: In function ‘diff2_dbl’:
000.templates-types.h:50:22: error: expected expression before ‘double’
   50 |     #define X_C_TYPE double
      |                      ^~~~~~
000.types.h:64:43: note: in definition of macro ‘R_CALLOC’
   64 |   #define R_CALLOC(num, size) Calloc(num, size)
      |                                           ^~~~
diff2_lowlevel_template.h:75:33: note: in expansion of macro ‘X_C_TYPE’
   75 |     tmp = R_CALLOC(nidxs - lag, X_C_TYPE);
      |                                 ^~~~~~~~
make[1]: *** [/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf:195: diff2.o] Error 1
make[1]: Leaving directory '/tmp/RtmpokRJSs/R.INSTALL2333ca77cc035a/matrixStats/src'
ERROR: compilation failed for package ‘matrixStats’
* removing ‘/tmp/RtmplwM4Ym/RLIBS_205aa671f98639/matrixStats’
Warning in install.packages("matrixStats") :
  installation of package ‘matrixStats’ had non-zero exit status
Error in loadNamespace(x) : there is no package called ‘matrixStats’
Calls: simulate_catalogue ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted