Skip to content

Commit ddbdce0

Browse files
committed
Remove comm.stop()
1 parent d0336d9 commit ddbdce0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

R/dmat_em_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ m.step.dmat <- function(PARAM){
230230

231231
.pmclustEnv$FAIL.i.k <- i.k # i.k is failed to update.
232232
if(.pmclustEnv$CONTROL$stop.at.fail){
233-
comm.stop(paste("NaN occurs at", i.k))
233+
stop(paste("NaN occurs at", i.k))
234234
}
235235
}
236236
} else{

R/pm_aecm_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cm.step.spmd.SIGMA <- function(PARAM){
5858

5959
.pmclustEnv$FAIL.i.k <- i.k # i.k is failed to update.
6060
if(.pmclustEnv$CONTROL$stop.at.fail){
61-
comm.stop(paste("NaN occurs at", i.k))
61+
stop(paste("NaN occurs at", i.k))
6262
}
6363
}
6464
} else{

R/pm_apecma_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cm.step.spmd.MU.SIGMA.k <- function(PARAM, i.k){
5555

5656
.pmclustEnv$FAIL.i.k <- i.k # i.k is failed to update.
5757
if(.pmclustEnv$CONTROL$stop.at.fail){
58-
comm.stop(paste("NaN occurs at", i.k))
58+
stop(paste("NaN occurs at", i.k))
5959
}
6060
}
6161
} else{

R/pm_em_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ m.step.spmd <- function(PARAM){
105105

106106
.pmclustEnv$FAIL.i.k <- i.k # i.k is failed to update.
107107
if(.pmclustEnv$CONTROL$stop.at.fail){
108-
comm.stop(paste("NaN occurs at", i.k))
108+
stop(paste("NaN occurs at", i.k))
109109
}
110110
}
111111
} else{

0 commit comments

Comments
 (0)