Skip to content

Commit

Permalink
Remove .parallel argument from m_ply
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 20, 2010
1 parent cba0f72 commit af539c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Version 1.3 (2010-XX-XX)
------------------------------------------------------------------------------

* m_ply no longer possesses .parallel argument (mistakenly added)
* ldply (and hence adply and ddply) now correctly passes on .parallel argument
(Fixes #16)

Version 1.2.1 (2010-09-10)
------------------------------------------------------------------------------
Expand Down
4 changes: 1 addition & 3 deletions R/ply-mapply.r
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@ mlply <- function(.data, .fun = NULL, ..., .expand = TRUE, .progress = "none", .
#' @param .expand should output be 1d (expand = FALSE), with an element for
#' each row; or nd (expand = TRUE), with a dimension for each variable.
#' @param .progress name of the progress bar to use, see \code{\link{create_progress_bar}}
#' @param .parallel if \code{TRUE}, apply function in parallel, using parallel
#' backend provided by foreach
#' @export
m_ply <- function(.data, .fun = NULL, ..., .expand = TRUE, .progress = "none", .parallel = FALSE) {
m_ply <- function(.data, .fun = NULL, ..., .expand = TRUE, .progress = "none") {
if (is.matrix(.data) & !is.list(.data)) .data <- .matrix_to_df(.data)

f <- splat(.fun)
Expand Down
5 changes: 1 addition & 4 deletions man/m_ply.Rd
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
\name{m_ply}
\alias{m_ply}
\title{Call function with arguments in array or data frame, discarding results.}
\usage{m_ply(.data, .fun, ..., .expand=TRUE, .progress="none",
.parallel=FALSE)}
\usage{m_ply(.data, .fun, ..., .expand=TRUE, .progress="none")}

\description{
Call function with arguments in array or data frame, discarding
Expand All @@ -29,6 +28,4 @@
\item{.expand}{should output be 1d (expand = FALSE), with an element for
each row; or nd (expand = TRUE), with a dimension for each variable.}
\item{.progress}{name of the progress bar to use, see \code{\link{create_progress_bar}}}
\item{.parallel}{if \code{TRUE}, apply function in parallel, using parallel
backend provided by foreach}
}

0 comments on commit af539c2

Please sign in to comment.