I had a little question regarding blogdown::write_toml. The thing is I am not quite sure how to deal with datetime objects when writing the toml file after I edit it. If I keep date time in native format (as.Posixct), then write_toml converts the date time to some float number (e.g. 2021-01-02 00:05:00 becomes 1546387200.0. I guess time after some origin timestep). If I convert datetime to character, single quotes occur around the datetime (e.g. 2021-01-02 00:05:00 becomes '2021-01-02 00:05:00'). What is the right way to keep the datetime in R object, so that write_toml would result in: start_date = 2021-01-02 00:05:00 ? (without quotes)
Thanks in advance,
Alex