knitr::opts_chunk$set( warning = FALSE, message = FALSE, collapse = TRUE, comment = "#>" )
devtools::install_github("sckott/atomize")
library("atomize")
atomize fxns into separate package
download.file("https://cloud.r-project.org/src/contrib/cowsay_0.8.0.tar.gz", "cowsay_0.8.0.tar.gz") untar("cowsay_0.8.0.tar.gz", exdir = tempdir()) path <- file.path(tempdir(), "cowsay") path2 <- file.path(tempdir(), "goatsay") atomizer(path_ref = path, path_new = path2, funcs = "say")
install
devtools::install(path2)
load
library("goatsay")
call function
goatsay::say()
boom! atomized
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.