burgerga / rspacer

RSpace API Wrapper
https://burgerga.github.io/rspacer/
Other
1 stars 1 forks source link

Small suggestions for document_create_from_html #3

Closed hleegwater closed 5 months ago

hleegwater commented 8 months ago
  1. I'm not sure if we should allow it, but for now: if sections are missing, the function document_create_from_html cannot upload a document. This means that one might
  2. It would make more sense to me to use the qmd/Rmd yaml header for the author and date than a section within the document. For example
---
title: "Cool title"
author: "It's meeeeee"
date: "`r Sys.Date()`"

instead of

## Title

`{r} rmarkdown::metadata$title`

## Date (dd-MM-yyyy)

`{r} format(Sys.time(), format = "%d-%m-%Y")`

to be continued :)

burgerga commented 6 months ago

I totally agree with 2, and I tried it, but didn't get it too work :D (maybe now after 3 months I have more clarity of mind to fix it)

And your first point is not complete it seems...

hleegwater commented 5 months ago

Hmm, I don't get emails from github, sorry for the late reply. I'll start working on a function that can replace/append one section in a remote doc. That can solve my incomplete point 1 (that sometimes you don't want to have all headers from an RSpace Template, just one or two).