Thanks to visit codestin.com
Credit goes to github.com

Skip to content

alejandroxag/donothing

Repository files navigation

donothing

License: MIT

The aim of this is saving the annoyance of commenting a pipe %>%.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("alejandroxag/donothing")
library(donothing)

Example

When working with a series of instructions piped down together, it’s straightforward to comment any of them, except the last one, since the previous pipe is left pointing nowhere. donothing() is intended to be that last line that won’t be commented.

Easier to do this

t <- tibble::tibble(x = 1:2) %>% 
    dplyr::mutate(y = letters[1:2]) %>%
    # dplyr::mutate(y = LETTERS[1:7]) %>%
    donothing::donothing()
t
#> # A tibble: 2 x 2
#>       x y    
#>   <int> <chr>
#> 1     1 a    
#> 2     2 b

rather than this

t <- tibble::tibble(x = 1:2) %>% 
    dplyr::mutate(y = letters[1:2]) #%>% 
    # dplyr::mutate(y = letters[1:7])
t
#> # A tibble: 2 x 2
#>       x y    
#>   <int> <chr>
#> 1     1 a    
#> 2     2 b

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages