Skip to content

Commit f6da82a

Browse files
committed
minor
1 parent b5d0a5b commit f6da82a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

R/00_pmclust_reduceK.r

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ pmclust.reduceK <- function(K = 2, algorithm = .PMC.CT$algorithm){
2222
pmclust.reduceK.spmd <- function(K = 2, algorithm = .PMC.CT$algorithm){
2323
# Get an initial start.
2424
PARAM.org <- set.global(K = K)
25-
PARAM.org <- try(initial.em(PARAM.org))
25+
PARAM.org <- try(initial.em(PARAM.org), silent = TRUE)
2626

2727
# Ensure the initial is good. Warning: This may take forever to run!
2828
repeat{
2929
if(class(PARAM.org) == "try-error"){
3030
PARAM.org <- set.global(K = K)
31-
PARAM.org <- try(initial.em(PARAM.org))
31+
PARAM.org <- try(initial.em(PARAM.org), silent = TRUE)
3232
} else{
3333
break
3434
}
@@ -44,7 +44,7 @@ pmclust.reduceK.spmd <- function(K = 2, algorithm = .PMC.CT$algorithm){
4444
if(comm.all(is.null(method.step))){
4545
comm.stop("Algorithm is not found.")
4646
}
47-
PARAM.new <- try(method.step(PARAM.org))
47+
PARAM.new <- try(method.step(PARAM.org), silent = TRUE)
4848
em.update.class()
4949
N.CLASS <- get.N.CLASS(K)
5050

@@ -80,7 +80,7 @@ pmclust.reduceK.spmd <- function(K = 2, algorithm = .PMC.CT$algorithm){
8080

8181
# Update steps.
8282
e.step.spmd(PARAM.org)
83-
PARAM.new <- try(method.step(PARAM.org))
83+
PARAM.new <- try(method.step(PARAM.org), silent = TRUE)
8484
em.update.class()
8585
N.CLASS <- get.N.CLASS(K)
8686
} else{

R/00_pmclust_reduceK_dmat.r

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
pmclust.reduceK.dmat <- function(K = 2, algorithm = .PMC.CT$algorithm){
44
# Get an initial start.
55
PARAM.org <- set.global.dmat(K = K)
6-
PARAM.org <- try(initial.em.dmat(PARAM.org))
6+
PARAM.org <- try(initial.em.dmat(PARAM.org), silent = TRUE)
77

88
# Ensure the initial is good. Warning: This may take forever to run!
99
repeat{
1010
if(class(PARAM.org) == "try-error"){
1111
PARAM.org <- set.global.dmat(K = K)
12-
PARAM.org <- try(initial.em.dmat(PARAM.org))
12+
PARAM.org <- try(initial.em.dmat(PARAM.org), silent = TRUE)
1313
} else{
1414
break
1515
}
@@ -25,7 +25,7 @@ pmclust.reduceK.dmat <- function(K = 2, algorithm = .PMC.CT$algorithm){
2525
if(comm.all(is.null(method.step))){
2626
comm.stop("Algorithm is not found.")
2727
}
28-
PARAM.new <- try(method.step(PARAM.org))
28+
PARAM.new <- try(method.step(PARAM.org), silent = TRUE)
2929
em.update.class.dmat()
3030
N.CLASS <- get.N.CLASS.dmat(K)
3131

@@ -61,7 +61,7 @@ pmclust.reduceK.dmat <- function(K = 2, algorithm = .PMC.CT$algorithm){
6161

6262
# Update steps.
6363
e.step.dmat(PARAM.org)
64-
PARAM.new <- try(method.step(PARAM.org))
64+
PARAM.new <- try(method.step(PARAM.org), silent = TRUE)
6565
em.update.class.dmat()
6666
N.CLASS <- get.N.CLASS.dmat(K)
6767
} else{

0 commit comments

Comments
 (0)