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

posted by Shuanghe  – Spain, 2016-03-07 18:38 (3392 d 04:44 ago) – Posting: # 16069
Views: 7,475

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
23,424 posts in 4,927 threads, 1,674 registered users;
41 visitors (0 registered, 41 guests [including 8 identified bots]).
Forum time: 00:23 CEST (Europe/Vienna)

Complex, statistically improbable things are by their nature
more difficult to explain than
simple, statistically probable things.    Richard Dawkins

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