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

sessionInfo() problem #191

Closed
dmurdoch opened this issue Jun 30, 2015 · 3 comments
Closed

sessionInfo() problem #191

dmurdoch opened this issue Jun 30, 2015 · 3 comments

Comments

@dmurdoch
Copy link

This document gives an error when processed:


---
title: "Untitled"
author: "Duncan Murdoch"
date: "June 30, 2015"
output: pdf_document

---


```{r}
pander::pander(sessionInfo(), compact=TRUE)

pander::pander(sessionInfo(), compact=FALSE)
```

The first sessionInfo() is fine:

pander::pander(sessionInfo(), compact=TRUE)

R version 3.2.0 Patched (2015-04-28 r68272)

Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
en_CA.UTF-8||en_CA.UTF-8||en_CA.UTF-8||C||en_CA.UTF-8||en_CA.UTF-8

attached base packages:
stats, graphics, grDevices, utils, datasets, methods and base

loaded via a namespace (and not attached):
magrittr(v.1.5), tools(v.3.2.0), htmltools(v.0.2.6), Rcpp(v.0.11.6), pander(v.0.5.3), stringi(v.0.5-5), rmarkdown(v.0.7), knitr(v.1.10.5), stringr(v.1.0.0), digest(v.0.6.8) and evaluate(v.0.7)

The second sessionInfo() comes out with a subscript out of bounds error:

pander::pander(sessionInfo(), compact=FALSE)

R version 3.2.0 Patched (2015-04-28 r68272)

Platform: x86_64-apple-darwin13.4.0 (64-bit)

locale:
en_CA.UTF-8||en_CA.UTF-8||en_CA.UTF-8||C||en_CA.UTF-8||en_CA.UTF-8
Quitting from lines 10-13 (course.Rmd)
Error in elements[[i]] : subscript out of bounds
Calls: ... pandoc.list.return -> paste -> sapply -> lapply -> FUN

@daroczig
Copy link
Member

Thank you very much for reporting this -- the bug was triggered by not having any "other attached packages", which triggered an error in pandoc.list. This should be fixed now.

Also, thank you very much for attending my tutorial today, it was a great honor to have your kind interest and company!

@dmurdoch
Copy link
Author

dmurdoch commented Jul 2, 2015

On 30/06/2015 11:42 PM, Gergely Daróczi wrote:

Thank you very much for reporting this -- the bug was triggered by not
having any "other attached packages", which triggered an error in
|pandoc.list|. This should be fixed now.

Also, thank you very much for attending my tutorial today, it was a
great honor to have your kind interest and company!


Reply to this email directly or view it on GitHub
#191 (comment).

Thank you for the quick fix! I was familiar with rmarkdown, but not
with pander: it looks really interesting.

Duncan

@daroczig
Copy link
Member

daroczig commented Jul 2, 2015

Thank you very much for your kind words, I'd be more than happy to try to answer any question you may have. Best, Gergely

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