knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The package is experimental!
pkg is yet another alternative to avoid namespace clashes when loading packages with library. It is based on the import
package with some modified functionality.
You can install the package from Github:
devtools::install_github("markusdumke/pkg")
library(pkg) # Check that lubridate is installed (does not load the package) # Refer to functions with lubridate:: import_pkg(lubridate, .load = FALSE) lubridate::dmy("01.01.2019") # Import only map from purrr import_from(purrr, map) map(1:3, rnorm) # Explicitly import magrittr (same as library) import_pkg("magrittr", .load = TRUE) 1:10 %>% sum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.