[This article was first published on rapporter, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I have just released a new version of pander to CRAN with some minor fixes and some (hopefully) useful new features to generate markdown tables beside other tools:Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
- although I really love the Droid Sans that I used to bundle with the package, I decided to ditch it to save some space (50% of the package size),
- I have also updated the parameters passed to Pandoc while generating HTML to be able to create self-contained files (all images, CSS and JS would be shipped within one file) that can be uploaded or e-mailed a lot easier compared to complex directory structures,
- Andrew Redd helped me to improve pander to be an alternative method for
vignetteEngine
, - and I got some great feature requests to tweak e.g. the linear model outputs:
> panderOptions('table.split.table', Inf) > pander(lm(Sepal.Width ~ Species + Sepal.Length, data = iris), covariate.labels = c('Sepal Length'), omit = 'Species', summary = TRUE) --------------------------------------------------------------- Estimate Std. Error t value Pr(>|t|) ------------------ ---------- ------------ --------- ---------- **Sepal Length** 0.3499 0.0463 7.557 4.187e-12 **(Intercept)** 1.677 0.2354 7.123 4.456e-11 --------------------------------------------------------------- ------------------------------------------------------------- Observations Residual Std. Error $R^2$ Adjusted $R^2$ -------------- --------------------- ------- ---------------- 150 0.289 0.5693 0.5604 ------------------------------------------------------------- Table: Fitting linear model: Sepal.Width ~ Species + Sepal.Length
For more details, see the NEWS on GitHub or right in your R console:
> news(package = 'pander')
To leave a comment for the author, please follow the link and comment on their blog: rapporter.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.