Hi folks,
I am switching some files from RMarkdown to Quarto, and ran into a problem with one of my params.
I have two params:
-
county
is a character string that defines which county to generate the report for. -
doc.hist
is a data frame with three columns (Version
,Date
, andAmendments
).
These params work fine in RMarkdown, and the county
parameter works for my new Quarto doc.
I am generating the reports the quarto package in R, using something like this:
quarto_render(input = quarto_file, execute_params = list(county = county, doc.hist = doc.hist))
My problem is that doc.hist
gets converted to a list in Quarto, where each column is an element in the list, and each entry in the column in an element in that list, and my dates have been converted to a numeric that I'm not sure how to convert back (e.g., 1609891200).
I can probably figure out how to re-create my data frame in my quarto doc, but is there a way I can read it in directly as data frame/tibble?
Thanks!