Report in R – is that uphill or what? [🇷 for BE/BA]

posted by Shuanghe  – Spain, 2016-03-07 18:38 (2943 d 18:04 ago) – Posting: # 16069
Views: 6,463

Hi ElMaestro,

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 ;-), 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. :-D

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

Complete thread:

UA Flag
Activity
 Admin contact
22,957 posts in 4,819 threads, 1,636 registered users;
104 visitors (0 registered, 104 guests [including 8 identified bots]).
Forum time: 12:43 CET (Europe/Vienna)

With four parameters I can fit an elephant,
and with five I can make him wiggle his trunk.    John von Neumann

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5