{"id":5403,"date":"2016-07-18T13:39:00","date_gmt":"2016-07-18T17:39:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=5403"},"modified":"2016-07-18T13:41:50","modified_gmt":"2016-07-18T17:41:50","slug":"literate-programming-with-r","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=5403","title":{"rendered":"Literate Programming with R"},"content":{"rendered":"<p> Since I&#8217;ve been writing about literate programming lately, here&#8217;s a nice talk by Don Knuth on <a href=\"https:\/\/channel9.msdn.com\/Events\/useR-international-R-User-conference\/useR2016\/Literate-Programming\">Literate Programming in R<\/a>. Knuth begins his talk with an overview of several books that have been written using literate programming and discussing why it&#8217;s a win for the reader. <\/p>\n<p> One of the things that many of the authors of those books said is that it&#8217;s much harder to write a literate program that it is to write a book or write a program. Knuth disagrees. He says that some of the really hard programs he&#8217;s written would have been impossible if he had tried just writing conventional program. <\/p>\n<p> The second half of the talk considers using literate programming techniques to write R programs. Knuth says it&#8217;s a bit different (from, say, C) because R is such a high level language. Nevertheless, literate programming works well in the domain too as he demonstrates with a small paper on the Kolmogorov-Smirnov statistic written using literate programming. If you&#8217;re interested in the details, Knuth has posted a (corrected) <a href=\"http:\/\/www-cs-faculty.stanford.edu\/~knuth\/ks.pdf\">copy of the paper<\/a>. The <a href=\"http:\/\/www-cs-faculty.stanford.edu\/~knuth\/LP-R-slides.pdf\">slides<\/a> are also available. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I&#8217;ve been writing about literate programming lately, here&#8217;s a nice talk by Don Knuth on Literate Programming in R. Knuth begins his talk with an overview of several books that have been written using literate programming and discussing why &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=5403\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[37],"class_list":["post-5403","post","type-post","status-publish","format-standard","hentry","category-programming","tag-tech"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5403"}],"version-history":[{"count":2,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5403\/revisions"}],"predecessor-version":[{"id":5405,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5403\/revisions\/5405"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}