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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: dcem_train
> ### Title: dcem_train: Part of DCEM package.
> ### Aliases: dcem_train
> 
> ### ** Examples
> 
> # Simulating a mixture of univariate samples from three distributions
> # with mean as 20, 70 and 100 and standard deviation as 10, 100 and 40 respectively.
> sample_uv_data = as.data.frame(c(rnorm(1000, 20, 10), rnorm(500, 70, 100),
+ rnorm(2000, 100, 40)), row=3500)
Warning in as.data.frame.numeric(c(rnorm(1000, 20, 10), rnorm(500, 70, 100),  :
  'row.names' is not a character vector of length 3500 -- omitting it. Will be an error!
> 
> # Randomly shuffle the samples.
> sample_uv_data = as.data.frame(sample_uv_data[sample(1:nrow(sample_uv_data)),],
+ row=nrow(sample_uv_data))
Warning in as.data.frame.numeric(sample_uv_data[sample(1:nrow(sample_uv_data)),  :
  'row.names' is not a character vector of length 3500 -- omitting it. Will be an error!
> 
> # Calling the dcem_train() function on the simulated data with threshold of
> # 0.000001 and iteration count of 1000 respectively.
> sample_uv_out = dcem_train(sample_uv_data, num_clusters = 3, iteration_count = 1000,
+ threshold = 0.000001)
> 
> sample_uv_out$mean
[1]  70.76190 101.63833  19.87773
> # 98.36404 70.19584 19.88569
> 
> sample_uv_out$sd
[1] 97.81637 42.06905 10.52018
> # 40.438697 102.299765   9.702907
> 
> # Simulating a mixture of multivariate samples from 2 gaussian distributions.
> sample_mv_data = as.data.frame(rbind(MASS::mvrnorm(n=1200, rep(2,5), Sigma = diag(5)),
+ MASS::mvrnorm(n=50, rep(14,5), Sigma = diag(5))))
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/MASS/libs/MASS.so':
  /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/MASS/libs/MASS.so: failed to map segment from shared object
Calls: as.data.frame ... getNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted