-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
49 lines (40 loc) · 1.45 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# colonoscopy <img src='man/figures/logo.png' align="right" height="139" />
<!-- badges: start -->
[![Codecov test coverage](https://codecov.io/gh/TylerGrantSmith/colonoscopy/branch/master/graph/badge.svg)](https://codecov.io/gh/TylerGrantSmith/colonoscopy?branch=master)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![R-CMD-check](https://github.com/TylerGrantSmith/colonoscopy/workflows/R-CMD-check/badge.svg)](https://github.com/TylerGrantSmith/colonoscopy/actions)
<!-- badges: end -->
`colonoscopy` provides functions and RStudio addins to easily add or remove explicit package scoping (`::`, `:::`)
## Installation
``` r
# install.packages("devtools")
devtools::install_github("TylerGrantSmith/colonoscopy")
```
## Example
`scope` will modify expressions or functions by appending explicit package references.
```{r unscope_example}
library(colonoscopy)
library(ggplot2)
scope("aes")
aes
scope(aes)
scope(aes, inPackage = FALSE)
```
`unscope` will modify expressions or functions by removing `::` and `:::` operators (and the package name).
```{r unpack_function_example}
unscope("ggplot2::alpha")
alpha
unscope(alpha)
```