Bioequivalence and Bioavailability Forum

Main page Policy/Terms of Use Abbreviations Latest Posts

 Log in |  Register |  Search

Back to the forum  2018-06-22 19:20 CEST (UTC+2h)

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

posted by ElMaestro - Denmark, 2016-03-05 23:14  - Posting: # 16055
Views: 4,557

Hi all,

I am struggling a bit with R. Am trying to do something which sounds quite simple:
I want to run some analyses in R and then create a document of sorts which may contain some of the results like graphs/plots, some tables, and a bit of text generated by R. Save in some easily accessible format like *.doc, *.rtf or pdf or anything widely used which can be opened/viewed by people who do not have R.

It is not easy, though :confused::confused:. I google around and get to pages about knitr and sweave and I am utterly and miserably lost. I admit that 250 tutorials and simple examples later I am none the wiser at all.

Do I really have to copy and paste graphs, tables, text from R into a document manually?
Or even worse, use disk i/o tools within R to create a folder from which I build manually a html document with the graphs and tables I produce. It seems a long and cumbersome way to go for very little, and at the end of the day it means the document (what the user sees via the browser) will still span several files and that is not ideal. If I could shell the browser to then print the html file to pdf via the built-in virtual pdf generator then it just might work. But this seems far-fetched, isn't there a smarter way?

If someone has a quick way to accomplish what I so far haven't been able to then I'd love to see it.

Thanks in advance for any input.

Edit: Category changed. That’s perfectly On-Topic! [Helmut]

if (3) 4

Best regards,

"(...) targeted cancer therapies will benefit fewer than 2 percent of the cancer patients they’re aimed at. That reality is often lost on consumers, who are being fed a steady diet of winning anecdotes about miracle cures." New York Times (ed.), June 9, 2018.

Complete thread:

Back to the forum Activity
 Mix view
Bioequivalence and Bioavailability Forum |  Admin contact
18,418 posts in 3,912 threads, 1,173 registered users;
online 17 (0 registered, 17 guests [including 6 identified bots]).

The greatest shortcoming of the human race is our inability
to understand the exponential function.    Albert Bartlett

BEBAC Ing. Helmut Schütz