-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Import all functions once in R/gsDesign2-package.R
, and remove the pkg::
qualifiers
#464
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comprehensive check and clean-up!
#' @importFrom mvtnorm GenzBretz | ||
#' @importFrom stats pnorm qnorm setNames stepfun uniroot | ||
#' @importFrom tibble tibble | ||
#' @importFrom utils tail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I prefer the redundant imports at the top of each function. It gives you a better sense of how widely used a given dependency is, and how reliant any given function is on a particular dependency. I'm fine with going with whatever style the group decides on, but I wanted to note that I view the redundancy as a feature.
Apparently this is more of a personal preference and style guide thing so I'm afraid I can't be very helpful here. The R Packages book dependencies chapter currently pushes a style that qualifies external namespaces with |
I don't really have a strong opinion on this. My original motivation was that I saw sometimes we use |
Later in that section, they also support defining |
No description provided.