Transform Google Doc to Quarto bookSource:
Transform Google Doc to Quarto book
ID of the Google Document.
A path, where to create the Quarto book. It will be created if needed.
Logical. Whether to render the resulting Quarto book.
Logical. Whether to try and fix lists, see Details.
If your Google Document contains lists whose items span several lines,
you might get better results with the
fix_lists parameter set to
The problem is that in Google Docs lists, from the second line lines in items
have a small indentation. Pandoc tends to interpret this as a blockquote.
We try to fix that by merging blockquotes in their previous sibling,
when that previous sibling is a list item.
id <- googledrive::drive_find( q = "name contains 'My Example Document'" )$id #> Error in drive_auth(): Can't get Google credentials. #> ℹ Are you running googledrive in a non-interactive session? Consider: #> • Call `drive_deauth()` to prevent the attempt to get credentials. #> • Call `drive_auth()` directly with all necessary specifics. #> ℹ See gargle's "Non-interactive auth" vignette for more details: #> ℹ <https://gargle.r-lib.org/articles/non-interactive-auth.html> quarto_dir <- withr::local_tempdir() quartificate::quartificate(id, quarto_dir, render = TRUE) #> Error in eval(expr, envir, enclos): object 'id' not found