You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue emerged from a reverse dependency check 9f80c8c.
We have updated some S3 generics like ggplot_build(), ggplot_add() and added ... as an argument. This allows for future expansion and is generally considered better practise than having a fixed set of arguments in a generic.
Ideally, methods follow the generic but having improved the generic, packages that have methods for this generic may now encounter the following warning:
checking S3 generic/method consistency ... WARNING
``
ggplot_build:
function(plot, ...)
ggplot_build.<custom_class>:
function(plot)
See section ‘Generic functions and methods’ in the ‘Writing R
Extensions’ manual.
``
The relevant part from the manual mentioned in the message is this:
A method must have all the arguments of the generic, including … if the generic does.
Solution
The solution would be to just include ... even if this is not used in the method. For example:
Uh oh!
There was an error while loading. Please reload this page.
Problem
This issue emerged from a reverse dependency check 9f80c8c.
We have updated some S3 generics like
ggplot_build()
,ggplot_add()
and added...
as an argument. This allows for future expansion and is generally considered better practise than having a fixed set of arguments in a generic.Ideally, methods follow the generic but having improved the generic, packages that have methods for this generic may now encounter the following warning:
The relevant part from the manual mentioned in the message is this:
Solution
The solution would be to just include
...
even if this is not used in the method. For example:For
ggplot_add()
, it depends whether you use theobject_name
argument or not.If you do, you can use the following as template:
And if you do not use the
object_name
argument, you can use:The text was updated successfully, but these errors were encountered: