Running examples in 'microclustr-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building 'microclustr.Rmd' using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette 'microclustr.Rmd' failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building 'microclustr.Rmd'

SUMMARY: processing the following file failed:
  'microclustr.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in ‘microclustr-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘microclustr.Rmd’ using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette ‘microclustr.Rmd’ failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building ‘microclustr.Rmd’

SUMMARY: processing the following file failed:
  ‘microclustr.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘microclustr-Ex.R’ failed
The error most likely occurred in:

> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘microclustr.Rmd’ using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette 'microclustr.Rmd' failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building ‘microclustr.Rmd’

SUMMARY: processing the following file failed:
  ‘microclustr.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘microclustr-Ex.R’ failed
The error most likely occurred in:

> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘microclustr.Rmd’ using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette 'microclustr.Rmd' failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building ‘microclustr.Rmd’

SUMMARY: processing the following file failed:
  ‘microclustr.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'microclustr-Ex.R' failed
The error most likely occurred in:

> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
--- re-building 'microclustr.Rmd' using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette 'microclustr.Rmd' failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building 'microclustr.Rmd'

SUMMARY: processing the following file failed:
  'microclustr.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in 'microclustr-Ex.R' failed
The error most likely occurred in:

> ### Name: DataRemap
> ### Title: Remap data to a list of consecutive integers per field
> ### Aliases: DataRemap
> 
> ### ** Examples
> 
> truePartition <- c(10,10,10,10)
> numberFields <- 5
> numberCategories <- rep(10,5)
> trueBeta <- 0.01
> data <- SimData(truePartition, numberFields, numberCategories, trueBeta)
Error in sample.int(n = ncat, size = true_K * nfields, replace = TRUE) : 
  length(n) == 1L is not TRUE
Calls: SimData -> matrix -> sample.int -> stopifnot
Execution halted
Error(s) in re-building vignettes:
--- re-building 'microclustr.Rmd' using rmarkdown
Quitting from lines 45-58 (microclustr.Rmd) 
Error: processing vignette 'microclustr.Rmd' failed with diagnostics:
length(n) == 1L is not TRUE
--- failed re-building 'microclustr.Rmd'

SUMMARY: processing the following file failed:
  'microclustr.Rmd'

Error: Vignette re-building failed.
Execution halted