Skip to content

Commit 335f1fe

Browse files
committed
v0.6-2: Fix issues of CRAN check
1 parent ab96307 commit 335f1fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: Corbi
2-
Version: 0.6-1
2+
Version: 0.6-2
33
Title: Collection of Rudimentary Bioinformatics Tools
44
Description: Provides a bundle of basic and fundamental bioinformatics tools,
55
such as network querying and alignment, subnetwork extraction and search,

R/markrank.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ markrank <- function(dataset, label, adj_matrix, alpha=0.8, lambda=0.2, eps=1e-1
118118
dis <- NULL
119119
}
120120
if (trace) print("Computing discriminative potential network ...")
121-
if (class(Given_NET2) == "NULL"){
121+
if (inherits(Given_NET2, "NULL")) {
122122
system.time(NET2 <- .markrank.compute_net2(dataset, label, dis, d, trace=trace))
123123
}
124124
degs <- rowSums(NET2)
@@ -129,7 +129,7 @@ markrank <- function(dataset, label, adj_matrix, alpha=0.8, lambda=0.2, eps=1e-1
129129
}
130130
A <- lambda*A1 + (1-lambda)*A2
131131

132-
if (class(E_value) == "NULL"){
132+
if (inherits(E_value, "NULL")) {
133133
PCC <- NULL
134134
for (i in 1:n){
135135
PCC[i] <- stats::cor(dataset[,i], label, method = "pearson")

R/net_query.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ net_query <- function(query.net, target.net, node.sim, query.type=4, delta.d=1e-
187187
decode_heuristic <- function(crf)
188188
{
189189
result <- try(CRF::decode.junction(crf), TRUE)
190-
if (class(result) == "try-error")
190+
if (inherits(result, "try-error"))
191191
{
192192
result <- CRF::decode.lbp(crf)
193193
}

0 commit comments

Comments
 (0)