Skip to content
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 if list element is of class 'Date' (bug?) #328

Closed
tdeenes opened this issue Nov 5, 2018 · 1 comment
Closed

Error if list element is of class 'Date' (bug?) #328

tdeenes opened this issue Nov 5, 2018 · 1 comment

Comments

@tdeenes
Copy link

tdeenes commented Nov 5, 2018

Maybe I am missing something obvious, but this code results in an error (version 0.6.2):

pander(list(x = as.Date("2018-11-05")))

The problem is caused by pander:::pander.Date which passes all dots arguments to pander:::pandoc.date which passes the args further to pander:::pandoc.date.return which does not have ... in its arguments. Note that pander.list contains this line:

res.i <- paste(capture.output(pander(x[[i]], indent = indent + 1)), collapse = "\n")

, and because of the above, the argument indent is passed to pander:::pandoc.date.return, which of course fails to process it.

@daroczig
Copy link
Member

daroczig commented Nov 6, 2018

Oh, good catch, and thanks for the detailed report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants