Report in R – is that uphill or what? [🇷 for BE/BA]
Hi ElMaestro,
What I have done is have a folder with the following sub folders as template.
I would just copy this template folder in a project location and use relative path in the source file such as
For important report that was intended for the boss
, sending out to partners or answering questions from regulatory agencies, I would normally use LaTeX (with or without knitr depending on the nature of analysis). The output pdf quality is much better than that of other tools such as M$ Office or R markdown.
For quick analysis to show it to colleagues then I would normally couple knitr with R markdown with html output. The learning curve of R markdown is nothing comparing to the learning curve of R, which you guys all seems mastered, so it shouldn't take long to be able to do most of analysis.
Personally I think that knitr is a great tool. Once you have done a few analysis it wouldn't be very difficult to make some templates. The learning curve is also nothing comparing to R (It seems the more I study R the less I understood it).
What I have done is have a folder with the following sub folders as template.
dat/ <-- data files
doc/ <-- report document containing analysis etc
fig/ <-- output figures
log/ <-- log files if any
out/ <-- result of analysis (raw output)
src/ <-- source files (sas, R, Rmd, etc)
tex/ <-- tex for report
tmp/ <-- cache files from knitr or other temp files
tpl/ <-- template files for diff. types of documents
I would just copy this template folder in a project location and use relative path in the source file such as
read.csv("../dat/source.file.csv")
so the analysis is portable. For important report that was intended for the boss

For quick analysis to show it to colleagues then I would normally couple knitr with R markdown with html output. The learning curve of R markdown is nothing comparing to the learning curve of R, which you guys all seems mastered, so it shouldn't take long to be able to do most of analysis.

Personally I think that knitr is a great tool. Once you have done a few analysis it wouldn't be very difficult to make some templates. The learning curve is also nothing comparing to R (It seems the more I study R the less I understood it).
—
All the best,
Shuanghe
All the best,
Shuanghe
Complete thread:
- Report in R – is that uphill or what? ElMaestro 2016-03-05 23:14 [🇷 for BE/BA]
- Report in R – R-Studio & R Markdown d_labes 2016-03-06 13:25
- Old-school Helmut 2016-03-06 15:57
- Report in R – is that uphill or what? yjlee168 2016-03-07 11:52
- Report in R – is that uphill or what? ElMaestro 2016-03-07 13:36
- Report in R – is that uphill or what?Shuanghe 2016-03-07 17:38
- To R or not to R d_labes 2016-03-08 07:49