overwriteEllipsis: Overwrite some fixed arguments to the arguments '...' given...

Description Usage Arguments Value See Also Examples

Description

When ellipsis arguments so called ... is given by user call, frequently we want to overwrite some arguments as fixed desirable arguments. This function helps to settles the situation simply.

Usage

1

Arguments

...

fixed and given arguments.

append

argments list to be appended.

warn

if T, warnings when fixed and argments given to user call conflict.

Value

overwrited ellipsis.

See Also

softwriteEllipsis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# plot function with xlim = c(0, 2 * pi) and col = 'red'
plot2pired <- function(x, ...){
  elp <- overwriteEllipsis(..., x = x, xlim = c(0, 2 * pi), col = 'red')
  do.call(plot, elp)
}

plot2pired(sin)

# this example is warned due to conflict argments
plot2pired(sin, main = 'sin curve', xlim = c(-pi, pi))

hosscine/myfs documentation built on May 25, 2019, 6:20 p.m.