Append a html document (e.g., generated from quarto) to an RSpace structured document. This function retrieves the current document, and adds text to fields specified by h2 html headers.
Usage
document_append_from_html(
path,
existing_document_id,
tags = NULL,
attachment = NULL,
allow_missing_fields = FALSE,
api_key = get_api_key()
)
Arguments
- path
html document to be uploaded
- existing_document_id
document identifier of the current RSpace document.
vector of tags to apply to the document
- attachment
attachment to attach to one of the fields, e.g.,
list(field = 7, path = "file.txt")
- allow_missing_fields
Specify if a mismatch in fields is allowed. If this is
FALSE
, the html fields cannot be appended to the RSpace document when fields are missing. If it isTRUE
, only fields with the same name as in the template will be appended.- api_key
RSpace API key