{"id":1310,"date":"2014-05-07T12:27:36","date_gmt":"2014-05-07T12:27:36","guid":{"rendered":"http:\/\/sites.uac.pt\/amendes\/?p=1310"},"modified":"2014-05-07T12:27:36","modified_gmt":"2014-05-07T12:27:36","slug":"r-package","status":"publish","type":"post","link":"https:\/\/sites.uac.pt\/amendes\/estatistica\/r-package\/","title":{"rendered":"Create a barebones R package from scratch"},"content":{"rendered":"<div id=\"attachment_515\" style=\"width: 171px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/hilaryparker.com\/2014\/04\/29\/writing-an-r-package-from-scratch\/\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-515\" class=\"size-full wp-image-515\" src=\"http:\/\/sites.uac.pt\/amendes\/files\/2011\/12\/FlowingData.png\" alt=\"Criar pacotes para o R \u00e9 muito f\u00e1cil\" width=\"161\" height=\"29\" \/><\/a><p id=\"caption-attachment-515\" class=\"wp-caption-text\">Criar pacotes para o R \u00e9 muito f\u00e1cil<\/p><\/div>\n<p>While we&#8217;re on an R kick, <a href=\"http:\/\/flowingdata.us2.list-manage1.com\/track\/click?u=f538bce868aac1144d248c0bc&amp;id=81e793ac75&amp;e=e4a0b7691f\">Hilary Parker described how to create an R package from scratch<\/a>, not just to share code with others but to save yourself some time on future projects. It&#8217;s not as hard as it seems.<\/p>\n<p>This tutorial is not about making a beautiful, perfect R package. This tutorial is about creating a bare-minimum R package so that you don\u2019t have to keep thinking to yourself, &#8220;I really should just make an R package with these functions so I don&#8217;t have to keep copy\/pasting them like a goddamn luddite.&#8221; Seriously, it doesn&#8217;t have to be about sharing your code (although that is an added benefit!). It is about saving yourself time. (n.b. this is my attitude about all reproducibility.)<\/p>\n<p>I need to do this. I&#8217;ve been meaning to wrap everything up for a while now, but it <a href=\"http:\/\/flowingdata.us2.list-manage.com\/track\/click?u=f538bce868aac1144d248c0bc&amp;id=e7932463cd&amp;e=e4a0b7691f\">seemed like such a chore<\/a>. Sometimes I&#8217;d even go back to my own tutorials for some copy and paste action. Now I know better. And that&#8217;s half the battle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While we&#8217;re on an R kick, Hilary Parker described how to create an R package from scratch, not just to share code with others but to save yourself some time on future projects. It&#8217;s not as hard as it seems. This tutorial is not about making a beautiful, perfect R package. This tutorial is about [&hellip;]<\/p>\n","protected":false},"author":159,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[103,102,137],"tags":[132,157],"class_list":["post-1310","post","type-post","status-publish","format-standard","hentry","category-data-mining","category-estatistica","category-software","tag-r-software","tag-software-estatistica"],"_links":{"self":[{"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/posts\/1310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/comments?post=1310"}],"version-history":[{"count":2,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/posts\/1310\/revisions"}],"predecessor-version":[{"id":1312,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/posts\/1310\/revisions\/1312"}],"wp:attachment":[{"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/media?parent=1310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/categories?post=1310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.uac.pt\/amendes\/wp-json\/wp\/v2\/tags?post=1310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}