knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
colonoscopy
provides functions and RStudio addins to easily add or remove explicit package scoping (::
, :::
)
# install.packages("devtools") devtools::install_github("TylerGrantSmith/colonoscopy")
scope
will modify expressions or functions by appending explicit package references.
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).
unscope("ggplot2::alpha") alpha unscope(alpha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.