Skip to content

Commit

Permalink
Add wrapr dotpipe addin
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMount committed Nov 18, 2017
1 parent 90e676c commit 969836e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.Rproj.user
.Rhistory
.RData
.DS_Store
*~
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

export(findAndReplaceAddin)
export(insertDotPipeAddin)
export(insertInAddin)
export(subsetAddin)
import(formatR)
Expand Down
8 changes: 8 additions & 0 deletions R/insertDotPipeAddin.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#' Insert \%.>\%.
#'
#' Call this function as an addin to insert \code{\link[wrapr]{\%.>\%}} at the cursor position.
#'
#' @export
insertDotPipeAddin <- function() {
rstudioapi::insertText(" %.>% ")
}
5 changes: 5 additions & 0 deletions inst/rstudio/addins.dcf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Name: Insert %.>%
Description: Inserts `%.>%` at the cursor position.
Binding: insertDotPipeAddin
Interactive: false

Name: Insert %in%
Description: Inserts `%in%` at the cursor position.
Binding: insertInAddin
Expand Down
11 changes: 11 additions & 0 deletions man/insertDotPipeAddin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 969836e

Please sign in to comment.