Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Nov 20, 2023
1 parent 78f9848 commit 47cee7a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a616c3d5
92170ac9
4 changes: 2 additions & 2 deletions 03-functional-programming.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ <h2 data-number="2.1" class="anchored" data-anchor-id="introduction"><span class
<div class="cell">
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">rnorm</span>(<span class="at">n =</span> <span class="dv">10</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> [1] 1.3295143 -0.1221699 -0.4966091 1.0295766 -0.5282553 0.6972810
[7] -0.9801508 -1.1329687 1.0300034 -0.6774403</code></pre>
<pre><code> [1] -1.77883248 0.42853232 0.47230020 -0.09081041 -0.20139649 -0.38217676
[7] -1.20057531 0.48772363 -1.83718414 0.21290767</code></pre>
</div>
</div>
<p>Each time you run this line, you will get another set of 10 random numbers. This is obviously a good thing in interactive data analysis, but much less so when running a pipeline programmatically. R provides a way to fix the random seed, which will make sure you always get the same random numbers:</p>
Expand Down
Binary file modified 04-git_files/figure-pdf/unnamed-chunk-36-1.pdf
Binary file not shown.
4 changes: 4 additions & 0 deletions 11-nix.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,13 @@ <h2 data-number="10.6" class="anchored" data-anchor-id="the-rix-package"><span c
</section>
<section id="running-a-pipeline-with-nix" class="level2" data-number="10.7">
<h2 data-number="10.7" class="anchored" data-anchor-id="running-a-pipeline-with-nix"><span class="header-section-number">10.7</span> Running a pipeline with Nix</h2>
<p>Once you’ve built and environment, and “dropped” into it, it’s possible to run R by simply typing <code>R</code> in the console. If instead you’ve installed an IDE, you can start is as well by typing the IDE name’s. You can then work interactively with your data. But it is also possible to run a command from that environment. For instance, if you have a <code>{targets}</code> pipeline that you wish to run in an environment built with Nix, you could run the following command (inside the folder containing the <code>default.nix</code> file):</p>
<pre><code>nix-shell default.nix --run "Rscript -e 'targets::tar_make()'"</code></pre>
<p>This will run the pipeline and build the output. If the output is a rendered Quarto document for instance, you will then see the document appear in the specified output folder.</p>
</section>
<section id="cicd-with-nix" class="level2" data-number="10.8">
<h2 data-number="10.8" class="anchored" data-anchor-id="cicd-with-nix"><span class="header-section-number">10.8</span> CI/CD with Nix</h2>
<p>It is also possible to run a <code>{targets}</code> pipeline on Github Actions quite easily. Run <code>rix::tar_nix_ga()</code> to add the file <code>.github/workflows/run-pipeline.yaml</code> to your project. Now, each time you push changes to your Github repository, the pipeline will be executed. Don’t forget to give read and write rights to the Github Actions bot. You will find the outputs of the pipeline in the <code>targets-run</code> branch of your repository.</p>


</section>
Expand Down
Binary file modified Building-Reproducible-Analytical-Pipelines.epub
Binary file not shown.
Binary file modified Building-Reproducible-Analytical-Pipelines.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions search.json

Large diffs are not rendered by default.

0 comments on commit 47cee7a

Please sign in to comment.