Skip to content

Commit

Permalink
Merge pull request #5 from AdamMJenks/master
Browse files Browse the repository at this point in the history
Rectifying %>% with dplyr
  • Loading branch information
romainfrancois committed Nov 4, 2016
2 parents af828d2 + ea7e63d commit 3b224f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/file.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
}

### send to file
`%>%` <- function( object, file) ..redirect(object,file,type="output" , append=FALSE)
`%>>%` <- function( object, file) ..redirect(object,file,type="output" , append=TRUE )
`%file>%` <- function( object, file) ..redirect(object,file,type="output" , append=FALSE)
`%file>>%` <- function( object, file) ..redirect(object,file,type="output" , append=TRUE )
`%2>>%` <- function( object, file) ..redirect(object,file,type="message", append=TRUE )
`%2>%` <- function( object, file) ..redirect(object,file,type="message", append=FALSE)
`%*>>%` <- function( object, file) ..redirect(object,file,type="both", append=TRUE )
Expand Down
8 changes: 4 additions & 4 deletions man/files.Rd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
\name{files}
\alias{\%<<\%}
\alias{\%<\%}
\alias{\%>>\%}
\alias{\%>\%}
\alias{\%fie>>\%}
\alias{\%file>\%}

\alias{\%<<2\%}
\alias{\%<2\%}
Expand Down Expand Up @@ -42,11 +42,11 @@
NULL, used for the side effects.
}
\details{
\code{\%>\%} sends the \code{object} to the \code{file}. The object is printed to the file
\code{\%file>\%} sends the \code{object} to the \code{file}. The object is printed to the file
according to the function specified in the \code{operators.print} option supplied with this package,
most likely to be the \code{\link{print}} function. See examples.

\code{\%>>\%} appends the output to the file.
\code{\%file>>\%} appends the output to the file.

\code{\%2>\%} sends the message stream to the file by \code{\link{sink}}ing the
\code{message} stream to the file. See \code{\link{sink}} for details.
Expand Down

0 comments on commit 3b224f3

Please sign in to comment.