Description Usage Arguments Details
deploy_website
deploys a website that was created in some
branch directory into some other branch from where it is published
on the web via github pages. The need for this function comes from
the fact that github project pages are published from the gh-pages
branch and not from the master branch. But still we would like to
develop the website on the master branch which gives us the possibility
to test everyting without the need for immediate publication.
1 2 | deploy_website(psFrom = "vignettes/index.Rmd", psToDir = NULL,
pbKnitrKnit = FALSE, pbOverWrite = TRUE)
|
psFrom |
source file which is to be deployed, the source directory must exist, o/w, the function stops with an error |
psToDir |
directory where the file should be deployed to, if it does not exist, the directory will be created |
pbKnitrKnit |
should the original file be converted from Rmd to md, default = FALSE |
pbOverWrite |
should existing result files be overwritten, default = TRUE, this also influences option recursive of file.copy |
The flag pbKnitrKnit
indicates whether the original document should
be converted from Rmd to md format. NB github pages only allow .md documents
for publication. The flag pbOverWrite
specifies whether any existing
result files should be overwritten or not. The same value is used for option
recursive
of the used function file.copy
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.