Live data from Hacker News

Bookdown – Authoring Books and Technical Documents with R Markdown

blog.rstudio.org

1–10 of 24 posts

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#3

Can somebody explain to me why they would download a programming language just to write a technical paper? I get that it's a replacement for TeX, but with a name like Bookdown, I expect it to be as simple as Markdown in terms of setup.

I think it's aimed towards people who already use R. Stat academics for instance.

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#5

Can somebody explain to me why they would download a programming language just to write a technical paper? I get that it's a replacement for TeX, but with a name like Bookdown, I expect it to be as simple as Markdown in terms of setup.

when you are a r user this is what youd like to have sometimes.

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#7

Can somebody explain to me why they would download a programming language just to write a technical paper? I get that it's a replacement for TeX, but with a name like Bookdown, I expect it to be as simple as Markdown in terms of setup.

First of all, this is for statistics based papers, not just "technical papers". The "R" in the URL and also in the language itself shows that focus. So if you have to first download R (and RStudio) you may not be the target audience.

The benefit of RMarkdown publications is that they contain the code to reproduce every single step in the argument - as far as it is based on data.

Examples from me, made for a course on Coursera some time ago (so especially in the 2nd example the focus wasn't on the result, effort for data cleaning was deliberately kept to a minimum):

- https://rpubs.com/Noseshine/74191

- https://rpubs.com/Noseshine/79343

Every single line of code necessary to produce the graphs and tables and summary statistics is in there. If you get the source RMarkdown file you can run it yourself. The graphics and tables are not images created somewhere else!

Usually you will have the code in an appendix at the very end, but every single thing in the document based on data is calculated using code somewhere in the document itself.

The main target for these kinds of publications are statistics-heavy papers. Usually you just read the conclusions of the authors and some summary statistics but you don't have access a) to the data they used and b) to the methods they used on the data. RMarkdown documents provide b) and (hopefully) an embedded link to a) (in the form of source code that when executed downloads it into your R environment).

The background story is that not infrequently you find studies (in all kinds of statistics-heavy fields from medicine to psychology) where the summary conclusions are based on faulty premises, faulty data collection/selection, faulty statistical methods. If all you have is a LaTeX or Word or whatever (passive) summary document you cannot find any of those problems unless you keep bugging the authors for a copy of their data and their code used to analyse it, which is a lot of work and was too often altogether unsuccessful. So there is a push in science to get people and organizations to publish more than just the summary.

Another advantage: You can produce interactive (online) versions, for example showing a graph where you can change parameters interactively, but show a few static example graphs in the static document version.

As for just the format:

The reason to compete with LaTeX has been given right here on HN a few times when LaTeX was discussed: It is far more difficult and has plenty of bugs and difficulties. A long time ago I wrote my thesis in it and had no major issues, but I don't know why I would want to write anything in it now. Things like RMarkdown are much less flexible - and orders of magnitude easier, both to write and to debug.

As for the competition with Word, text-based formats have the advantage to be easily "processable" using other tools.

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#8

Can somebody explain to me why they would download a programming language just to write a technical paper? I get that it's a replacement for TeX, but with a name like Bookdown, I expect it to be as simple as Markdown in terms of setup.

It's not a replacement for TeX. R originally had Sweave for weaving R and text together. Then we got Rmarkdown, which introduced the use of markdown for authoring documents via pandoc, but the output document only had simple features like headers, sub headers, emphasis and so on.

Now Yuhui from Rstudio (who's been prolific in this area) has written bookdown for authoring books with rmarkdown. It's not for authoring statistical papers (as the other comments stated - that's rmarkdown's realm) it's for books like Hadley Wickham's R4DS and Advanced R. Other examples can be found on the bookdown website.

I'd also add that, regardless of inserting R code, bookdown is a class authoring format and personally I would write a book or large document in bookdown even if it was just pure prose.

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#9
I've been toying with http://weasyprint.org and Python markdown toward similar (but as yet unrealized) effects, and quite like the idea.

It's not too hard to, say, write a Python Markdown extension to do the same using pandas, seaborn and the usual data science tools from the Python universe, but I salute the R folk for getting this done in what appears to be a quite consistent fashion.

Re: Bookdown – Authoring Books and Technical Documents with R Markdown

#10
Hello guys and how are you doing today, Do you need require the services of an accomplished and professional hacker for any of the following:

-Facebook account hacking -Instagram account hacking -Mobile phone hacking -Whatsapp hacking -Kik account hacking -GPS tracking -Website hacking -Bank account hacking -Account recovery -DDOS attack -Email account hacking

Then you should contact:danielwellingtonhacks@gmail.com for his professional services. He is one of the best hackers out there.

Post reply on HN