Suggest a replacement in messages of package_hooks_linter
?
#2662
Labels
feature
a feature request or enhancement
package_hooks_linter
?
#2662
Some
lintr
messages show the potential replacement for a linter, e.g. inany_duplicated_linter
:However, some messages are not very helpful because they don’t recommend any replacement. For example,
package_hooks_linter
saysDon't use cat() in .onAttach().
:Is it possible to suggest the replacement for this linter? My reflex was to use
message()
instead but this is also flagged. Same withpackageStartupMessage()
(only flagged in.onLoad()
, not in.onAttach()
) so I don’t know what should be used here.The text was updated successfully, but these errors were encountered: