Skip to content

Commit

Permalink
Fixed bogus warning about comparing class to character.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheLambert committed May 20, 2022
1 parent 748941a commit 572580e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/clusteringLC.R
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ function (envir, dframe, trtm, pscr, yvar, faclev = 3, df = 5, spar = NULL, cv =
stop("Second argument to SPSlogit must be the name of a Data Frame in the working environment.")
if (missing(trtm))
stop("Third argument to SPSlogit must name the Treatment factor.")
if (missing(form) || class(form) != "formula")
if (missing(form) || (as.character(class(form)) != "formula"))
stop("Second argument to SPSlogit must be a valid formula.")
trtm <- deparse(form[[2]])
dfname = deparse(substitute(dframe))
Expand Down
2 changes: 1 addition & 1 deletion R/localControl.R
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ plot.LocalControlCS = function(x, ..., nnConfidence, ylim,
#' @export
LocalControlCompetingRisksConfidence <- function(LCCompRisk, confLevel = "95%", confTransform = "asin"){

if(class(LCCompRisk) != "LocalControlCR"){
if(as.character(class(LCCompRisk)) != "LocalControlCR"){
stop("LCCompRisk param must be type 'LocalControlCR' returned from the function 'LocalControl()' where outcomeType = 'survival'")
}

Expand Down

0 comments on commit 572580e

Please sign in to comment.