Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit b14792a

Browse files
Merge pull request #29 from alexmccreight/master
added no cov for package dependency warning messages
2 parents a787b26 + aac4c55 commit b14792a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/susie_constructors.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ individual_data_constructor <- function(X, y, L = min(10, ncol(X)),
108108
}
109109
prior_weights <- prior_weights / sum(prior_weights)
110110

111+
# nocov start
111112
if (p > 1000 & !requireNamespace("Rfast", quietly = TRUE)) {
112113
warning_message("For an X with many columns, please consider installing ",
113114
"the Rfast package for more efficient credible set (CS) ",
114115
"calculations.",
115116
style = "hint")
116117
}
118+
# nocov end
117119

118120
# Center y if intercept is included
119121
if (intercept) {
@@ -250,11 +252,13 @@ sufficient_stats_constructor <- function(XtX, Xty, yty, n,
250252
))
251253
}
252254

255+
# nocov start
253256
if (ncol(XtX) > 1000 & !requireNamespace("Rfast", quietly = TRUE)) {
254257
warning_message("For large R or large XtX, consider installing the ",
255258
"Rfast package for better performance.",
256259
style = "hint")
257260
}
261+
# nocov end
258262

259263
# Ensure XtX is symmetric
260264
if (!is_symmetric_matrix(XtX)) {

0 commit comments

Comments
 (0)