[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685849-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-685849-en":130,"doc-similar-685849":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","literate-programming-in-r-markdown","Literate Programming in R Markdown","","Literate Programming in R Markdown presents the motivation and practical principles for writing programs in a way that readers can understand, reproduce, and improve. It emphasizes clearer communication so peers can replicate results, detect errors, and propose enhancements, while also reducing time and effort to free researchers for real work. The material highlights effective writing and code commenting, illustrating how to document what code does using examples in R.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/literate-programming-in-r-markdown/685849/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/literate-programming-in-r-markdown/685849.png","ImageObject",300,407,{"name":42,"@type":43},"Blue Pony","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the main benefit of literate programming for researchers?","Question",{"text":62,"@type":63},"It helps peers understand your work, replicate your results, find errors, and suggest enhancements.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Why does the presentation claim literate programming saves time and effort?",{"text":67,"@type":63},"By making programs easier to read and communicate, it reduces the overhead involved in sharing and reviewing research, allowing more time for substantive work.",{"name":69,"@type":60,"acceptedAnswer":70},"How does the document recommend improving code understandability?",{"text":71,"@type":63},"It focuses on effective communication and commenting code—such as explaining what the code does and presenting key R statements clearly.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},685849,1794019546,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},962090760266,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Literate Programming in R Markdown  \nDavid A. Selby  \nDepartment of Statistics, University of Warwick  \n16 November 2016  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 1 / 30   \n1 Literate Programming  \n2 Markdown  \n3 R Markdown  \n4 Lazy, productive research  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 2 / 30   \nLiterate Programming  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 3 / 30   \nMotivation  \n1 Literate programming helps peers understand and replicate your results,ﬁnd errors and suggest enhancements  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 4 / 30   \nMotivation  \n1 Literate programming helps peers understand and replicate your results,ﬁnd errors and suggest enhancements  \n2 “Literate programming produces better-quality programs” — Donald Knuth  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 4 / 30   \nMotivation  \n1 Literate programming helps peers understand and replicate your results,ﬁnd errors and suggest enhancements  \n2 “Literate programming produces better-quality programs” — Donald Knuth  \n3 Literate programming saves time and eﬀort, so you can spend more time:  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 4 / 30   \nMotivation  \n1 Literate programming helps peers understand and replicate your results,ﬁnd errors and suggest enhancements  \n2 “Literate programming produces better-quality programs” — Donald Knuth  \n3 Literate programming saves time and eﬀort, so you can spend more time:  \n• doing real research  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 4 / 30   \nMotivation  \n1 Literate programming helps peers understand and replicate your results,ﬁnd errors and suggest enhancements  \n2 “Literate programming produces better-quality programs” — Donald Knuth  \n3 Literate programming saves time and eﬀort, so you can spend more time:  \n• doing real research  \n• in the pub  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 4 / 30   \nEﬀective communication  \n“If you can’t write clearly, you probably don’t think nearly as well as you think you do.” —Kurt Vonnegut  \n“If it was hard to write, it should be hard to read.”  \n— Computer programmers’ proverb  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 5 / 30   \nCommenting code  \nWhat does this code do?  \ndata (women)  \nplot (women)  \nfit \u003C -lm (weight ~ height, data = women) abline (fit)  \n David A. Selby (Statistics)  Literate Programming in R Markdown  16 November 2016 6 / 30","cbCaiaI8vdEVoaYO","https://ap.wps.com/l/cbCaiaI8vdEVoaYO","pdf",876837,34,"English","# Literate Programming\n# Motivation\n## Literate programming helps peers\n## Producing better-quality programs\n## Saving time and effort\n# Effective communication\n# Commenting code","[{\"question\":\"What is the main benefit of literate programming for researchers?\",\"answer\":\"It helps peers understand your work, replicate your results, find errors, and suggest enhancements.\"},{\"question\":\"Why does the presentation claim literate programming saves time and effort?\",\"answer\":\"By making programs easier to read and communicate, it reduces the overhead involved in sharing and reviewing research, allowing more time for substantive work.\"},{\"question\":\"How does the document recommend improving code understandability?\",\"answer\":\"It focuses on effective communication and commenting code—such as explaining what the code does and presenting key R statements clearly.\"}]","Literate Programming in R Markdown | PDF",86,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d852f67697ef7f824add7cd80234f5cf.webp",983,737,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0ab3e132cb9f879a42995dfe3863e946.webp",982,736,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/152bb02f97adaca59d534182a4ae92dd.webp",981,735,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b54b98ff84db77eabdc38b36901d0caf.webp",980,734,{"list":163,"token":11},[164,170,176,182,188,194,201,207,214,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":33,"category_name":29,"create_tm":169},685848,"WRITING YOUR ESSAY USING R MARKDOWN - SOMETHING FOR EVERYONE - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227888/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=zq0vZTuwaJvBQ19AIXoKeJlvEIM%3D","writing-your-essay-using-r-markdown-something-for-everyone-introduction",1794019545,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":30,"category_name":29,"create_tm":175},698002,"Generate Mind Maps - Convert Documents with mindr - Version 1.4.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155841/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=QdLbtpHVV%2BIGvrpZ07nLISsgjM8%3D","generate-mind-maps-convert-documents-with-mindr-version-141",1794446940,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":123,"category_name":29,"create_tm":181},657500,"CS&SS 569 Visualizing Data and Models - Lab 2 - Intro to LATEX with R Markdown and Overleaf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975094700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=%2F4byjGUxD%2Bfdm%2FoPcuOm%2F1KkGu4%3D","csss-569-visualizing-data-and-models-lab-2-intro-to-latex-with-r-markdown-and-overleaf",1792981475,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":30,"category_name":29,"create_tm":187},685847,"R Markdown - An Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999698626/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=6zfhPZPDe7K6CuknBhAZIQlnV1s%3D","r-markdown-an-introduction",1794019543,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":30,"category_name":29,"create_tm":193},701084,"R Markdown: The Definitive Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011578502/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=%2FIaehFK8xLFk1OB2MFgEz5DELyg%3D","r-markdown-the-definitive-guide",1794523292,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":29,"create_tm":200},348237,"rmarkdown Cheatsheet 2.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603589/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=F5KmXEk7lvQjvm2TQhfq1ntxzlI%3D","rmarkdown-cheatsheet-20",15,1790071904,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":101,"category_name":29,"create_tm":206},672868,"Google's R Style Guide - Coding Style Rules","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990161141/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=6AnUE%2BlqiyRiz%2BV45LEDlcxgZnY%3D","googles-r-style-guide-coding-style-rules",1793611796,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},348232,"The Markdown Guide - A Creative Commons Attribution-ShareAlike Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078263/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=HGfggbmyXJK3%2Bivju2bwV8076kw%3D","the-markdown-guide-a-creative-commons-attribution-sharealike-introduction",18,1790071893,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":30,"category_name":29,"create_tm":219},703189,"R Markdown Tutorial - Basic Knowledge - Codes and Tables","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012260744/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=H%2FooNes1LLSyXMWNXXu9RZpIOok%3D","r-markdown-tutorial-basic-knowledge-codes-and-tables",1794562577,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":30,"category_name":29,"create_tm":225},701086,"Getting Started with R Markdown - A Short Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011578532/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796126279&Signature=6I0swm11MnJpRQ%2Fh1sRJWRm8cf0%3D","getting-started-with-r-markdown-a-short-introduction",1794523303]