New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with the date in YAML #23

Closed
fderyckel opened this Issue Sep 23, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@fderyckel

fderyckel commented Sep 23, 2018

When I put this into the YAML it throws an error
date: "r format(Sys.Date(), '%d %B, %Y')"

Quitting from lines 2-9 ()
Error in parse(text = code, keep.source = FALSE) :
:1:29: unexpected input
1: format(Sys.Date(), ''%d %B, %Y'')
^
Calls: ... hook_eval -> withVisible -> eval -> parse_only -> parse
In addition: There were 23 warnings (use warnings() to see them)
Execution halted

It does work however with other output such as html.

@jjallaire

This comment has been minimized.

Show comment
Hide comment
@jjallaire

jjallaire Sep 23, 2018

Member

The problem here is that Radix needs a particular date format. Try this:

date: '`r format(Sys.Date(), "%B %d, %Y")`'
Member

jjallaire commented Sep 23, 2018

The problem here is that Radix needs a particular date format. Try this:

date: '`r format(Sys.Date(), "%B %d, %Y")`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment