[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571342-105":53,"doc-detail-571342-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","rmarkdown-introduction-to-r-markdown","rmarkdown - Introduction to R Markdown","","rmarkdown is an authoring framework for developing code and ideas in a single document, enabling dynamic documents that combine narrative text with plots, tables, and results. It supports running code in separate chunks or across the entire document and renders to multiple output formats including HTML and PDF. The workflow covers creating a new .Rmd file in RStudio, embedding code chunks, writing Markdown text, configuring output options through the YAML header, and sharing reproducible research so others can read and re-run the content.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/rmarkdown-introduction-to-r-markdown/571342/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/rmarkdown-introduction-to-r-markdown/571342.png","ImageObject",442,249,{"name":88,"@type":89},"Blue Pony","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What is rmarkdown used for?","Question",{"text":109,"@type":110},"rmarkdown is used to develop code and ideas side-by-side in a single document, then render the combined narrative and results into various formats.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does the workflow run code in rmarkdown documents?",{"text":114,"@type":110},"Code can be run in individual chunks, by line, or all at once across the whole document.",{"name":116,"@type":107,"acceptedAnswer":117},"What formats can be rendered from an .Rmd file?",{"text":118,"@type":110},"Rendered output can include HTML, PDF, MS Word, and MS PowerPoint, depending on the selected output format(s) and options.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571342,1792014288,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":9},962090760266,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","What is rmarkdown?  \n.Rmd files · Develop your code and ideas side-by-side in a single document. Run code as individual chunks or as an entire document. Dynamic Documents · Knit together plots, tables, and results with narrative text. Render to a variety of formats like HTML, PDF, MS Word, or MS Powerpoint.  \nReproducible Research · Upload, link to, or attach your report to share. Anyone can read or run your code to reproduce your work.  \nWorkflow  \n1 Open a new .Rmd file in the RStudio IDE by going to File > New File > R Markdown.  \n2 Embed code in chunks. Run code by line, by chunk, or all at once.  \n3 Write text and add tables, figures, images, and citations. Format with Markdown syntax or the  \nCHEATSHEET  \nfile path to output document  \nRENDERED OUTPUT  \n1. New File   \n 5. Save and Render   \nSOURCE EDITOR  \n6. Share  \nset preview location  \ninsert code chunk  \ngo to  \ncode chunk  \nrun code chunk(s)  \nshow outline  \n4. Set Output Format(s) and Options  \n3. Write Text  \nmodify chunk options  \n2. Embed Code  \nrun all previous chunks  \nrun current chunk  \nWrite with  Markdown  \nThe syntax on the left renders as the output on the right.  \nPlain text.  \nEnd a line with two spaces to start a new paragraph.  \nAlso end with a backslash\\ to make a new line.  \n*italics* and **bold** superscript^2^/subscript~2~~~strikethrough~~escaped: \\* \\_ \\\\  \nendash: --, emdash: ---\\# Header 1  \n\\#\\# Header 2  \n...  \n\\#\\#\\#\\#\\#\\# Header 6  \n-unordered list  \n-item 2  \n-item 2a (indent 1 tab)  \n-item 2b  \n1. ordered list  \n2. item 2  \nPlain text.  \nEnd a line with two spaces to start a new paragraph.  \nAlso end with a backslash to make a new line.  \nitalics and bold superscript2/subscript2 ~~strikethrough ~~escaped: * _ \\  \nendash: –, emdash:—  \nHeader 1  \nHeader 2  \n...  \nHeader 6  \n• unordered list  \n• item 2  \n• item 2a (indent 1 tab)  \n• item 2b  \n1. ordered list  \n2. item 2  \nOPTION  \necho  \nerror  \neval include message warning  \nresults  \nfig.align  \nfig.alt  \nfig.cap  \nfig.path  \nfig.width &  \nfig.height out.width collapse  \ncomment child purl  \nDEFAULT  \nTRUE  \nFALSE  \nTRUE  \nTRUE  \nTRUE  \nTRUE  \n\"markup\"\"default\"  \nNULL  \nNULL  \n\"figure/\"  \n7  \nFALSE  \n\"\\#\\#\"  \nNULL  \nTRUE  \nEFFECTS  \ndisplay code in output document TRUE (display error messages in doc) FALSE (stop render when error occurs) run code in chunk  \ninclude chunk in doc after running display code messages in document display code warnings in document\"asis\" (passthrough results)  \n\"hide\" (don't display results)  \n\"hold\" (put all results below all code)  \n\"left\", \"right\", or \"center\"alt text for a figure  \nfigure caption as a character string prefix for generating figure file paths plot dimensions in inches  \nrescales output width, e.g. \"75%\", \"300px\"collapse all sources & output into a single block prefix for each line of results  \nfiles(s) to knit and then include include or exclude a code chunk when extracting source code with knitr::purl()  \nSee more options and defaults by running str(knitr::opts_chunk$get())  \nRStudio Visual Markdown Editor.  \nSet output format(s) and options in theYAML header. Customize themes or add parameters to execute or add interactivity with Shiny.  \nSave and render the whole document. Knit periodically to preview your work as you write. Share your work!  \nVISUAL EDITOR add/edit  \nattributes  \nEmbed Code with knitr  \nCODE CHUNKS  \nSurround code chunks with ```{r} and ``` or use the Insert Code Chunk button.  Add a chunk label and/or chunk options inside the curly braces after r.  \n```{r chunk-label, include=FALSE} summary(mtcars)  \n```  \nSET GLOBAL OPTIONS  \nSet options for the entire document in the first chunk.  \n```{r include=FALSE}  \nknit r::opts_chunk$set(message = FALSE)```  \nINLINE CODE  \nInsert `r \u003Ccode>` into text sections. Code is evaluated at render and results appear as text.  \n\"Built with ` r getRversion() `\" --> \"Built with 4.1. 0\"  \nInsert Citations  \nCreate citations from a bibliography file, a Zotero library, or from DOI references.  ","cbCail1TW4FgvUqS","https://ap.wps.com/l/cbCail1TW4FgvUqS","pdf",584991,"English","# What is rmarkdown?\n## Workflow\n## Source editor and preview\n## Set output format(s) and options\n## Write text with Markdown\n## Embed code with knitr\n## Build your bibliography\n## Insert citations\n## Insert tables\n## YAML header customization","[{\"question\":\"What is rmarkdown used for?\",\"answer\":\"rmarkdown is used to develop code and ideas side-by-side in a single document, then render the combined narrative and results into various formats.\"},{\"question\":\"How does the workflow run code in rmarkdown documents?\",\"answer\":\"Code can be run in individual chunks, by line, or all at once across the whole document.\"},{\"question\":\"What formats can be rendered from an .Rmd file?\",\"answer\":\"Rendered output can include HTML, PDF, MS Word, and MS PowerPoint, depending on the selected output format(s) and options.\"}]","rmarkdown - Introduction to R Markdown | PDF",1791913621]