Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions R/susie_constructors.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ individual_data_constructor <- function(X, y, L = min(10, ncol(X)),
}
prior_weights <- prior_weights / sum(prior_weights)

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

# Center y if intercept is included
if (intercept) {
Expand Down Expand Up @@ -250,11 +252,13 @@ sufficient_stats_constructor <- function(XtX, Xty, yty, n,
))
}

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

# Ensure XtX is symmetric
if (!is_symmetric_matrix(XtX)) {
Expand Down