softwriteEllipsis: Overwrite some desirable arguments to '...' softly.

Description Usage Arguments Value See Also Examples

Description

This function is minor modificated version of overwriteEllipsis. The only difference is that don't overwrite conflict argments.

Usage

1

Arguments

...

fixed and given arguments.

append

argments list to be appended.

warn

if T, warnings when fixed and given argments conflict.

Value

overwrited ellipsis.

See Also

overwriteEllipsis

Examples

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

# this example is evaluated as col = 'red'
plot2pi(sin)

# this example is evaluated as col = 'blue'
plot2pi(sin, col = 'blue')

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