knitr::knit("vignettes/tutorial.Rmd.orig",
output = "vignettes/tutorial.Rmd")
fig.path=""
knitr::purl("vignettes/tutorial.Rmd.orig", output =
"vignettes/tutorial.R")
knitr::knit("vignettes/tutorial.Rmd.orig", output = "vignettes/tutorial.Rmd")
knitr::purl("vignettes/tutorial.Rmd.orig", output = "vignettes/tutorial.R")
f = list.files(full.names = TRUE,pattern = ".png")
f2 <- gsub("./","./vignettes/",f)
file.copy(f,f2)
sapply(f,unlink)
pkgdown
site build with CI on Travisusethis::use_pkgdown()
for pkgdown
pkgdown::build_articles
and pkgdown::build_site
use_travis_deploy()
broken with:Error: `github_token()` was deprecated in usethis 2.0.0 and is now defunct.
Call `gh::gh_token()` to retrieve a GitHub personal access token
Call `gh_token_help()` if you need help getting or configuring your token
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.