File: safe-call-7b.rd

package info (click to toggle)
r-cran-ggplot2 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,084 kB
  • sloc: makefile: 3
file content (22 lines) | stat: -rw-r--r-- 654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
\name{safe.call}
\alias{safe.call}
\title{A "safe" version of do.call}
\author{Hadley Wickham <h.wickham@gmail.com>}

\description{
\code{safe.call} works like \code{\link{do.call}} but it will only supply arguments that exist in the function specification.
}
\usage{safe.call(f, params, f.params = names(formals(f)), ignore.dots = TRUE)}
\arguments{
\item{f}{function to call}
\item{params}{parameter names of function}
\item{f.params}{}
\item{ignore.dots}{}
}

\details{If ... is present in the param list, all parameters will be passed through
unless \code{ignore.dots = TRUE}.  Positional arguments are not currently
supported.}


\keyword{internal}