

{"id":3914,"date":"2016-02-04T21:27:51","date_gmt":"2016-02-05T02:27:51","guid":{"rendered":"http:\/\/rud.is\/b\/?p=3914"},"modified":"2018-03-07T16:43:07","modified_gmt":"2018-03-07T21:43:07","slug":"alternate-r-markdown-templates","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/","title":{"rendered":"Alternate R Markdown Templates"},"content":{"rendered":"<p>The `knitr`\/R markdown system is a great way to organize reports and analyses. However, the built-in ones (that come with RStudio\/the `rmarkdown` package) rely on Bootstrap and also use jQuery. There&#8217;s nothing wrong with that, but the generated standalone HTML documents (which are a great way to distribute reports) don&#8217;t really need all that cruft and it&#8217;s fun &#038; informative to check out new frameworks from time-to-time. Also, jQuery is a heavy crutch I&#8217;m working hard to not need anymore.<\/p>\n<p>To that end, I created a package &#8212; [`markdowntemplates`](https:\/\/github.com\/hrbrmstr\/markdowntemplates) &#8212; that contains three alternate templates that you can use out of the box or (hopefully) clone, customize and use in your future work. One template is based on the [Bulma CSS framework](http:\/\/bulma.io), the other is based on the [Skeleton CSS framework](http:\/\/getskeleton.com) and the last one is a super-minimal template with no formatting (i.e. it&#8217;s a good one to build on).<\/p>\n<p>The github repo has screenshots of the basic formatting. <\/p>\n<p>I tried to keep with the base formatting of each theme, but I went a bit crazy and showed how to have a fixed banner in the Skeleton version.<\/p>\n<p>### How it works<\/p>\n<p>There are three directories inside `inst\/rmarkdown\/templates` each has a similar structure:<\/p>\n<p>&#8211; a `resources` directory with CSS (and potentially javascript)<br \/>\n&#8211; a `skeleton` directory which holds example `Rmd` &#8220;skeleton&#8221; files<br \/>\n&#8211; a `base.html` file which is the parameterized HTML template for the Rmd<br \/>\n&#8211; a `template.yaml` file which is how RStudio\/`knitr` knows there&#8217;s one or more R markdown templates in your package<\/p>\n<p>The `minimal` `base.html` is small enough to include here:<\/p>\n<pre lang=\"html\"><!DOCTYPE html>\r\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"$if(lang)$ lang=\"$lang$\" xml:lang=\"$lang$\"$endif$>\r\n\r\n<head>\r\n\r\n<meta charset=\"utf-8\">\r\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\r\n<meta name=\"generator\" content=\"pandoc\" \/>\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n\r\n<title>$if(title)$$title$$endif$<\/title>\r\n\r\n$for(header-includes)$\r\n$header-includes$\r\n$endfor$\r\n\r\n$if(highlightjs)$\r\n<style type=\"text\/css\">code{white-space: pre;}<\/style>\r\n<link rel=\"stylesheet\"\r\n      href=\"$highlightjs$\/$if(highlightjs-theme)$$highlightjs-theme$$else$default$endif$.css\"\r\n      $if(html5)$$else$type=\"text\/css\" $endif$\/>\r\n<script src=\"$highlightjs$\/highlight.js\"><\/script>\r\n<script type=\"text\/javascript\">\r\nif (window.hljs && document.readyState && document.readyState === \"complete\") {\r\n   window.setTimeout(function() {\r\n      hljs.initHighlighting();\r\n   }, 0);\r\n}\r\n<\/script>\r\n$endif$\r\n\r\n$if(highlighting-css)$\r\n<style type=\"text\/css\">code{white-space: pre;}<\/style>\r\n<style type=\"text\/css\">\r\n$highlighting-css$\r\n<\/style>\r\n$endif$\r\n\r\n$for(css)$\r\n<link rel=\"stylesheet\" href=\"$css$\" $if(html5)$$else$type=\"text\/css\" $endif$\/>\r\n$endfor$\r\n\r\n<\/head>\r\n\r\n<body>\r\n<div class=\"container\">\r\n\r\n<h1>$if(title)$$title$$endif$<\/h1>\r\n\r\n$for(include-before)$\r\n$include-before$\r\n$endfor$\r\n\r\n$if(toc)$\r\n<div id=\"$idprefix$TOC\">\r\n$toc$\r\n<\/div>\r\n$endif$\r\n\r\n$body$\r\n\r\n$for(include-after)$\r\n$include-after$\r\n$endfor$\r\n\r\n<\/div>\r\n\r\n$if(mathjax-url)$\r\n<!-- dynamically load mathjax for compatibility with self-contained -->\r\n<script>\r\n  (function () {\r\n    var script = document.createElement(\"script\");\r\n    script.type = \"text\/javascript\";\r\n    script.src  = \"$mathjax-url$\";\r\n    document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n  })();\r\n<\/script>\r\n$endif$\r\n\r\n<\/body>\r\n<\/html><\/pre>\n<p>I kept a bit of the RStudio template code for source code formatting, but grokking the actual template language should be pretty straightforward. You should be able to pick out `$title$` in there and you can add as many parameters to the `Rmd` YAML section as you like (with corresponding counterparts in that template). I added a corresponding, exported R function for each supported template to show how easy it is to customize the parameters while also accepting further customizations in the YAML of each `Rmd`.<\/p>\n<p>Imagine building a base template with your personal or organization&#8217;s branding *and* having it set apart from the cookie-cutter RStudio `rmarkdown` Bootstrap\/jQuery template. Or, create course-specific templates like the [`s20x` package](https:\/\/github.com\/cran\/s20x). Once you peek behind the curtain to see how things are done, it&#8217;s not so complex and the sky is the limit.<\/p>\n<p>I&#8217;ll try to get these in CRAN as soon as possible. If you have a preference for another CSS framework (I&#8217;m thinking of adding a &#8220;Metro&#8221; CSS kit and a Google web starter CSS kit), shoot me an issue or PR and I&#8217;ll incorporate it. The more examples we have the easier it will be for folks to create new templates.<\/p>\n<p>Any &#038; all feedback is most welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The `knitr`\/R markdown system is a great way to organize reports and analyses. However, the built-in ones (that come with RStudio\/the `rmarkdown` package) rely on Bootstrap and also use jQuery. There&#8217;s nothing wrong with that, but the generated standalone HTML documents (which are a great way to distribute reports) don&#8217;t really need all that cruft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[91],"tags":[810],"class_list":["post-3914","post","type-post","status-publish","format-standard","hentry","category-r","tag-post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Alternate R Markdown Templates - rud.is<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alternate R Markdown Templates - rud.is\" \/>\n<meta property=\"og:description\" content=\"The `knitr`\/R markdown system is a great way to organize reports and analyses. However, the built-in ones (that come with RStudio\/the `rmarkdown` package) rely on Bootstrap and also use jQuery. There&#8217;s nothing wrong with that, but the generated standalone HTML documents (which are a great way to distribute reports) don&#8217;t really need all that cruft [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-05T02:27:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-07T21:43:07+00:00\" \/>\n<meta name=\"author\" content=\"hrbrmstr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hrbrmstr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"Alternate R Markdown Templates\",\"datePublished\":\"2016-02-05T02:27:51+00:00\",\"dateModified\":\"2018-03-07T21:43:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/\"},\"wordCount\":510,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"keywords\":[\"post\"],\"articleSection\":[\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/\",\"name\":\"Alternate R Markdown Templates - rud.is\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\"},\"datePublished\":\"2016-02-05T02:27:51+00:00\",\"dateModified\":\"2018-03-07T21:43:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2016\\\/02\\\/04\\\/alternate-r-markdown-templates\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rud.is\\\/b\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alternate R Markdown Templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/\",\"name\":\"rud.is\",\"description\":\"&quot;In God we trust. All others must bring data&quot;\",\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rud.is\\\/b\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\",\"name\":\"hrbrmstr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"width\":460,\"height\":460,\"caption\":\"hrbrmstr\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\"},\"description\":\"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7\",\"sameAs\":[\"http:\\\/\\\/rud.is\"],\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/author\\\/hrbrmstr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alternate R Markdown Templates - rud.is","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/","og_locale":"en_US","og_type":"article","og_title":"Alternate R Markdown Templates - rud.is","og_description":"The `knitr`\/R markdown system is a great way to organize reports and analyses. However, the built-in ones (that come with RStudio\/the `rmarkdown` package) rely on Bootstrap and also use jQuery. There&#8217;s nothing wrong with that, but the generated standalone HTML documents (which are a great way to distribute reports) don&#8217;t really need all that cruft [&hellip;]","og_url":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/","og_site_name":"rud.is","article_published_time":"2016-02-05T02:27:51+00:00","article_modified_time":"2018-03-07T21:43:07+00:00","author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"Alternate R Markdown Templates","datePublished":"2016-02-05T02:27:51+00:00","dateModified":"2018-03-07T21:43:07+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/"},"wordCount":510,"commentCount":11,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"keywords":["post"],"articleSection":["R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/","url":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/","name":"Alternate R Markdown Templates - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"datePublished":"2016-02-05T02:27:51+00:00","dateModified":"2018-03-07T21:43:07+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2016\/02\/04\/alternate-r-markdown-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"Alternate R Markdown Templates"}]},{"@type":"WebSite","@id":"https:\/\/rud.is\/b\/#website","url":"https:\/\/rud.is\/b\/","name":"rud.is","description":"&quot;In God we trust. All others must bring data&quot;","publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rud.is\/b\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886","name":"hrbrmstr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","width":460,"height":460,"caption":"hrbrmstr"},"logo":{"@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1"},"description":"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7","sameAs":["http:\/\/rud.is"],"url":"https:\/\/rud.is\/b\/author\/hrbrmstr\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p23idr-118","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":10860,"url":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","url_meta":{"origin":3914,"position":0},"title":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)","author":"hrbrmstr","date":"2018-06-03","format":false,"excerpt":"NOTE: There is some iframed content in this post and you can bust out of it if you want to see the document in a full browser window. Also, apologies for some lingering GitHub links. I'm waiting for all the repos to import into to other services and haven't had\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":11812,"url":"https:\/\/rud.is\/b\/2019\/01\/24\/quick-hit-automating-production-graphics-uploads-in-r-markdown-documents-with-googledrive\/","url_meta":{"origin":3914,"position":1},"title":"Quick Hit: Automating Production Graphics Uploads in R Markdown Documents with googledrive","author":"hrbrmstr","date":"2019-01-24","format":false,"excerpt":"As someone who measures all kinds of things on the internet as part of his $DAYJOB, I can say with some authority that huge swaths of organizations are using cloud-services such as Google Apps, Dropbox and Office 365 as part of their business process workflows. For me, one regular component\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4867,"url":"https:\/\/rud.is\/b\/2017\/01\/10\/knit-directly-to-jupyter-notebooks-from-rstudio\/","url_meta":{"origin":3914,"position":2},"title":"Knit directly to jupyter notebooks from RStudio","author":"hrbrmstr","date":"2017-01-10","format":false,"excerpt":"Did you know that you can completely replace the \"knitting\" engine in R Markdown documents? Well, you can! Why would you want to do this? Well, in the case of this post, to commit the unpardonable sin of creating a clunky jupyter notebook from a pristine Rmd file. I'm definitely\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/rud.is\/b\/category\/python-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5854,"url":"https:\/\/rud.is\/b\/2017\/04\/30\/r%e2%81%b6-using-pandoc-from-r-a-neat-package-for-reading-subtitles\/","url_meta":{"origin":3914,"position":3},"title":"R\u2076 \u2014 Using pandoc from R + A Neat Package For Reading Subtitles","author":"hrbrmstr","date":"2017-04-30","format":false,"excerpt":"Once I realized that my planned, larger post would not come to fruition today I took the R\u2076 post (i.e. \"minimal expository, keen focus\") route, prompted by a Twitter discussion with some R mates who needed to convert \"lightly formatted\" Microsoft Word (docx) documents to markdown. Something like this: to:\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":12094,"url":"https:\/\/rud.is\/b\/2019\/03\/17\/handling-sharing-pcaps-like-a-boss-with-packettotal\/","url_meta":{"origin":3914,"position":4},"title":"Handling &#038; Sharing PCAPs Like a Boss with PacketTotal","author":"hrbrmstr","date":"2019-03-17","format":false,"excerpt":"The fine folks over at @PacketTotal bequeathed an API token on me so I cranked out an R package for it to enable more dynamic investigations work (RStudio makes for an amazing incident responder investigations console given that you can script in multiple languages, code in C[++], and write documentation\u2026","rel":"","context":"In &quot;Cybersecurity&quot;","block_context":{"text":"Cybersecurity","link":"https:\/\/rud.is\/b\/category\/cybersecurity\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11746,"url":"https:\/\/rud.is\/b\/2019\/01\/10\/waffle-geoms-other-miscellaneous-in-development-package-updates\/","url_meta":{"origin":3914,"position":5},"title":"Waffle Geoms &#038; Other Miscellaneous In-Development Package Updates","author":"hrbrmstr","date":"2019-01-10","format":false,"excerpt":"More than just sergeant has been hacked on recently, so here's a run-down of various ? updates: waffle The square pie chart generating waffle? package now contains a nascent geom_waffle() so you can do things like this: library(hrbrthemes) library(waffle) library(tidyverse) tibble( parts = factor(rep(month.abb[1:3], 3), levels=month.abb[1:3]), values = c(10, 20,\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2019\/01\/fwg.png?fit=900%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2019\/01\/fwg.png?fit=900%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2019\/01\/fwg.png?fit=900%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2019\/01\/fwg.png?fit=900%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/3914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/comments?post=3914"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/3914\/revisions"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=3914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=3914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=3914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}