iteration number bug

This commit is contained in:
Hollos Roland 2021-05-14 16:36:28 +02:00
parent 64355412ad
commit 081aede26a

View File

@ -8,7 +8,7 @@
#' @importFrom limSolve xsample #' @importFrom limSolve xsample
#' @export #' @export
musoRand <- function(parameters, iterations=3000, fileType="epc", constrains = NULL, burnin = ifelse(iterations < 3000, 3000, NULL)){ musoRand <- function(parameters, iterations=3000, fileType="epc", constrains = NULL, burnin = NULL){
if(is.null(constrains)){ if(is.null(constrains)){
constMatrix <- constrains constMatrix <- constrains
constMatrix <- getOption("RMuso_constMatrix")[[fileType]][[as.character(getOption("RMuso_version"))]] constMatrix <- getOption("RMuso_constMatrix")[[fileType]][[as.character(getOption("RMuso_version"))]]