We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
while troubleshooting a false-positive CRAN NOTE, I noticed that you use:
if (requireNamespace("progressr", quietly = TRUE)) prog()
in several places. You can avoid the quite expensive(*) calls to requireNamespace("progressr", quietly = TRUE) if you do:
requireNamespace("progressr", quietly = TRUE)
if (requireNamespace("progressr", quietly = TRUE)) { prog <- progressr::progressor(along = 1:((length(variables) + 2) * B)) } else { prog <- function() NULL }
Then you can replace:
with
prog()
(*) requireNamespace() hits the file system each time if progressr is not installed.
requireNamespace()
The text was updated successfully, but these errors were encountered:
Hi,
thanks for the suggestion, this is a very easy fix and we're just working on a new release, I'll try to do it today.
Sorry, something went wrong.
Hopefully this is resolved in 96b3f3f.
LGTM. FYI, progressor() has steps argument, so you don't have to create an auxillary along argument. That is, you can use
progressor()
steps
along
prog <- progressr::progressor(steps = (length(variables) + 2) * B)
instead.
Thanks! I'll change that as well.
Successfully merging a pull request may close this issue.
Hello,
while troubleshooting a false-positive CRAN NOTE, I noticed that you use:
in several places. You can avoid the quite expensive(*) calls to
requireNamespace("progressr", quietly = TRUE)
if you do:Then you can replace:
with
(*)
requireNamespace()
hits the file system each time if progressr is not installed.The text was updated successfully, but these errors were encountered: