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
devtools::load_all()
This might be better as a pkgload specific issue, but I'm raising it here first. In a package that exports methods, load_all() gets annoyingly noisy.
pkgload
load_all()
> devtools::load_all(".") ℹ Loading r2f Overwriting method convert(<double>, <integer>) Overwriting method convert(<logical>, <integer>) Overwriting method convert(<name>, <character>) Overwriting method convert(<logical>, <character>) Overwriting method convert(<double>, <integer>) Overwriting method convert(<logical>, <integer>) Overwriting method convert(<name>, <character>) Overwriting method convert(<logical>, <character>)
Note that each method is overwritten twice: once when sourcing the package code, and then again in .onLoad/S7::methods_register().
.onLoad
S7::methods_register()
The text was updated successfully, but these errors were encountered:
I thought I noticed that too, but it turned out that I was accidentally duplicating method definitions.
Sorry, something went wrong.
I don't think I'm defining the method twice. A minimal package with just this is enough to show the warning twice:
#' @import S7 NULL method(convert, list(class_double, class_integer)) <- function(from, to, ...) as.integer(from) .onLoad <- function(...) { S7::methods_register() }
> devtools::load_all(".") ℹ Loading r2f Overwriting method convert(<double>, <integer>) Overwriting method convert(<double>, <integer>)
Ooh, hmmmm, maybe it only occurs in the dev version?
I've noticed this too when redefining methods at runtime during debugging, like with ESS's developer mode. It's a bit distracting.
No branches or pull requests
This might be better as a
pkgload
specific issue, but I'm raising it here first. In a package that exports methods,load_all()
gets annoyingly noisy.Note that each method is overwritten twice: once when sourcing the package code, and then again in
.onLoad
/S7::methods_register()
.The text was updated successfully, but these errors were encountered: