Skip to content

Commit 1cf8cc8

Browse files
committed
Remove comm.any()
1 parent 549b9f9 commit 1cf8cc8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

R/dmat_em_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ em.step.dmat <- function(PARAM.org){
284284
PARAM.new <- try(em.onestep.dmat(PARAM.org))
285285
### WCC: temp
286286
# PARAM.new <- em.onestep.dmat(PARAM.org)
287-
if(comm.any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
287+
if(any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
288288
comm.cat("Results of previous iterations are returned.\n", quiet = TRUE)
289289
.pmclustEnv$CHECK$convergence <- 99
290290
PARAM.new <- PARAM.org

R/pm_aecm_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ aecm.step.spmd <- function(PARAM.org){
102102

103103
### Start AECM here.
104104
PARAM.new <- try(aecm.onestep.spmd(PARAM.org))
105-
if(comm.any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
105+
if(any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
106106
comm.cat("Results of previous iterations are returned.\n", quiet = TRUE)
107107
.pmclustEnv$CHECK$convergence <- 99
108108
PARAM.new <- PARAM.org

R/pm_apecm_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ apecm.step.spmd <- function(PARAM.org){
138138

139139
### Start APECM here.
140140
PARAM.new <- try(apecm.onestep.spmd(PARAM.org))
141-
if(comm.any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
141+
if(any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
142142
comm.cat("Results of previous iterations are returned.\n", quiet = TRUE)
143143
.pmclustEnv$CHECK$convergence <- 99
144144
PARAM.new <- PARAM.org

R/pm_apecma_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ apecma.step.spmd <- function(PARAM.org){
9797

9898
### Start APECMA here.
9999
PARAM.new <- try(apecma.onestep.spmd(PARAM.org))
100-
if(comm.any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
100+
if(any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
101101
comm.cat("Results of previous iterations are returned.\n", quiet =TRUE)
102102
.pmclustEnv$CHECK$convergence <- 99
103103
PARAM.new <- PARAM.org

R/pm_em_base.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ em.step.spmd <- function(PARAM.org){
185185

186186
### Start EM here.
187187
PARAM.new <- try(em.onestep.spmd(PARAM.org))
188-
if(comm.any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
188+
if(any(class(PARAM.new) == "try-error") || is.nan(PARAM.new$logL)){
189189
comm.cat("Results of previous iterations are returned.\n", quiet = TRUE)
190190
.pmclustEnv$CHECK$convergence <- 99
191191
PARAM.new <- PARAM.org

0 commit comments

Comments
 (0)