View source: R/bookdown_zenodo.R
bookdown_zenodo | R Documentation |
bookdown
and upload to ZenodoFirst clears all the existing files in the output_dir
set in
_bookdown_.yml
.
Then renders all required output formats and uploads them to Zenodo.
bookdown_zenodo()
creates a draft record when you don't specify a community
in the yaml.
Otherwise it creates a review request for the first community.
bookdown_zenodo(
path,
zip_format = c("bookdown::gitbook", "INBOmd::gitbook"),
single_format = c("bookdown::pdf_book", "bookdown::epub_book", "INBOmd::pdf_report",
"INBOmd::epub_book"),
token,
sandbox = TRUE,
logger = "INFO"
)
path |
The root folder of the report |
zip_format |
A vector with output formats that generate multiple files. The function will bundle all the files in a zip file for every format. |
single_format |
A vector with output formats that generate a single output file. The output will remain as is. |
token |
the user token for Zenodo.
By default an attempt will be made to retrieve token using |
sandbox |
When |
logger |
Type of logger for Zenodo upload.
Defaults to |
Other utils:
ask_yes_no()
,
author2df()
,
c_sort()
,
create_hexsticker()
,
execshell()
,
menu_first()
,
orcid2person()
,
store_authors()
,
use_author()
,
validate_email()
,
validate_orcid()
,
yesno()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.