This function can upload a html document (e.g., generated from quarto) to an RSpace Basic Document, or to a Structured Document if the template is also provided.
document_create_from_html(
path,
template_id = NULL,
folder_id = NULL,
tags = NULL,
attachments = NULL,
existing_document_id = NULL,
api_key = get_api_key()
)Invisible JSON response from the API.
html document to upload
document id of the RSpace template used.
Will be overwritten by the template of existing_document_id if specified.
A basic document is created if no template is specified.
folder_id in which the document will be created (can be a notebook)
vector of tags to apply to the document (will include "rspacer" by default)
attachments to attach to the fields in tibble/data.frame form (one attachment per row), e.g., tibble(field = 7, path = "file.txt")
document id of a document to be replaced, if NULL (the default) a new document will be created.
RSpace API key