{"id":2952,"date":"2020-03-05T08:22:00","date_gmt":"2020-03-05T08:22:00","guid":{"rendered":"https:\/\/mribeirodantas.xyz\/blog\/?p=2952"},"modified":"2025-01-31T04:38:04","modified_gmt":"2025-01-31T02:38:04","slug":"r-dvc-and-rmarkdown","status":"publish","type":"post","link":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/","title":{"rendered":"Manage your Data Science Project in R"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><b>Reading time: <\/span> <span class=\"rt-time\"> 9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/b><\/span><\/span>\n<p class=\"has-text-align-center\"><strong>A simple project tutorial with R\/RMarkdown, Packrat, Git, and DVC.<\/strong><\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2000\" height=\"784\" data-attachment-id=\"3013\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/workflow\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=2000%2C784&amp;ssl=1\" data-orig-size=\"2000,784\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"workflow\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=300%2C118&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=640%2C251&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1\" alt=\"\" class=\"wp-image-3013\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?w=2000&amp;ssl=1 2000w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?resize=300%2C118&amp;ssl=1 300w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?resize=1024%2C401&amp;ssl=1 1024w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?resize=768%2C301&amp;ssl=1 768w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?resize=1536%2C602&amp;ssl=1 1536w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>Source: <a href=\"https:\/\/towardsdatascience.com\/the-data-science-workflow-43859db0415\">Here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">The pain of managing a Data Science project<\/h3>\n\n\n\n<p>Something has been bothering me for a while: Reproducibility and data tracking in data science projects. I have read about some technologies but had never really tried any of them out until recently when I couldn&#8217;t stand this feeling of losing track of my analyses anymore. At some point, I decided to give DVC a try after some friends, mostly <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/twitter.com\/flavioclesio\">Fl\u00e1vio Cl\u00e9sio<\/a>, <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/twitter.com\/flavioclesio\/status\/1232346247450841089\">suggested it to me<\/a>. In this post, I will talk about Git, DVC, R, RMarkdown, and Packrat, everything I think you may need to manage your Data Science project, but the focus is definitely on DVC.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>One of the things that I had been looking for is an approach that would allow me to track\/know the &#8220;version&#8221; of the dataset I used for a specific analysis when I wrote and run an R script or a set of R scripts. Have I run <em style=\"-webkit-user-select: auto;\">some-script.R<\/em> in the raw data or the preprocessed data? Have I run the <em style=\"-webkit-user-select: auto;\">some-other-script.R<\/em> in the dataset preprocessed this way or preprocessed that other way? What version of my dataset was used in the analysis done by the code committed <em style=\"-webkit-user-select: auto;\">put-a-git-commit-hash<\/em> here? In a few words: How to track code and data at the same time? (And of course, reports in RMarkdown being included is a plus).<\/p>\n\n\n\n<p>This tutorial will guide you through the management\/execution of a basic example of a Data Science project written in R. It&#8217;s not very close to what I do in my daily life and I assume it&#8217;s not what you do either, but it&#8217;s basic, simple and still useful for understanding how to use these tools together, mostly DVC.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">One second to talk about Git, Packrat and RMarkdown<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3070\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/git\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?fit=968%2C496&amp;ssl=1\" data-orig-size=\"968,496\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"git\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?fit=300%2C154&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?fit=640%2C328&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?resize=490%2C251&#038;ssl=1\" alt=\"\" class=\"wp-image-3070\" width=\"490\" height=\"251\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?w=968&amp;ssl=1 968w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?resize=300%2C154&amp;ssl=1 300w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/git.png?resize=768%2C394&amp;ssl=1 768w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><figcaption>Source: <a href=\"https:\/\/www.nobledesktop.com\/learn\/git\/what-is-git\">here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<p>I don&#8217;t want to get into much detail about git and packrat here (or how to install <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/www.atlassian.com\/git\/tutorials\/install-git\">Git<\/a> and <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/rstudio.github.io\/packrat\/\">Packrat<\/a>), this is not the focus of the post. In a few words, git is a version control software which means that it helps you to track the evolution of your source code. Whenever you do some reasonable change to your code you take a snapshot of it (save point, whatever) through what is called a commit. This way, you can &#8220;time travel&#8221; to your project. You can find out when a bug was accidentally introduced in the code or work at the same time with several friends in the same code. Git will manage this for you. DVC comes to assist Git by adding this management\/tracking support to data files and to manage pipelines. There will be some Git commands here and there, and for the sake of not making this tutorial longer than it already is, I will not comment on them. You can get help <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/git-scm.com\/docs\/git-help\">here<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3071\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/packrat\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?fit=1000%2C1000&amp;ssl=1\" data-orig-size=\"1000,1000\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;\\u00a9 James9834 - http:\\\/\\\/www.redbubble.com\\\/es\\\/people\\\/james983&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"packrat\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?fit=640%2C640&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?resize=243%2C243&#038;ssl=1\" alt=\"\" class=\"wp-image-3071\" width=\"243\" height=\"243\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?w=1000&amp;ssl=1 1000w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/packrat.jpg?resize=768%2C768&amp;ssl=1 768w\" sizes=\"auto, (max-width: 243px) 100vw, 243px\" \/><figcaption>Source: <a href=\"https:\/\/www.kindpng.com\/imgv\/hbiToi_development-white-icon-png-transparent-png\/\">here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<p>Packrat is a package dependency management for R which means that you can, for example, have a Data Science project using an R package version 1.X and using the same package in a different version 1.Z in another DS project, being both projects on the same machine. Besides, you can take snapshots with packrat too, making it easy to share your whole environment with colleagues or have it on another machine. If you&#8217;re from a Python background, this is like pip and virtualenv. Isolation and package dependency management.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3139\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/rmarkdown\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?fit=958%2C1080&amp;ssl=1\" data-orig-size=\"958,1080\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"rmarkdown\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?fit=266%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?fit=640%2C722&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?fit=908%2C1024&amp;ssl=1\" alt=\"\" class=\"wp-image-3139\" width=\"175\" height=\"197\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?w=958&amp;ssl=1 958w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?resize=266%2C300&amp;ssl=1 266w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?resize=908%2C1024&amp;ssl=1 908w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/rmarkdown.png?resize=768%2C866&amp;ssl=1 768w\" sizes=\"auto, (max-width: 175px) 100vw, 175px\" \/><figcaption>Source: <a href=\"https:\/\/rmarkdown.rstudio.com\/\">here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<p>As its official website says, <em>&#8220;Your data tells a story. Tell it with R Markdown. Turn your analyses into high quality documents, reports, presentations and dashboards&#8221;<\/em>. Think of it as Markdown + R technologies, turning it into markup language on steroids. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DVC<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3068\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/dvc\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?fit=400%2C400&amp;ssl=1\" data-orig-size=\"400,400\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"DVC\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?fit=400%2C400&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?resize=176%2C176&#038;ssl=1\" alt=\"\" class=\"wp-image-3068\" width=\"176\" height=\"176\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?w=400&amp;ssl=1 400w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/DVC.png?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 176px) 100vw, 176px\" \/><figcaption>Source: <a href=\"https:\/\/dvc.org\/\">here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<p>When it comes to data files, the idea behind DVC is to create small text files (metadata) about the real data files and give them to git to take care, instead of the data files. Git is not made for big blobs or data files and by versioning your GB (TB?) datasets, you can make your repository slow to work with (and I won&#8217;t even mention cloning..). DVC will take care of the real files, while git will take care of metadata generated by DVC. DVC operates like Git and uses basically the same syntax: you add (<a style=\"-webkit-user-select: auto;\" href=\"https:\/\/dvc.org\/doc\/command-reference\/add\">dvc add<\/a>) and push (<a style=\"-webkit-user-select: auto;\" href=\"https:\/\/dvc.org\/doc\/command-reference\/push\">dvc push<\/a>) files to a remote location (remote storage, in dvc nomenclature). If you&#8217;re new to version control, this can take a little time to get used to. If you added a dataset to DVC, but you forgot to push and by accident you removed your dataset or lost the git repository, the remote storage (where DVC saves your real files) won&#8217;t have the dataset, just like the git remote repository wouldn&#8217;t have your source code, because you did not <em style=\"-webkit-user-select: auto;\">git push<\/em>. Everything is fine if you push, of course. However, in the same way that you have a &#8220;copy&#8221; of your source code in the remote repository, but also in your local repository, the real data files are both in the remote storage and in your local repository (in DVC cache hidden folder). Some common tasks in DVC can be automated to be integrated into your git commands. If you like this idea, <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/dvc.org\/doc\/command-reference\/install\">dvc install<\/a> is what you&#8217;re looking for.<\/p>\n\n\n\n<p>If you have pip installed, you can easily install dvc with <em>pip install dvc<\/em>. If you don&#8217;t, don&#8217;t worry. <a href=\"https:\/\/dvc.org\/doc\/install\">There are other ways to install it<\/a>, such as snap (GNU\/Linux) or brew (macOS).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Let&#8217;s start our experiment.<\/h3>\n\n\n\n<p>The first thing we should do is to (1) create our Git repository, (2) start packrat and (3) DVC.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577881\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-start_tools-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"start_tools.sh content, created by mribeirodantas on 10:49AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"start_tools.sh\">\n        <tr>\n          <td id=\"file-start_tools-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-start_tools-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Starting your repository with git, packrat and DVC<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-start_tools-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">mkdir -p ~\/dev\/r_dvc_rmarkdown &amp;&amp; cd ~\/dev\/r_dvc_rmarkdown<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-start_tools-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">git init<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-start_tools-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">dvc init<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-start_tools-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">R &#8211;silent -e &quot;packrat::init(\\&quot;~\/dev\/r_dvc_rmarkdown\\&quot;)&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-start_tools-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">git add .Rprofile .gitignore packrat\/<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-start_tools-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-start_tools-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Initializes Git, Packrat and DVC&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/917c87f4f8def5f6ec27f955b302e84c\/raw\/9000fadf46d53e6875c6437628e9b5680fc36157\/start_tools.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/917c87f4f8def5f6ec27f955b302e84c#file-start_tools-sh\" class=\"Link--inTextBlock\">\n          start_tools.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>In this case, I&#8217;m creating a local remote which actually is a folder synced with Dropbox. Your real data files will be there.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577919\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-configure_remote-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"configure_remote.sh content, created by mribeirodantas on 10:50AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"configure_remote.sh\">\n        <tr>\n          <td id=\"file-configure_remote-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-configure_remote-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Configuring remote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-configure_remote-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-configure_remote-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc remote add -d myremote ~\/Dropbox\/PhD\\ data\/dvc-storage<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-configure_remote-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-configure_remote-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\"># You can see your remotes with the command: dvc remote list<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-configure_remote-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-configure_remote-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\"># After creating a remote, dvc creates a config file. Let&#39;s commit it<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-configure_remote-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-configure_remote-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">git commit .dvc\/config -m &quot;Adds local\/dropbox remote&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/993a9c2a2f44f3dc7b5be737b49bdf09\/raw\/cd984952521be255caaddf617ddfd77476b7a964\/configure_remote.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/993a9c2a2f44f3dc7b5be737b49bdf09#file-configure_remote-sh\" class=\"Link--inTextBlock\">\n          configure_remote.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Now it&#8217;s time to show DVC where our dataset is. DVC will generate metadata for git to track and DVC itself will start tracking the real data files. <strong>You can download the dataset (simulation.tsv) file clicking <a href=\"https:\/\/www.dropbox.com\/s\/19uwlpdsd869oo7\/simulation_all.tsv?dl=1\">here<\/a>.<\/strong><\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577929\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-setup_data-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"setup_data.sh content, created by mribeirodantas on 10:51AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"setup_data.sh\">\n        <tr>\n          <td id=\"file-setup_data-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-setup_data-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Setting up data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-setup_data-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">mkdir data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-setup_data-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\"># Replace the next line with the path where you saved simulation.tsv<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-setup_data-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">dvc get-url ~\/Dropbox\/PhD\\ data\/simulation.tsv data\/<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-setup_data-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\"># If you stop here, git will see the data file what may make you<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-setup_data-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"># feel like you should git add\/commit it. *Don&#39;t do it*, you should not<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-setup_data-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"># git commit data files. They&#39;re huge and git is not made for this.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-setup_data-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\"># Instead, request dvc to track it.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-setup_data-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">dvc add data\/simulation.tsv<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-setup_data-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\"># This command will generate the data file metadata which is what<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-setup_data-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\"># you should track with git. Also ask git to track the .gitignore<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-setup_data-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\"># file created by DVC so that git will stop suggesting you to track<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-setup_data-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\"># the big data files.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-setup_data-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">git add data\/simulation.tsv.dvc data\/.gitignore<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-setup_data-sh-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-setup_data-sh-LC15\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Adds source data to DVC&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/da7c084b70c3922e13342ee2acbc8861\/raw\/cadca18c8bf1a829c18dfa36e372f5ff44f82ba4\/setup_data.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/da7c084b70c3922e13342ee2acbc8861#file-setup_data-sh\" class=\"Link--inTextBlock\">\n          setup_data.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>At this point, your git repository is up to date. If you don&#8217;t have a remote repository, everything is all set with Git. If you are also hosting your code in GitHub, Bitbucket, GitLab (or any other git repository hosting solution), it&#8217;s time to push. In DVC it is no different, if you go to your remote storage (which in this case is local), there is nothing there. Not even the folder has been created. Well, if you have a git remote, your repo won&#8217;t be there either, right? We haven&#8217;t <strong>pushed<\/strong> yet. Let&#8217;s push with the <a href=\"https:\/\/dvc.org\/doc\/command-reference\/push\">dvc push<\/a> command.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577943\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-push-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"push.sh content, created by mribeirodantas on 10:51AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"push.sh\">\n        <tr>\n          <td id=\"file-push-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-push-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Push to the DVC remote repository<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-push-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-push-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc push<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/3d085f8f4406da5ee73043b8686dc8d8\/raw\/35c878499bc42015c68df5bc616482833edfcf7d\/push.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/3d085f8f4406da5ee73043b8686dc8d8#file-push-sh\" class=\"Link--inTextBlock\">\n          push.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>If you check now, not only there is a folder there but also the dataset. Not metadata, the real big file. Not in a git remote, but in a DVC remote storage. However, it won&#8217;t look like you expect. It&#8217;s going to look like a mysteriously named folder, with a mysteriously named file inside &#8211;  it&#8217;s the md5 hash for the dataset, but believe me, the content is there. To check, you can use the command <em style=\"-webkit-user-select: auto;\">ls -h<\/em> (in bash) to check the size of the remote storage and compare it to what you expect.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"361\" data-attachment-id=\"3174\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/remote\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?fit=700%2C395&amp;ssl=1\" data-orig-size=\"700,395\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"remote\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?fit=640%2C361&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?resize=640%2C361&#038;ssl=1\" alt=\"\" class=\"wp-image-3174\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?w=700&amp;ssl=1 700w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/remote.png?resize=300%2C169&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>Source: <a href=\"https:\/\/christophergs.github.io\/machine%20learning\/2019\/05\/13\/first-impressions-of-dvc\/\">here<\/a>.<\/figcaption><\/figure><\/div>\n\n\n<p>Let&#8217;s now start writing our data science code\/analysis. Let&#8217;s say we want to set all negative values to -1 and all positive values to +1, that is, binarize our variables. This would be our preprocessing step.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577950\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-preprocess-r\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-r  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"preprocess.R content, created by mribeirodantas on 10:52AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"preprocess.R\">\n        <tr>\n          <td id=\"file-preprocess-r-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-preprocess-r-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create the preprocess script<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-preprocess-r-LC2\" class=\"blob-code blob-code-inner js-file-line\"># preprocess.R with the content below.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-preprocess-r-LC3\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- read.csv(file = &#39;data\/simulation.tsv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-preprocess-r-LC4\" class=\"blob-code blob-code-inner js-file-line\">                       sep=&#39;\\t&#39;, stringsAsFactors=FALSE)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-preprocess-r-LC5\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- input_file[, 1:50]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-preprocess-r-LC6\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-preprocess-r-LC7\" class=\"blob-code blob-code-inner js-file-line\">input_file[, unlist(lapply(input_file, is.numeric))] &lt;-<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-preprocess-r-LC8\" class=\"blob-code blob-code-inner js-file-line\">  apply(input_file[, unlist(lapply(input_file, is.numeric))],<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-preprocess-r-LC9\" class=\"blob-code blob-code-inner js-file-line\">        2,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-preprocess-r-LC10\" class=\"blob-code blob-code-inner js-file-line\">        function(x) ifelse(x &lt; 0, -1, x))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-preprocess-r-LC11\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-preprocess-r-LC12\" class=\"blob-code blob-code-inner js-file-line\">input_file[, unlist(lapply(input_file, is.numeric))] &lt;-<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-preprocess-r-LC13\" class=\"blob-code blob-code-inner js-file-line\">  apply(input_file[, unlist(lapply(input_file, is.numeric))],<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-preprocess-r-LC14\" class=\"blob-code blob-code-inner js-file-line\">        2,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-preprocess-r-LC15\" class=\"blob-code blob-code-inner js-file-line\">        function(x) ifelse(x &gt; 0, 1, x))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-preprocess-r-LC16\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-preprocess-r-LC17\" class=\"blob-code blob-code-inner js-file-line\">write.csv2(input_file,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-preprocess-r-LC18\" class=\"blob-code blob-code-inner js-file-line\">           &#39;data\/simulation_preprocessed.csv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess-r-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-preprocess-r-LC19\" class=\"blob-code blob-code-inner js-file-line\">           row.names=FALSE)<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/51adab05c17851365c104bdeb70d0b75\/raw\/1f099ba6cca7f25a5c6b24ba21bc2d68d4804eeb\/preprocess.R\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/51adab05c17851365c104bdeb70d0b75#file-preprocess-r\" class=\"Link--inTextBlock\">\n          preprocess.R\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>After having written the preprocessing script, we must set it as a stage in our pipeline. You do this with the <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/dvc.org\/doc\/command-reference\/run\">dvc run<\/a> command. It&#8217;s here that you tell DVC what this stage needs (e.g. input files) and what it will output (e.g. processed data, results). When you have a pipeline with several stages, that&#8217;s how DVC knows if it&#8217;s necessary to re-run all your stages or only the N-th stage because it verified that nothing changed in the previous stages ;-).<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577958\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-run1-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"run1.sh content, created by mribeirodantas on 10:52AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"run1.sh\">\n        <tr>\n          <td id=\"file-run1-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-run1-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create a pipeline to preprocess<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run1-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-run1-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc run -f preprocess.dvc \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run1-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-run1-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">        -d data\/simulation.tsv -d preprocess.R \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run1-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-run1-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">        -o data\/simulation_preprocessed.csv \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run1-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-run1-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">        Rscript preprocess.R<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/c3d25e0a37e5cb35ea8ed2d2f1206ce0\/raw\/272bd803061a84ca4d66d1b4d3384aacdebfd90f\/run1.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/c3d25e0a37e5cb35ea8ed2d2f1206ce0#file-run1-sh\" class=\"Link--inTextBlock\">\n          run1.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Let&#8217;s commit this.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577965\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-commit1-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"commit1.sh content, created by mribeirodantas on 10:53AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"commit1.sh\">\n        <tr>\n          <td id=\"file-commit1-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-commit1-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">git add data\/.gitignore preprocess.dvc preprocess.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commit1-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-commit1-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Adds preprocessing script\/pipeline entry&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0d4b897a03f954232975b1a37ee4f608\/raw\/3b3531282dbd075723c8b60de4ea420c2d382899\/commit1.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0d4b897a03f954232975b1a37ee4f608#file-commit1-sh\" class=\"Link--inTextBlock\">\n          commit1.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>After having preprocessed our original dataset, we would like to generate a graph with the <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/cran.r-project.org\/web\/packages\/miic\/index.html\">MIIC package<\/a>. MIIC is an information-theoretic method that learns a large class of causal or non-causal graphical models from purely observational data, while including the effects of unobserved latent variables, commonly found in many datasets. It generates a <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/en.wikipedia.org\/wiki\/Directed_acyclic_graph\">DAG,<\/a> so please, do not get confused with DVC or the DAG for the pipeline that DVC generates.<\/p>\n\n\n\n<p>How do I install an R package to this repository environment and not to the global environment (my whole system)? As long as you run R from within the repository (where you initialized packrat, remember?) you will be fine.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577968\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-packrat-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"packrat.sh content, created by mribeirodantas on 10:53AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"packrat.sh\">\n        <tr>\n          <td id=\"file-packrat-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-packrat-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">R &#8211;silent -e &quot;install.packages(\\&quot;miic\\&quot;)&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-packrat-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\"># You can run the command below to check which packages are installed<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-packrat-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\"># to the repository R environment (and even see the ones that should)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-packrat-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\"># and generate a snapshot of it so others can reproduce the same env.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-packrat-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">R &#8211;silent -e &quot;packrat::snapshot()&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-packrat-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"># You will see some new packages which are dependencies of miic<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-packrat-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"># Now you have to add these changes so that if someone clone<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-packrat-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\"># your repository, they will have the same packages you used<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-packrat-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\"># making your DS project reproducible. You don&#39;t commit yet, for it<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-packrat-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\"># makes sense to commit this installation together with the R script<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-packrat-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\"># file that will use this package. <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-packrat-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-packrat-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">git add .<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0be47338b3fa0dffb830af87f2469755\/raw\/29695373886c6eced9c2b9ea2e3f821ffcdf3f8a\/packrat.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0be47338b3fa0dffb830af87f2469755#file-packrat-sh\" class=\"Link--inTextBlock\">\n          packrat.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>With MIIC installed, let&#8217;s write the script file for the second stage of our pipeline.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577974\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-generate_diagram-r\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-r  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"generate_diagram.R content, created by mribeirodantas on 10:53AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"generate_diagram.R\">\n        <tr>\n          <td id=\"file-generate_diagram-r-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-generate_diagram-r-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create a miic.R file with the content below.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-generate_diagram-r-LC2\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- read.csv(file = &#39;data\/simulation_preprocessed.csv&#39;, sep=&#39;;&#39;)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-generate_diagram-r-LC3\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-generate_diagram-r-LC4\" class=\"blob-code blob-code-inner js-file-line\">library(miic)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-generate_diagram-r-LC5\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- as.data.frame(sapply(input_file, as.factor))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-generate_diagram-r-LC6\" class=\"blob-code blob-code-inner js-file-line\">res &lt;- miic(input_file, propagation = F)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-generate_diagram-r-LC7\" class=\"blob-code blob-code-inner js-file-line\">if (!dir.exists(&#39;output_dir&#39;)) {<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-generate_diagram-r-LC8\" class=\"blob-code blob-code-inner js-file-line\">  dir.create(&#39;output_dir&#39;)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-generate_diagram-r-LC9\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-generate_diagram-r-LC10\" class=\"blob-code blob-code-inner js-file-line\">write.csv2(res$all.edges.summary,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-generate_diagram-r-LC11\" class=\"blob-code blob-code-inner js-file-line\">           &#39;output_dir\/all.edges.summary.csv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-generate_diagram-r-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-generate_diagram-r-LC12\" class=\"blob-code blob-code-inner js-file-line\">           row.names=FALSE)<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/48d59783fa2e7128caa2e253adf8d85e\/raw\/557b08bbc6fd05c6d47cfeed34d4b3886646b4cc\/generate_diagram.R\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/48d59783fa2e7128caa2e253adf8d85e#file-generate_diagram-r\" class=\"Link--inTextBlock\">\n          generate_diagram.R\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Now, we need to add <em>miic.R<\/em> to the pipeline.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577982\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-run2-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"run2.sh content, created by mribeirodantas on 10:54AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"run2.sh\">\n        <tr>\n          <td id=\"file-run2-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-run2-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create a pipeline to preprocess<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run2-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-run2-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc run -f miic.dvc \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run2-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-run2-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">        -d data\/simulation_preprocessed.csv -d miic.R \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run2-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-run2-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">        -o output_dir\/all.edges.summary.csv \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run2-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-run2-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">        Rscript miic.R<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/54111c27e9065fe40e73f45ee36528cb\/raw\/e34cf60a922ff8d1508af61b96a9593140523428\/run2.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/54111c27e9065fe40e73f45ee36528cb#file-run2-sh\" class=\"Link--inTextBlock\">\n          run2.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>And after that, we must commit, as suggested by DVC.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101577993\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-commit2-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"commit2.sh content, created by mribeirodantas on 10:54AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"commit2.sh\">\n        <tr>\n          <td id=\"file-commit2-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-commit2-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">git add output_dir\/.gitignore miic.dvc miic.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commit2-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-commit2-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Adds miic script\/pipeline\/management by packrat&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0dbf763741502b14d435205ca6e15bb1\/raw\/845255f279ad331ee5b7d34f4192953f4c96a4ac\/commit2.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/0dbf763741502b14d435205ca6e15bb1#file-commit2-sh\" class=\"Link--inTextBlock\">\n          commit2.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>As a final step, we would like to know the edges contained in the inferred graph, that is, which nodes (variables) are associated with each other among them.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578036\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-final-r\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-r  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"final.R content, created by mribeirodantas on 10:57AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"final.R\">\n        <tr>\n          <td id=\"file-final-r-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-final-r-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Results<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-final-r-LC2\" class=\"blob-code blob-code-inner js-file-line\"># Create a final.R file with the content below.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-final-r-LC3\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- read.csv2(file = &#39;output_dir\/all.edges.summary.csv&#39;)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-final-r-LC4\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- input_file[input_file$type == &#39;P&#39;, ]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-final-r-LC5\" class=\"blob-code blob-code-inner js-file-line\">write.csv2(input_file[, c(&#39;x&#39;, &#39;y&#39;)],<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-final-r-LC6\" class=\"blob-code blob-code-inner js-file-line\">           &#39;output_dir\/retained.edges.csv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-final-r-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-final-r-LC7\" class=\"blob-code blob-code-inner js-file-line\">           row.names=FALSE)<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/6f6b3870aaca1c1f0b2af2591594a1aa\/raw\/286872616580173041292b9605d06905a3bfe4e0\/final.R\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/6f6b3870aaca1c1f0b2af2591594a1aa#file-final-r\" class=\"Link--inTextBlock\">\n          final.R\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578026\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-run3-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"run3.sh content, created by mribeirodantas on 10:57AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"run3.sh\">\n        <tr>\n          <td id=\"file-run3-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-run3-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create a pipeline to preprocess<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-run3-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc run -f final.dvc \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-run3-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">        -d output_dir\/all.edges.summary.csv -d final.R \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-run3-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">        -o output_dir\/retained.edges.csv \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-run3-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">        Rscript final.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-run3-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-run3-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"># And then git add\/commit<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-run3-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">git add final.dvc output_dir\/.gitignore final.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run3-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-run3-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Adds final script\/pipeline entry&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/652d85160b9902a09b219a7102a399c2\/raw\/dbc5d57e5a0e689ffd39ca0f67beec213f23c4ac\/run3.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/652d85160b9902a09b219a7102a399c2#file-run3-sh\" class=\"Link--inTextBlock\">\n          run3.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>How does our pipeline look?<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578051\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-ascii-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"ascii.sh content, created by mribeirodantas on 10:58AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"ascii.sh\">\n        <tr>\n          <td id=\"file-ascii-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-ascii-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Run the following command<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-ascii-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc pipeline show &#8211;ascii final.dvc<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-ascii-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\"># The output should look like this:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-ascii-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-ascii-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\"> | data\/simulation.tsv.dvc |  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-ascii-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"> +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-ascii-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-ascii-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-ascii-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-ascii-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">     +&#8212;&#8212;&#8212;&#8212;&#8212;-+       <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-ascii-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">     | preprocess.dvc |       <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-ascii-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">     +&#8212;&#8212;&#8212;&#8212;&#8212;-+       <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-ascii-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-ascii-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-ascii-sh-LC15\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-ascii-sh-LC16\" class=\"blob-code blob-code-inner js-file-line\">         +&#8212;&#8212;&#8212;-+         <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-ascii-sh-LC17\" class=\"blob-code blob-code-inner js-file-line\">         | miic.dvc |         <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-ascii-sh-LC18\" class=\"blob-code blob-code-inner js-file-line\">         +&#8212;&#8212;&#8212;-+         <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-ascii-sh-LC19\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-ascii-sh-LC20\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-ascii-sh-LC21\" class=\"blob-code blob-code-inner js-file-line\">               *              <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-ascii-sh-LC22\" class=\"blob-code blob-code-inner js-file-line\">        +&#8212;&#8212;&#8212;&#8211;+         <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-ascii-sh-LC23\" class=\"blob-code blob-code-inner js-file-line\">        | final.dvc |         <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-ascii-sh-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-ascii-sh-LC24\" class=\"blob-code blob-code-inner js-file-line\">        +&#8212;&#8212;&#8212;&#8211;+<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/bf6ba8a77c9f7aff22b3e09241192556\/raw\/897afabb6307573ac21c1b36d7b67075f5c3ff30\/ascii.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/bf6ba8a77c9f7aff22b3e09241192556#file-ascii-sh\" class=\"Link--inTextBlock\">\n          ascii.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>You can also see the same DAG but instead of stage names, you can see the files run at each stage.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101601542\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-commands-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"commands.sh content, created by mribeirodantas on 12:18PM on March 04, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"commands.sh\">\n        <tr>\n          <td id=\"file-commands-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-commands-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">dvc pipeline show &#8211;ascii final.dvc &#8211;command<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-commands-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-commands-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">| Rscript preprocess.R | <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-commands-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+ <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-commands-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-commands-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-commands-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-commands-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">   +&#8212;&#8212;&#8212;&#8212;&#8212;-+    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-commands-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">   | Rscript miic.R |    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-commands-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">   +&#8212;&#8212;&#8212;&#8212;&#8212;-+    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-commands-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-commands-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-commands-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\">            *            <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-commands-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">  +&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-commands-sh-LC15\" class=\"blob-code blob-code-inner js-file-line\">  | Rscript final.R |    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-commands-sh-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-commands-sh-LC16\" class=\"blob-code blob-code-inner js-file-line\">  +&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+    <\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/28afcb272eb63d4a95e2b05768937c0d\/raw\/a6494ac5002de242680618fe702c9fde85513192\/commands.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/28afcb272eb63d4a95e2b05768937c0d#file-commands-sh\" class=\"Link--inTextBlock\">\n          commands.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Or the output files generated at each stage by which files and based on what files.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101601570\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-outs-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"outs.sh content, created by mribeirodantas on 12:20PM on March 04, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"outs.sh\">\n        <tr>\n          <td id=\"file-outs-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-outs-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">dvc pipeline show &#8211;ascii final.dvc &#8211;outs<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-outs-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+          +&#8212;&#8212;&#8212;&#8212;&#8211;+                                   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-outs-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">| data\/simulation.tsv |          | preprocess.R |                                   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-outs-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+          +&#8212;&#8212;&#8212;&#8212;&#8211;+                                   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-outs-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">                  ***            ***                                                <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-outs-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">                     **        **                                                   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-outs-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">                       **    **                                                     <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-outs-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">        +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+          +&#8212;&#8212;&#8211;+                    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-outs-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">        | data\/simulation_preprocessed.csv |          | miic.R |                    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-outs-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">        +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+         *+&#8212;&#8212;&#8211;+                    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-outs-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">                                  **              ***                               <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-outs-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">                                    ***         **                                  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-outs-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\">                                       **     **                                    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-outs-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">                         +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+          +&#8212;&#8212;&#8212;+  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-outs-sh-LC15\" class=\"blob-code blob-code-inner js-file-line\">                         | output_dir\/all.edges.summary.csv |          | final.R |  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-outs-sh-LC16\" class=\"blob-code blob-code-inner js-file-line\">                         +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+        **+&#8212;&#8212;&#8212;+  <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-outs-sh-LC17\" class=\"blob-code blob-code-inner js-file-line\">                                                   **              **               <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-outs-sh-LC18\" class=\"blob-code blob-code-inner js-file-line\">                                                     ***        ***                 <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-outs-sh-LC19\" class=\"blob-code blob-code-inner js-file-line\">                                                        **    **                    <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-outs-sh-LC20\" class=\"blob-code blob-code-inner js-file-line\">                                           +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+        <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-outs-sh-LC21\" class=\"blob-code blob-code-inner js-file-line\">                                           | output_dir\/retained.edges.csv |        <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-outs-sh-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-outs-sh-LC22\" class=\"blob-code blob-code-inner js-file-line\">                                           +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+       <\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/a90236c7aca805bca032013248a86961\/raw\/d9e198632d3a42f2959d4971b8e0626c65f30354\/outs.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/a90236c7aca805bca032013248a86961#file-outs-sh\" class=\"Link--inTextBlock\">\n          outs.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Now let&#8217;s do the final part of our pipeline which is to count the number of edges contained in the final graph. MIIC starts with a complete graph, that is, all nodes (variables) are connected, through an edge, to all the other nodes. MIIC then looks for spurious associations and removes the edges that seem to be spurious. One of the interesting things that MIIC can do, given some assumptions, is to show you that A doesn&#8217;t cause B, even though A and B are correlated, among other things (you can read about it <a href=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/02\/07\/spurious-independence-is-it-real\/\">here<\/a>).<\/p>\n\n\n\n<p>Our goal in this tutorial is to count the number of edges that were retained at the end of the analysis. A silly task, but again, this is a basic tutorial on DVC.<\/p>\n\n\n\n<p>Let&#8217;s write our last script for the last stage.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578061\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-evaluate-r\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-r  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"evaluate.R content, created by mribeirodantas on 10:58AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"evaluate.R\">\n        <tr>\n          <td id=\"file-evaluate-r-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-evaluate-r-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Create a file named evaluate.R with the content below<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-evaluate-r-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-evaluate-r-LC2\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- read.csv2(file = &#39;output_dir\/retained.edges.csv&#39;)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-evaluate-r-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-evaluate-r-LC3\" class=\"blob-code blob-code-inner js-file-line\">write.table(nrow(input_file),<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-evaluate-r-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-evaluate-r-LC4\" class=\"blob-code blob-code-inner js-file-line\">            &#39;output_dir\/metric.txt&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-evaluate-r-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-evaluate-r-LC5\" class=\"blob-code blob-code-inner js-file-line\">            row.names=FALSE,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-evaluate-r-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-evaluate-r-LC6\" class=\"blob-code blob-code-inner js-file-line\">            col.names=FALSE)<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/cbe3cdc8a432287ba285378417571cad\/raw\/7688afc62c09c20a16237bea703c20f50fbbb8f4\/evaluate.R\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/cbe3cdc8a432287ba285378417571cad#file-evaluate-r\" class=\"Link--inTextBlock\">\n          evaluate.R\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>Let&#8217;s add it as a stage in our pipeline, setting the output file as a metrics file for DVC. By doing this, we let DVC know what information we want to compare between different experiments. After that, we commit the changes and check the metric.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578068\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-run4-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"run4.sh content, created by mribeirodantas on 10:59AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"run4.sh\">\n        <tr>\n          <td id=\"file-run4-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-run4-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># And then the pipeline entry<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-run4-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc run -f evaluate.dvc \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-run4-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">        -d output_dir\/retained.edges.csv -d evaluate.R \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-run4-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">        -m output_dir\/metric.txt \\<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-run4-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">        Rscript evaluate.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-run4-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"># By giving the parameter -m, instead of -o, we tell DVC<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-run4-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"># that his file has a metric for our pipeline.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-run4-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-run4-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\"># Git<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-run4-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">git add evaluate.dvc output_dir\/.gitignore evaluate.R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-run4-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Adds evaluate script\/pipelien entry&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-run4-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-run4-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\"># Let&#39;s check our metrics (thanks to the -m parameter).<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-run4-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-run4-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">dvc metrics show -T<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/c0eed0cf5d340c30896cc484c46f0b97\/raw\/90add207c6929e59ecde2934ad76675c86118f01\/run4.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/c0eed0cf5d340c30896cc484c46f0b97#file-run4-sh\" class=\"Link--inTextBlock\">\n          run4.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578171\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-metrics_output-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"metrics_output.sh content, created by mribeirodantas on 11:04AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"metrics_output.sh\">\n        <tr>\n          <td id=\"file-metrics_output-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-metrics_output-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">working tree:                                                           <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-metrics_output-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-metrics_output-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">\toutput_dir\/metric.txt: 87<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/15e953ab1e57581f86f65f998f5ef0e2\/raw\/f50aec8fefa1d9cad6cd397c2d69b9b82f2feb71\/metrics_output.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/15e953ab1e57581f86f65f998f5ef0e2#file-metrics_output-sh\" class=\"Link--inTextBlock\">\n          metrics_output.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>This is our baseline experiment. Cool. Let&#8217;s make it clear to DVC.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578076\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-tag-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"tag.sh content, created by mribeirodantas on 10:59AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"tag.sh\">\n        <tr>\n          <td id=\"file-tag-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-tag-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">git tag -a &quot;baseline-experiment&quot; -m &quot;baseline&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/2c3926265c17a769d47e6eea1c1f6917\/raw\/389c2b5b5b7cd41615ff31821772554af11be921\/tag.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/2c3926265c17a769d47e6eea1c1f6917#file-tag-sh\" class=\"Link--inTextBlock\">\n          tag.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\">Let&#8217;s start a new experiment<\/h3>\n\n\n\n<p>Let&#8217;s change our preprocessing. Before binarizing, let&#8217;s replace the missing values (NA) with the mean of the variable and then we binarize again.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578083\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-preprocess2-r\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-r  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"preprocess2.R content, created by mribeirodantas on 11:00AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"preprocess2.R\">\n        <tr>\n          <td id=\"file-preprocess2-r-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-preprocess2-r-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Your new preprocess.R should look like this<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-preprocess2-r-LC2\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- read.csv(file = &#39;data\/simulation.tsv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-preprocess2-r-LC3\" class=\"blob-code blob-code-inner js-file-line\">                       sep=&#39;\\t&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-preprocess2-r-LC4\" class=\"blob-code blob-code-inner js-file-line\">                       stringsAsFactors=FALSE)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-preprocess2-r-LC5\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- input_file[, 1:50]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-preprocess2-r-LC6\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- lapply(input_file,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-preprocess2-r-LC7\" class=\"blob-code blob-code-inner js-file-line\">                     function(x) replace(x,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-preprocess2-r-LC8\" class=\"blob-code blob-code-inner js-file-line\">                                         is.na(x),<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-preprocess2-r-LC9\" class=\"blob-code blob-code-inner js-file-line\">                                         mean(x,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-preprocess2-r-LC10\" class=\"blob-code blob-code-inner js-file-line\">                                              na.rm = TRUE)))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-preprocess2-r-LC11\" class=\"blob-code blob-code-inner js-file-line\">input_file &lt;- as.data.frame(input_file)<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-preprocess2-r-LC12\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-preprocess2-r-LC13\" class=\"blob-code blob-code-inner js-file-line\">input_file[, unlist(lapply(input_file, is.numeric))] &lt;-<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-preprocess2-r-LC14\" class=\"blob-code blob-code-inner js-file-line\">  apply(input_file[, unlist(lapply(input_file, is.numeric))],<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-preprocess2-r-LC15\" class=\"blob-code blob-code-inner js-file-line\">        2,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-preprocess2-r-LC16\" class=\"blob-code blob-code-inner js-file-line\">        function(x) ifelse(x &lt; 0, -1, x))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-preprocess2-r-LC17\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-preprocess2-r-LC18\" class=\"blob-code blob-code-inner js-file-line\">input_file[, unlist(lapply(input_file, is.numeric))] &lt;-<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-preprocess2-r-LC19\" class=\"blob-code blob-code-inner js-file-line\">  apply(input_file[, unlist(lapply(input_file, is.numeric))],<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-preprocess2-r-LC20\" class=\"blob-code blob-code-inner js-file-line\">        2,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-preprocess2-r-LC21\" class=\"blob-code blob-code-inner js-file-line\">        function(x) ifelse(x &gt; 0, 1, x))<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-preprocess2-r-LC22\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-preprocess2-r-LC23\" class=\"blob-code blob-code-inner js-file-line\">write.csv2(input_file,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-preprocess2-r-LC24\" class=\"blob-code blob-code-inner js-file-line\">           &#39;data\/simulation_preprocessed.csv&#39;,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-preprocess2-r-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-preprocess2-r-LC25\" class=\"blob-code blob-code-inner js-file-line\">           row.names=FALSE)<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/2fcaeb5f8e2b692ef5e38053ef658bea\/raw\/3c8a80213e1d482b2e4f988dff58d55242343ff3\/preprocess2.R\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/2fcaeb5f8e2b692ef5e38053ef658bea#file-preprocess2-r\" class=\"Link--inTextBlock\">\n          preprocess2.R\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578100\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-repro-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"repro.sh content, created by mribeirodantas on 11:00AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"repro.sh\">\n        <tr>\n          <td id=\"file-repro-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-repro-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># Then let&#39;s reproduce our full pipeline<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-repro-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">dvc repro evaluate.dvc<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-repro-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-repro-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\"># Let&#39;s compare our metrics.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-repro-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\">dvc metrics show -T<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-repro-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"># Output<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-repro-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\">working tree:                                                           <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-repro-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">\toutput_dir\/metric.txt: 95<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-repro-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\">baseline-experiment:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-repro-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-repro-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">\toutput_dir\/metric.txt: 87<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/64f3b4c11bf578320e2e28369cbcdf02\/raw\/2f9b159977f8d3f380375a3fcd09a11d06c9f633\/repro.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/64f3b4c11bf578320e2e28369cbcdf02#file-repro-sh\" class=\"Link--inTextBlock\">\n          repro.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>One thing you can do so that you don&#8217;t have to type the name of the last stage of your pipeline after <em>dvc repro<\/em> is to name the stage Dvcfile (dvc run -f Dvcfile and so on). This is the file that <a href=\"https:\/\/dvc.org\/doc\/command-reference\/repro\">dvc repro<\/a> will look for when it&#8217;s run without a stage name.<\/p>\n\n\n\n<p>After everything is done, as we would do with git, we do it with DVC. A push.<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578109\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-new_tag-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"new_tag.sh content, created by mribeirodantas on 11:01AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"new_tag.sh\">\n        <tr>\n          <td id=\"file-new_tag-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-new_tag-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">dvc push<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-new_tag-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-new_tag-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\"># And let&#39;s commit this new analyses.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-new_tag-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-new_tag-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">git add .<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-new_tag-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-new_tag-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">git commit -m &quot;Changes preprocessing for NA imputation by mean&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-new_tag-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-new_tag-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\"># Add a new tag to help DVC know this is a finished analyses<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-new_tag-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-new_tag-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\">git tag -a &quot;NA-imputation-by-mean&quot; -m &quot;NAimputation&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/79965583c462f2dbf46951c80dfa06ad\/raw\/756a27ecfc9a7dc976ec5e045edff4113d37294d\/new_tag.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/79965583c462f2dbf46951c80dfa06ad#file-new_tag-sh\" class=\"Link--inTextBlock\">\n          new_tag.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\">Traveling in time with data objects<\/h3>\n\n\n\n<p>If you run the command <em>cat output_dir\/retained.edges.csv<\/em> you will see what you expect, that is, the generated file from the new (last) experiment. All the data files in the local repository were changed according to this. What if you wanted to see how this file looked like in the previous experiment? You can easily see the source code of preprocess.R. This is straightforward if you already know git. You simply do:<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578116\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-git_checkout-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"git_checkout.sh content, created by mribeirodantas on 11:01AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"git_checkout.sh\">\n        <tr>\n          <td id=\"file-git_checkout-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-git_checkout-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">git checkout HEAD~1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-git_checkout-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-git_checkout-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">cat preprocess.R<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/1d4457fb69cdb28b14803e97d122f610\/raw\/044a4e7e7395ba5838e41ba98268b3c2ffb8e619\/git_checkout.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/1d4457fb69cdb28b14803e97d122f610#file-git_checkout-sh\" class=\"Link--inTextBlock\">\n          git_checkout.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>But if you do a <em>cat output_dir\/retained.edges.csv<\/em>, you still see the file generated with the latest version of your pipeline. How to see the file as it looked like when you did the commit in which you&#8217;re right now?<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578123\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-dvc_checkout-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"dvc_checkout.sh content, created by mribeirodantas on 11:01AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"dvc_checkout.sh\">\n        <tr>\n          <td id=\"file-dvc_checkout-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-dvc_checkout-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\">dvc checkout output_dir\/retained.edges.csv<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-dvc_checkout-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-dvc_checkout-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\">cat output_dir\/retained.edges.csv<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/d519b5fa013d4459f9060d09b09afa66\/raw\/af3f439f950826d7004d8f7fb564061585dcb0e8\/dvc_checkout.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/d519b5fa013d4459f9060d09b09afa66#file-dvc_checkout-sh\" class=\"Link--inTextBlock\">\n          dvc_checkout.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<p>It makes it easy to remember the <a href=\"https:\/\/dvc.org\/doc\/command-reference\/checkout\">dvc checkout<\/a> command because it&#8217;s the same command from git (git checkout).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Presenting your results<\/h3>\n\n\n\n<p>Now that you&#8217;re done with your analyses, it&#8217;s time to present it. You can do it through a web dashboard (<a style=\"-webkit-user-select: auto;\" href=\"https:\/\/shiny.rstudio.com\/\">Shiny<\/a>?), through a slide presentation (<a style=\"-webkit-user-select: auto;\" href=\"https:\/\/github.com\/yihui\/xaringan\">Xaringan<\/a>?), or a report in PDF or HTML (RMarkdown?). The nice thing about R is that you can do all these things without leaving R. Shiny, Xaringan, and so on are all R packages!<\/p>\n\n\n\n<p>In this tutorial, I decided to present my analyses through RMarkdown in HTML. I usually start writing the report during the analyses, sometimes even before I start writing code. I may be writing about the dataset itself, the data, its context, among other things. However, in this tutorial for the sake of simplicity, I left to start writing the report when everything else was done.<\/p>\n\n\n\n<p>You can download the template <a style=\"-webkit-user-select: auto;\" href=\"https:\/\/raw.githubusercontent.com\/mribeirodantas\/r_dvc_git_packrat\/master\/report\/report.Rmd\">here<\/a> and play with it. RStudio can knit it for you and you should have an HTML report looking like the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2574\" height=\"1964\" data-attachment-id=\"3048\" data-permalink=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/screen_2020-03-01_19-25-15\/\" data-orig-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?fit=2574%2C1964&amp;ssl=1\" data-orig-size=\"2574,1964\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"screen_2020-03-01_19-25-15\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?fit=300%2C229&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?fit=640%2C488&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?fit=1024%2C781&amp;ssl=1\" alt=\"\" class=\"wp-image-3048\" srcset=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?w=2574&amp;ssl=1 2574w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?resize=300%2C229&amp;ssl=1 300w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?resize=1024%2C781&amp;ssl=1 1024w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?resize=768%2C586&amp;ssl=1 768w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?resize=1536%2C1172&amp;ssl=1 1536w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?resize=2048%2C1563&amp;ssl=1 2048w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/screen_2020-03-01_19-25-15.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Reproducibility<\/h3>\n\n\n\n<p>What about reproducing these results somewhere else? It can be either at another machine of mine, at a machine of a colleague from work, at a server, or anywhere. How would we do it?<\/p>\n\n\n\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist101578132\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-reproduce-sh\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-shell  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"reproduce.sh content, created by mribeirodantas on 11:02AM on March 03, 2020.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"reproduce.sh\">\n        <tr>\n          <td id=\"file-reproduce-sh-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-reproduce-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"># The first thing to do is to bring a copy of the source code to<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-reproduce-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\"># your local machine. In git terminology, this is called cloning.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-reproduce-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\">git clone https:\/\/github.com\/mribeirodantas\/r_dvc_git_packrat.git<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-reproduce-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\">cd r_dvc_git_packrat<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-reproduce-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\"># You can see within this folder that it only contains what git<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-reproduce-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"># tracks, that is, NOT your data. Metadata about your data, but<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-reproduce-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"># not data.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-reproduce-sh-LC8\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-reproduce-sh-LC9\" class=\"blob-code blob-code-inner js-file-line\"># Next step is to open R. This will trigger packrat to auto install.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-reproduce-sh-LC10\" class=\"blob-code blob-code-inner js-file-line\">R<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-reproduce-sh-LC11\" class=\"blob-code blob-code-inner js-file-line\"># Next, you need to do a restore, that is, restore the R packages<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-reproduce-sh-LC12\" class=\"blob-code blob-code-inner js-file-line\"># that were in the environment but are not in yours now.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-reproduce-sh-LC13\" class=\"blob-code blob-code-inner js-file-line\">packrat::restore()<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-reproduce-sh-LC14\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-reproduce-sh-LC15\" class=\"blob-code blob-code-inner js-file-line\"># Now, the same way you cloned from git, you need to clone from a<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-reproduce-sh-LC16\" class=\"blob-code blob-code-inner js-file-line\"># DVC remote. In my computer, since I have the local remote, I only<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-reproduce-sh-LC17\" class=\"blob-code blob-code-inner js-file-line\"># have to do dvc pull. In your case, you need to add the really<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-reproduce-sh-LC18\" class=\"blob-code blob-code-inner js-file-line\"># remote remote \ud83d\ude42<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-reproduce-sh-LC19\" class=\"blob-code blob-code-inner js-file-line\">dvc remote add newremote https:\/\/www.dropbox.com\/sh\/kjviy4r3la22fj6\/AAB43oyVnbx-sNkERJshMxdha<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-reproduce-sh-LC20\" class=\"blob-code blob-code-inner js-file-line\"># And then you pull with the new remote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-reproduce-sh-LC21\" class=\"blob-code blob-code-inner js-file-line\">dvc pull -r newremote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-reproduce-sh-LC22\" class=\"blob-code blob-code-inner js-file-line\"># I hosted my remote in Dropbox but you can do it in Amazon S3,<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-reproduce-sh-LC23\" class=\"blob-code blob-code-inner js-file-line\"># among other solutions. If someone hosted it somewhere, you<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-reproduce-sh-LC24\" class=\"blob-code blob-code-inner js-file-line\"># can also download it and turn it into your local remote.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-reproduce-sh-LC25\" class=\"blob-code blob-code-inner js-file-line\"># First, download it.<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n          <td id=\"file-reproduce-sh-LC26\" class=\"blob-code blob-code-inner js-file-line\">wget -c https:\/\/www.dropbox.com\/sh\/kjviy4r3la22fj6\/AAB43oyVnbx-sNkERJshMxdha\\?dl\\=1 &#8211;output-document=dvc-storage.zip<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n          <td id=\"file-reproduce-sh-LC27\" class=\"blob-code blob-code-inner js-file-line\"># Next, unzip and remove the .zip<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n          <td id=\"file-reproduce-sh-LC28\" class=\"blob-code blob-code-inner js-file-line\">unzip dvc-storage.zip -d dvc-storage<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n          <td id=\"file-reproduce-sh-LC29\" class=\"blob-code blob-code-inner js-file-line\">rm dvc-storage.zip<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n          <td id=\"file-reproduce-sh-LC30\" class=\"blob-code blob-code-inner js-file-line\"># Place this folder (your dvc remote) somewhere else, like in your<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n          <td id=\"file-reproduce-sh-LC31\" class=\"blob-code blob-code-inner js-file-line\"># home directory<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n          <td id=\"file-reproduce-sh-LC32\" class=\"blob-code blob-code-inner js-file-line\">mv dvc-storage $HOME\/<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n          <td id=\"file-reproduce-sh-LC33\" class=\"blob-code blob-code-inner js-file-line\"># Set it to be your remote and remove the default one I set<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n          <td id=\"file-reproduce-sh-LC34\" class=\"blob-code blob-code-inner js-file-line\">dvc remote remove myremote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n          <td id=\"file-reproduce-sh-LC35\" class=\"blob-code blob-code-inner js-file-line\">dvc remote add mynewremote $HOME\/dvc-storage<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n          <td id=\"file-reproduce-sh-LC36\" class=\"blob-code blob-code-inner js-file-line\">dvc pull -r mynewremote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n          <td id=\"file-reproduce-sh-LC37\" class=\"blob-code blob-code-inner js-file-line\"># If you do not want to set manually the remote, set this as your<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n          <td id=\"file-reproduce-sh-LC38\" class=\"blob-code blob-code-inner js-file-line\"># default<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n          <td id=\"file-reproduce-sh-LC39\" class=\"blob-code blob-code-inner js-file-line\">dvc remote default mynewremote<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-reproduce-sh-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n          <td id=\"file-reproduce-sh-LC40\" class=\"blob-code blob-code-inner js-file-line\">dvc pull<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/4cff3ffdb582bd9fcf176afbb91415c7\/raw\/299885953a1eb0280409dd146e36faacf9db993c\/reproduce.sh\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/mribeirodantas\/4cff3ffdb582bd9fcf176afbb91415c7#file-reproduce-sh\" class=\"Link--inTextBlock\">\n          reproduce.sh\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\">Workflow overview<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>You track your source code with Git<\/li><li>You track your data files with DVC<\/li><li>You track your pipeline with DVC<\/li><li>You track your R dependencies with packrat<\/li><li>You isolate your work environment with packrat<\/li><li>You present your analysis results with Xaringan, RMarkdown, Shiny, or whatever you want \ud83d\ude42<\/li><\/ul>\n\n\n\n<p>Everything we did here is hosted in <a href=\"https:\/\/github.com\/mribeirodantas\/r_dvc_git_packrat\">a GitHub repository<\/a>. I would like to thank all my friends who read this text when it was still a draft, including also <a href=\"https:\/\/twitter.com\/shcheklein\">Ivan Shcheklein<\/a>, <a href=\"https:\/\/twitter.com\/andronovhopf\">Elle O&#8217;Brien<\/a>, and <a href=\"https:\/\/twitter.com\/JorgeOrpinel\">Jorge Orpinel<\/a>, all from the <a href=\"https:\/\/twitter.com\/dvcorg\">DVC<\/a> team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><b>Reading time: <\/span> <span class=\"rt-time\"> 9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/b><\/span><\/span>DVC is the git equivalent for data and data science pipelines. Along with git and some R technologies such as packrat and RMarkdown you can manage your whole data science project in a very productive way! This post is a tutorial on using all these tools to manage your Data Science project!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","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,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[69,3,24],"tags":[11,204,74,200,205,25],"class_list":["post-2952","post","type-post","status-publish","format-standard","hentry","category-data-science","category-phd","category-r","tag-datascience","tag-dvs","tag-git","tag-ml","tag-packrat","tag-r"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Manage your Data Science Project in R - The Dataist Storyteller<\/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:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manage your Data Science Project in R - The Dataist Storyteller\" \/>\n<meta property=\"og:description\" content=\"Reading time:  9 minutesDVC is the git equivalent for data and data science pipelines. Along with git and some R technologies such as packrat and RMarkdown you can manage your whole data science project in a very productive way! This post is a tutorial on using all these tools to manage your Data Science project!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\" \/>\n<meta property=\"og:site_name\" content=\"The Dataist Storyteller\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-05T08:22:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-31T02:38:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=2000%2C784&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"784\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"mribeirodantas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mribeirodantas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\"},\"author\":{\"name\":\"mribeirodantas\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957\"},\"headline\":\"Manage your Data Science Project in R\",\"datePublished\":\"2020-03-05T08:22:00+00:00\",\"dateModified\":\"2025-01-31T02:38:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\"},\"wordCount\":2577,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957\"},\"image\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1\",\"keywords\":[\"datascience\",\"DVS\",\"git\",\"ml\",\"packrat\",\"r\"],\"articleSection\":[\"Data Science\",\"PhD\",\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\",\"url\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\",\"name\":\"Manage your Data Science Project in R - The Dataist Storyteller\",\"isPartOf\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1\",\"datePublished\":\"2020-03-05T08:22:00+00:00\",\"dateModified\":\"2025-01-31T02:38:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage\",\"url\":\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1\",\"contentUrl\":\"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mribeirodantas.xyz\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manage your Data Science Project in R\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#website\",\"url\":\"https:\/\/mribeirodantas.xyz\/blog\/\",\"name\":\"The Dataist Storyteller\",\"description\":\"Telling stories backed by data\",\"publisher\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mribeirodantas.xyz\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957\",\"name\":\"mribeirodantas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6687720529e55feab1680cbd98da5c7f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6687720529e55feab1680cbd98da5c7f?s=96&d=mm&r=g\",\"caption\":\"mribeirodantas\"},\"logo\":{\"@id\":\"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Manage your Data Science Project in R - The Dataist Storyteller","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:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/","og_locale":"en_US","og_type":"article","og_title":"Manage your Data Science Project in R - The Dataist Storyteller","og_description":"Reading time:  9 minutesDVC is the git equivalent for data and data science pipelines. Along with git and some R technologies such as packrat and RMarkdown you can manage your whole data science project in a very productive way! This post is a tutorial on using all these tools to manage your Data Science project!","og_url":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/","og_site_name":"The Dataist Storyteller","article_published_time":"2020-03-05T08:22:00+00:00","article_modified_time":"2025-01-31T02:38:04+00:00","og_image":[{"width":2000,"height":784,"url":"https:\/\/i0.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=2000%2C784&ssl=1","type":"image\/png"}],"author":"mribeirodantas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"mribeirodantas","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#article","isPartOf":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/"},"author":{"name":"mribeirodantas","@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957"},"headline":"Manage your Data Science Project in R","datePublished":"2020-03-05T08:22:00+00:00","dateModified":"2025-01-31T02:38:04+00:00","mainEntityOfPage":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/"},"wordCount":2577,"commentCount":2,"publisher":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957"},"image":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage"},"thumbnailUrl":"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1","keywords":["datascience","DVS","git","ml","packrat","r"],"articleSection":["Data Science","PhD","R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/","url":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/","name":"Manage your Data Science Project in R - The Dataist Storyteller","isPartOf":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage"},"image":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage"},"thumbnailUrl":"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1","datePublished":"2020-03-05T08:22:00+00:00","dateModified":"2025-01-31T02:38:04+00:00","breadcrumb":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#primaryimage","url":"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1","contentUrl":"https:\/\/i2.wp.com\/mribeirodantas.xyz\/blog\/wp-content\/uploads\/2020\/03\/workflow.png?fit=1024%2C401&amp;ssl=1"},{"@type":"BreadcrumbList","@id":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/2020\/03\/05\/r-dvc-and-rmarkdown\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mribeirodantas.xyz\/blog\/"},{"@type":"ListItem","position":2,"name":"Manage your Data Science Project in R"}]},{"@type":"WebSite","@id":"https:\/\/mribeirodantas.xyz\/blog\/#website","url":"https:\/\/mribeirodantas.xyz\/blog\/","name":"The Dataist Storyteller","description":"Telling stories backed by data","publisher":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mribeirodantas.xyz\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/2856ebf8edffabf1f4bbca59bade5957","name":"mribeirodantas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6687720529e55feab1680cbd98da5c7f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6687720529e55feab1680cbd98da5c7f?s=96&d=mm&r=g","caption":"mribeirodantas"},"logo":{"@id":"https:\/\/mribeirodantas.xyz\/blog\/#\/schema\/person\/image\/"}}]}},"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"mribeirodantas","author_link":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/author\/mribeirodantas\/"},"uagb_comment_info":28,"uagb_excerpt":"Reading time: 9 minutesDVC is the git equivalent for data and data science pipelines. Along with git and some R technologies such as packrat and RMarkdown you can manage your whole data science project in a very productive way! This post is a tutorial on using all these tools to manage your Data Science project!","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paw9jx-LC","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2952"}],"version-history":[{"count":175,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2952\/revisions"}],"predecessor-version":[{"id":4915,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2952\/revisions\/4915"}],"wp:attachment":[{"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mribeirodantas.xyz\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}