[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-572503-105":3,"detail-sidebar-cat-1-en-105":81,"doc-detail-572503-en":127},{"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":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","r-markdown-and-why-i-love-it-short-tutorial-advanced-features","R Markdown and why I love it - Short Tutorial - Advanced Features","","R Markdown is presented as a plain-text, reproducible workflow that keeps code and reporting in one place while generating multiple output formats. The material explains how RStudio builds documents using a YAML header, including parameters and organized code chunks with inline and fenced code syntax. A short tutorial guides creation of HTML/PDF/Word outputs, adding plots and embedded statistics. Advanced sections cover LaTeX headers, template hacking, dashboards, interactive documents, and websites/books integration.",{"@graph":14,"@context":73},[15,34,56],{"@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/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/presentations/","Presentations",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/r-markdown-and-why-i-love-it-short-tutorial-advanced-features/572503/",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/r-markdown-and-why-i-love-it-short-tutorial-advanced-features/572503.png","ImageObject",442,249,{"name":42,"@type":43},"Genevieve","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is R Markdown and what makes it useful?","Question",{"text":63,"@type":64},"R Markdown is a plain text file type (.Rmd) that keeps code and report together and remains reproducible. It can render documents to formats such as HTML, PDF, Word, slides, dashboards, and websites.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does RStudio help build an R Markdown document?",{"text":68,"@type":64},"RStudio uses a YAML header for build instructions and can include parameters from code. The document text and code chunks are combined, with fenced back ticks starting chunks and single back ticks for inline code.",{"name":70,"@type":61,"acceptedAnswer":71},"What steps are suggested for the short tutorial and presentation?",{"text":72,"@type":64},"The tutorial asks to create and build an R Markdown template, switch output formats, add a histogram code chunk, and embed the mean in a sentence. For presentation mode, it suggests creating a presentation, placing the histogram on a slide, and adding the average speed as a bullet point.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},572503,1792014286,{"code":4,"msg":82,"data":83},"success",[84,88,93,98,103,108,113,118,123],{"id":85,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":86,"slug":87},11,90,"presentations",{"id":89,"doc_module":22,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},12,"Resumes",80,"resumes",{"id":94,"doc_module":22,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},14,"Invoices",70,"invoices",{"id":99,"doc_module":22,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},15,"Posters",60,"posters",{"id":104,"doc_module":22,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},16,"Social Media",50,"social-media",{"id":109,"doc_module":22,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},17,"Forms",40,"forms",{"id":114,"doc_module":22,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},18,"Letters",30,"letters",{"id":119,"doc_module":22,"doc_module_name":25,"category_name":120,"show_sort_weight":121,"slug":122},21,"Paper Templates",5,"papers-templates",{"id":124,"doc_module":22,"doc_module_name":25,"category_name":125,"show_sort_weight":4,"slug":126},158,"General","general-158",{"code":4,"msg":82,"data":128},{"doc_id":79,"user_id":129,"nickname":42,"user_avatar":130,"doc_module":22,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":136,"language":137,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":12,"update_tm":141,"read_time":30},1374391974585,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","R Markdown and why I love it  \nRebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) R-Ladies, Feb 20  \nOutline  \n• What is Rmarkdown?  \n• Rmarkdown in RStudio  \n• Rendering to different formats  \n• Code Chunks  \n• Short Tutorial  \n• Advanced features  \n\n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 2 / 8 |\n| --- | --- | --- |\n\nWhat is Rmarkdown?  \n• Plain text ﬁle with extension  \n.Rmd  \n• Reproducible record of your work  \n• Keeps code and report in a single place  \n• Documents: HTML, PDF, Word  \n• Slides: HTML, Beamer Powerpoint  \n• Other: dashboards, books, websites, shiny documents  \n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 3 / 8 |\n| --- | --- | --- |\n\nRmarkdown in RStudio   \n• YAML Header  \n• Instructions for how to build the document  \n• Text  \n• Can include parameters from the code  \n• Code chunks  \n• Raw code (R/C/Python) that is run and the output stored/returned  \n• three back ticks for starting code chunks, single for inline  \n• next to the 1 key!  \n• Uses markdown syntax but can include direct latex / html if rendering to those formats  \n\n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 4 / 8 |\n| --- | --- | --- |\n\nLive action Interlude  \n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 5 / 8 |\n| --- | --- | --- |\n\nShort tutorial  \n1. Create and build the template Rmarkdown document.  \n2. Change the output to HTML, PDF, Word and view them.  \n3. Add a code chunk to draw a histogram of the speed variable from the cars object-don't include the code.  \n4. Add some text which displays the mean of the speed variable in the middle of a sentence. Remember single back ticks for inline.  \nPresentation:  \n1. Create a presentation (format is your choice)  \n2. Include the histogram of the speed variable as a whole slide graphic  \n3. Add the average speed as a bullet point at the top of the histogram.  \n\n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 6 / 8 |\n| --- | --- | --- |\n\nAdvanced Features  \n• Latex headers  \n• Hacking slide templates (such as this one)  \n• Journal article templates [https://github.com/rstudio/rticles](https://github.com/rstudio/rticles)  \n• Dashboards and interactive documents (shiny)  \n• Whole websites and books  \nMy latex lifesaver:  \nincludes:  \nin_header: header .tex  \nkeep_tex: true  \n\n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 7 / 8 |\n| --- | --- | --- |\n\nUseful resources  \nRStudio site: [https://rmarkdown.rstudio.com/](https://rmarkdown.rstudio.com/)  \nCheatsheet: [https://rstudio.com/wp-content/uploads/2015/02/](https://rstudio.com/wp-content/uploads/2015/02/)[ ](https://rstudio.com/wp-content/uploads/2015/02/)[rmarkdown-cheatsheet.pdf](rmarkdown-cheatsheet.pdf)  \nReference Sheet: [https://www.rstudio.com/wp-content/uploads/2015/](https://www.rstudio.com/wp-content/uploads/2015/)[ ](https://www.rstudio.com/wp-content/uploads/2015/)[03/rmarkdown-reference.pdf](03/rmarkdown-reference.pdf)  \nRmarkdown book: [https://bookdown.org/yihui/rmarkdown/](https://bookdown.org/yihui/rmarkdown/)  \nMarkdown basics:  \n[https://rmarkdown.rstudio.com/authoring_basics.html](https://rmarkdown.rstudio.com/authoring_basics.html)  \nHadley's R for data science Markdown chapter: [https://r4ds.had.co.nz/r-markdown.html](https://r4ds.had.co.nz/r-markdown.html)  \n\n| Rebecca Killick([r.ki](r.ki)[llick@lancs.ac.uk](llick@lancs.ac.uk)) | R Markdown and why I love it | R-Ladies, Feb 20 8 / 8 |\n| --- | --- | --- |","cbCaieka5KiTlZjF","https://ap.wps.com/l/cbCaieka5KiTlZjF","pdf",178217,8,"English","# Outline\n## What is Rmarkdown?\n## Rmarkdown in RStudio\n## Short tutorial\n## Presentation\n## Advanced Features\n## Useful resources","[{\"question\":\"What is R Markdown and what makes it useful?\",\"answer\":\"R Markdown is a plain text file type (.Rmd) that keeps code and report together and remains reproducible. It can render documents to formats such as HTML, PDF, Word, slides, dashboards, and websites.\"},{\"question\":\"How does RStudio help build an R Markdown document?\",\"answer\":\"RStudio uses a YAML header for build instructions and can include parameters from code. The document text and code chunks are combined, with fenced back ticks starting chunks and single back ticks for inline code.\"},{\"question\":\"What steps are suggested for the short tutorial and presentation?\",\"answer\":\"The tutorial asks to create and build an R Markdown template, switch output formats, add a histogram code chunk, and embed the mean in a sentence. For presentation mode, it suggests creating a presentation, placing the histogram on a slide, and adding the average speed as a bullet point.\"}]","R Markdown and why I love it - Short Tutorial - Advanced Features | PDF",1791927774]