@@ -205,10 +205,10 @@ class_derive <- S7::new_S3_class("derive")
205
205
# ' is through the [`theme()`] function.
206
206
# '
207
207
# ' @param elements A named list containing theme elements.
208
+ # ' @param ... Reserved for future expansion.
208
209
# ' @param complete A boolean value stating whether a theme is complete.
209
210
# ' @param validate A boolean value stating whether a theme should still be
210
211
# ' validated.
211
- # ' @param ... Reserved for future expansion.
212
212
# '
213
213
# ' @keywords internal
214
214
# ' @export
@@ -218,7 +218,7 @@ class_theme <- S7::new_class(
218
218
complete = S7 :: class_logical ,
219
219
validate = S7 :: class_logical
220
220
),
221
- constructor = function (elements , complete , validate , ... ) {
221
+ constructor = function (elements , ... , complete , validate ) {
222
222
warn_dots_empty()
223
223
S7 :: new_object(
224
224
elements ,
@@ -276,14 +276,14 @@ class_labels <- S7::new_class(
276
276
# ' constructed using the [`aes()`] function.
277
277
# '
278
278
# ' @param x A list of quosures and constants.
279
- # ' @param env An environment for symbols that are not quosures or constants.
280
279
# ' @param ... Reserved for future expansion.
280
+ # ' @param env An environment for symbols that are not quosures or constants.
281
281
# '
282
282
# ' @keywords internal
283
283
# ' @export
284
284
class_mapping <- S7 :: new_class(
285
285
" mapping" , parent = class_S3_gg ,
286
- constructor = function (x , env = globalenv(), ... ) {
286
+ constructor = function (x , ... , env = globalenv()) {
287
287
warn_dots_empty()
288
288
check_object(x , is.list , " a {.cls list}" )
289
289
x <- lapply(x , new_aesthetic , env = env )
@@ -301,6 +301,7 @@ class_mapping <- S7::new_class(
301
301
# ' This class can be constructed using the [`ggplot()`] function.
302
302
# '
303
303
# ' @param data A property containing any data coerced by [`fortify()`].
304
+ # ' @param ... Reserved for future expansion.
304
305
# ' @param layers A list of layer instances created by [`layer()`].
305
306
# ' @param scales A ScalesList ggproto object.
306
307
# ' @param guides A Guides ggproto object created by [`guides()`].
@@ -315,7 +316,6 @@ class_mapping <- S7::new_class(
315
316
# ' @param meta A list for additional metadata. This will be deprecated in the
316
317
# ' future.
317
318
# ' @param plot_env An environment.
318
- # ' @param ... Reserved for future expansion.
319
319
# '
320
320
# ' @keywords internal
321
321
# ' @export
@@ -337,6 +337,7 @@ class_ggplot <- S7::new_class(
337
337
),
338
338
constructor = function (
339
339
data = waiver(),
340
+ ... ,
340
341
layers = list (),
341
342
scales = NULL ,
342
343
guides = NULL ,
@@ -347,8 +348,7 @@ class_ggplot <- S7::new_class(
347
348
layout = NULL ,
348
349
labels = labs(),
349
350
meta = list (),
350
- plot_env = parent.frame(),
351
- ...
351
+ plot_env = parent.frame()
352
352
) {
353
353
warn_dots_empty()
354
354
S7 :: new_object(
@@ -379,10 +379,10 @@ class_ggplot <- S7::new_class(
379
379
# ' instantiated directly. The class can be rendered to a gtable object by
380
380
# ' calling the [`ggplot_gtable()`] function on a ggplot built class object.
381
381
# '
382
+ # ' @param ... Reserved for future expansion.
382
383
# ' @param data A list of plain data frames; one for each layer.
383
384
# ' @param layout A Layout ggproto object.
384
385
# ' @param plot A completed ggplot class object.
385
- # ' @param ... Reserved for future expansion.
386
386
# '
387
387
# ' @keywords internal
388
388
# ' @export
@@ -393,7 +393,7 @@ class_ggplot_built <- S7::new_class(
393
393
layout = class_layout ,
394
394
plot = class_ggplot
395
395
),
396
- constructor = function (data = NULL , layout = NULL , plot = NULL , ... ) {
396
+ constructor = function (... , data = NULL , layout = NULL , plot = NULL ) {
397
397
warn_dots_empty()
398
398
if (is.null(data ) || is.null(layout ) || is.null(plot )) {
399
399
cli :: cli_abort(
0 commit comments