Skip to content

Commit

Permalink
Some documentation and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joachim-gassen committed Aug 21, 2018
1 parent da4c693 commit 3b88b7e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ Package: ViewPipeSteps
Type: Package
Title: Create View Tabs of Pipe Chains
Version: 0.1.0
Author: David Ranzolin
Author: David Ranzolin [aut, cre],
Joachim Gassen [aut]
Maintainer: David Ranzolin <[email protected]>
Description: Debugging pipe chains often consists of viewing the output after each step.
This addin automatically creates a View() output of each step.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Imports: stringr (>= 1.3.0),
purrr,
magrittr
Imports: rstudioapi
RoxygenNote: 6.0.1
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
exportPattern("^[[:alpha:]]+")
importFrom(magrittr,"%>%")
export("viewPipeChain")
9 changes: 8 additions & 1 deletion R/viewPipeChain.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ findPipeCalls <- function(x) {
rev(pl)
}


#' @title Creates a View() output for each pipe step in current text selection
#'
#' @description
#' Reads the currently selected text from the RStudio API and displays a data view
#' in the source pane for each pipe step. Meant to be called as a RStudio addin.
#'
#' @export
#'
viewPipeChain <- function() {
context <- rstudioapi::getActiveDocumentContext()
selection <- context$selection[[1]]$text
Expand Down
12 changes: 12 additions & 0 deletions man/viewPipeChain.Rd

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

File renamed without changes.

0 comments on commit 3b88b7e

Please sign in to comment.