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

Fix for empty objects (#180) #182

Merged
merged 1 commit into from Jun 11, 2015
Merged

Conversation

RomanTsegelskyi
Copy link
Contributor

Fix for #180. Some example,

> mt <- mtcars[mtcars$mpg < 0, 1:4]
> res <- pander(mt)

-----------------------
 mpg   cyl   disp   hp 
----- ----- ------ ----
 NA    NA     NA    NA 
-----------------------

> colnames(mt) <- NULL
> res <- pander(mt)
Warning message:
In pandoc.table.return(...) :
  Object is empty and without header. No output will be produced
> mt <- matrix(0, nrow = 0, ncol = 5)
> res <- pander(mt)
Warning message:
In pandoc.table.return(...) :
  Object is empty and without header. No output will be produced
> colnames(mt) <- 1:5
> res <- pander(mt)

-------------------
 1   2   3   4   5 
--- --- --- --- ---
NA  NA  NA  NA  NA 
-------------------

daroczig added a commit that referenced this pull request Jun 11, 2015
@daroczig daroczig merged commit 6d324f6 into Rapporter:master Jun 11, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants