Skip to content

Commit

Permalink
Merge pull request #1046 from jiajic/suite_dev
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
jiajic authored Oct 8, 2024
2 parents d481d44 + c0782f4 commit 221d5ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/dimension_reduction.R
Original file line number Diff line number Diff line change
Expand Up @@ -1821,10 +1821,12 @@ jackstrawPlot <- function(gobject,
"\nnumber of estimated significant components: ",
nr_sign_components)

warning(wrap_txt(
"Number of significant components equals `ncp`.
if (ncp <= nr_sign_components) {
warning(wrap_txt(
"Number of significant components equals `ncp`.
Increasing `ncp` may be needed."
))
))
}

final_results <- jtest[c("p", "cum_var_explained")]
vmsg(.v = verbose, .is_debug = TRUE, final_results$p)
Expand Down

0 comments on commit 221d5ec

Please sign in to comment.