I am writing a paper for the Journal of Statistical Software documenting my package. Their style files have some facilities for Sweave output but nothing for knitr. I imagine i would have to customise the knitrout environment.
我正在为“统计软件杂志”撰写论文,记录我的包裹。他们的样式文件有一些Sweave输出设施,但没有针织者。我想我必须自定义knitrout环境。
I wanted to know if anybody (maybe better than me at knitr and Latex) has done it already or has any suggestions.
我想知道是否有人(在knitr和Latex上比我更好)已经完成它或有任何建议。
Many thanks, Marco
非常感谢,Marco
2 个解决方案
#1
4
render_sweave()
renders knitr output in the Sweave default style which I think JSS expects. Also for JSS you need options(prompt="R> ")
render_sweave()以我认为JSS期望的Sweave默认样式呈现knitr输出。对于JSS,您还需要选项(prompt =“R>”)
#2
1
Can't you write your paper using Sweave and the use the Sweave2knitr
function from the knitr-package to turn it into a knitr-file?
你不能用Sweave写你的论文,并使用knitr-package中的Sweave2knitr函数把它变成一个knitr文件吗?
#1
4
render_sweave()
renders knitr output in the Sweave default style which I think JSS expects. Also for JSS you need options(prompt="R> ")
render_sweave()以我认为JSS期望的Sweave默认样式呈现knitr输出。对于JSS,您还需要选项(prompt =“R>”)
#2
1
Can't you write your paper using Sweave and the use the Sweave2knitr
function from the knitr-package to turn it into a knitr-file?
你不能用Sweave写你的论文,并使用knitr-package中的Sweave2knitr函数把它变成一个knitr文件吗?