-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change warning about 'stack imbalance' to appear only once, after the…
… first call to a model fitting function if the data are filebacked
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
.onAttach <- function(libname, pkgname) { | ||
packageStartupMessage("This is version ", utils::packageVersion(pkgname), | ||
" of ", pkgname, ".\n", | ||
"Note: ", pkgname, " depends on the package bigalgebra, the current GitHub version of which is throwing some warnings for filebacked analysis. | ||
\n https://github.com/fbertran/bigalgebra/issues/2 \n | ||
If you see a warning about 'stack imbalance' appear while you are fitting a model with plmm() or cv_plmm(), we recommend downloading the last stable version of bigalebra. | ||
If you are analyzing data stored in your R session memory, you can disregard this message.") | ||
} | ||
packageStartupMessage("This is ", pkgname, " ", utils::packageVersion(pkgname), ".\n") | ||
} | ||
|
||
# Define an environment to store the state | ||
.plmmr_env <- new.env() | ||
|
||
# Initialize the state | ||
.plmmr_env$warning_shown <- FALSE |