Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< size="1">please see knitr Performance Report–Attempt 3, < >< size="1">knitr Performance Report-Attempt 2< >< size="1"> and < >< size="1">knitr Performance Report-Attempt 1< >
alstated’s asked a very good question in his comment on knitr Performance Report–Attempt 3, and I’m not sure I could have answered well until I endured some frustrations with Sweave. I actually did not use knitr for that report, and I struggled with many of the issues that knitr addresses. knitr’s power comes in its extra ability to control output with additional chunk options described in http://yihui.name/knitr/options, so no more wide, textblock, etc. latex commands.
A very prominent R Finance contributor also alerted me to the dprint (be aware in pre-Alpha) package from Carl Brickner https://r-forge.r-project.org/projects/tabular/ presented at userR! 2010 and also at . To use, you will have to manually install with the command:
install.packages(“dprint”, repos=”http://R-Forge.R-project.org“)
For the final pdf, use the knit2pdf command from knitr:
knit2pdf(“pathtofile.rnw”)
I was delighted with the result and probably will abandon the Sweave-direct option. Thanks to Carl for dprint and Yihui for knitr. If you do not see the embedded pdf below, please get directly through https://www.box.com/s/416b473f6c92c581e343. < embed src="https://www.box.com/embed/sh30hjuz4cmypu3.swf" width="450" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
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.