Skip to content

Commit f69d130

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent 47b2a7d commit f69d130

5 files changed

Lines changed: 36 additions & 32 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c6733768
1+
a48e7768

modules.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ <h1 class="title">Modules</h1>
390390
</thead>
391391
<tbody class="list">
392392

393-
<tr data-index="0" data-listing-file-modified-sort="1749821333585" data-listing-reading-time-sort="1" data-listing-word-count-sort="50" data-listing-title-sort="Package foundations" data-listing-filename-sort="index.qmd">
393+
<tr data-index="0" data-listing-file-modified-sort="1749833168160" data-listing-reading-time-sort="1" data-listing-word-count-sort="50" data-listing-title-sort="Package foundations" data-listing-filename-sort="index.qmd">
394394
<td>
395395
<a href="./modules/01-package-foundations/index.html" class="title listing-title">Package foundations</a>
396396
</td>
@@ -400,7 +400,7 @@ <h1 class="title">Modules</h1>
400400

401401
</tr>
402402

403-
<tr data-index="1" data-listing-file-modified-sort="1749821333585" data-listing-reading-time-sort="1" data-listing-word-count-sort="65" data-listing-title-sort="Function documentation and dependencies" data-listing-filename-sort="index.qmd">
403+
<tr data-index="1" data-listing-file-modified-sort="1749833168160" data-listing-reading-time-sort="1" data-listing-word-count-sort="65" data-listing-title-sort="Function documentation and dependencies" data-listing-filename-sort="index.qmd">
404404
<td>
405405
<a href="./modules/02-documentation/index.html" class="title listing-title">Function documentation and dependencies</a>
406406
</td>
@@ -410,7 +410,7 @@ <h1 class="title">Modules</h1>
410410

411411
</tr>
412412

413-
<tr data-index="2" data-listing-file-modified-sort="1749821333585" data-listing-reading-time-sort="1" data-listing-word-count-sort="53" data-listing-title-sort="Testing" data-listing-filename-sort="index.qmd">
413+
<tr data-index="2" data-listing-file-modified-sort="1749833168160" data-listing-reading-time-sort="1" data-listing-word-count-sort="53" data-listing-title-sort="Testing" data-listing-filename-sort="index.qmd">
414414
<td>
415415
<a href="./modules/03-testing/index.html" class="title listing-title">Testing</a>
416416
</td>
@@ -420,7 +420,7 @@ <h1 class="title">Modules</h1>
420420

421421
</tr>
422422

423-
<tr data-index="3" data-listing-file-modified-sort="1749821333585" data-listing-reading-time-sort="1" data-listing-word-count-sort="53" data-listing-title-sort="Package check and documentation" data-listing-filename-sort="index.qmd">
423+
<tr data-index="3" data-listing-file-modified-sort="1749833168160" data-listing-reading-time-sort="1" data-listing-word-count-sort="53" data-listing-title-sort="Package check and documentation" data-listing-filename-sort="index.qmd">
424424
<td>
425425
<a href="./modules/04-check-package-documentation/index.html" class="title listing-title">Package check and documentation</a>
426426
</td>
@@ -430,7 +430,7 @@ <h1 class="title">Modules</h1>
430430

431431
</tr>
432432

433-
<tr data-index="4" data-listing-file-modified-sort="1749821333585" data-listing-reading-time-sort="1" data-listing-word-count-sort="50" data-listing-title-sort="Packaging data; Publication and maintenance" data-listing-filename-sort="index.qmd">
433+
<tr data-index="4" data-listing-file-modified-sort="1749833168160" data-listing-reading-time-sort="1" data-listing-word-count-sort="50" data-listing-title-sort="Packaging data; Publication and maintenance" data-listing-filename-sort="index.qmd">
434434
<td>
435435
<a href="./modules/05-data-publication-maintenance/index.html" class="title listing-title">Packaging data; Publication and maintenance</a>
436436
</td>

search.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@
781781
"href": "slides/02-documentation/index.html#you-might-get-tired-of-using-all-the-time",
782782
"title": "Function documentation and dependencies",
783783
"section": "You might get tired of using :: all the time",
784-
"text": "You might get tired of using :: all the time\nOr you might want to use an infix function\n\n`%+%` &lt;- roperators::`%+%`\n\nwelcome &lt;- function(name, place){\n message(\"Welcome \" %+% name %+% \" from \" %+% place %+% \"!\")\n}"
784+
"text": "You might get tired of using :: all the time\nOr you might want to use an infix function\n\n`%-=%` &lt;- roperators::`%-=%`\n\ncenter &lt;- function(df, select) {\n for (nm in names(df[select])){\n # overwrite column after subtracting the mean \n df[[nm]] %-=% mean(df[[nm]])\n }\n df\n}"
785785
},
786786
{
787787
"objectID": "slides/02-documentation/index.html#aside-vs",
@@ -802,7 +802,7 @@
802802
"href": "slides/02-documentation/index.html#package-level-import-file",
803803
"title": "Function documentation and dependencies",
804804
"section": "Package-level import file",
805-
"text": "Package-level import file\nImports belong to the package, not to individual functions, so alternatively you can recognise this by storing them in a central location, e.g. R/animalsounds-package.R\n#' @importFrom purrr keep modify\n#' @importFrom roperators %+%\nNULL\n\nThis removes the possibility of multiple (redundant) imports of the same function. But harder to remember to remove import if function changes! It’s a matter of personal taste."
805+
"text": "Package-level import file\nImports belong to the package, not to individual functions, so alternatively you can recognise this by storing them in a central location, e.g. R/animalsounds-package.R\n#' @importFrom purrr keep modify\n#' @importFrom roperators %-=%\nNULL\n\nThis removes the possibility of multiple (redundant) imports of the same function. But harder to remember to remove import if function changes! It’s a matter of personal taste."
806806
},
807807
{
808808
"objectID": "slides/02-documentation/index.html#usethisuse_import_from",

sitemap.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,78 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://forwards.github.io/package-dev/workshops.html</loc>
5-
<lastmod>2025-06-13T13:28:53.590Z</lastmod>
5+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
66
</url>
77
<url>
88
<loc>https://forwards.github.io/package-dev/prerequisites.html</loc>
9-
<lastmod>2025-06-13T13:28:53.586Z</lastmod>
9+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://forwards.github.io/package-dev/modules/01-package-foundations/index.html</loc>
13-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
13+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://forwards.github.io/package-dev/modules/03-testing/index.html</loc>
17-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
17+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://forwards.github.io/package-dev/index.html</loc>
21-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
21+
<lastmod>2025-06-13T16:46:08.159Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://forwards.github.io/package-dev/workshops/summer-2025-cohort-1-intro.html</loc>
25-
<lastmod>2025-06-13T13:28:53.590Z</lastmod>
25+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://forwards.github.io/package-dev/workshops/summer-2025-cohort-2-intro.html</loc>
29-
<lastmod>2025-06-13T13:28:53.591Z</lastmod>
29+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://forwards.github.io/package-dev/slides/01-package-foundations/index.html</loc>
33-
<lastmod>2025-06-13T13:28:53.587Z</lastmod>
33+
<lastmod>2025-06-13T16:46:08.161Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://forwards.github.io/package-dev/slides/03-testing/index.html</loc>
37-
<lastmod>2025-06-13T13:28:53.590Z</lastmod>
37+
<lastmod>2025-06-13T16:46:08.164Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://forwards.github.io/package-dev/join.html</loc>
41-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
41+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://forwards.github.io/package-dev/slides/02-documentation/index.html</loc>
45-
<lastmod>2025-06-13T13:28:53.589Z</lastmod>
45+
<lastmod>2025-06-13T16:46:08.163Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://forwards.github.io/package-dev/slides/04-check-package-documentation/index.html</loc>
49-
<lastmod>2025-06-13T13:28:53.590Z</lastmod>
49+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://forwards.github.io/package-dev/slides/05-data-publication-maintenance/index.html</loc>
53-
<lastmod>2025-06-13T13:28:53.590Z</lastmod>
53+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://forwards.github.io/package-dev/workshops/summer-2025-cohort-2.html</loc>
57-
<lastmod>2025-06-13T13:28:53.591Z</lastmod>
57+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://forwards.github.io/package-dev/workshops/summer-2025-cohort-1.html</loc>
61-
<lastmod>2025-06-13T13:28:53.591Z</lastmod>
61+
<lastmod>2025-06-13T16:46:08.165Z</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://forwards.github.io/package-dev/modules/02-documentation/index.html</loc>
65-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
65+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://forwards.github.io/package-dev/modules/04-check-package-documentation/index.html</loc>
69-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
69+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://forwards.github.io/package-dev/modules/05-data-publication-maintenance/index.html</loc>
73-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
73+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://forwards.github.io/package-dev/modules.html</loc>
77-
<lastmod>2025-06-13T13:28:53.585Z</lastmod>
77+
<lastmod>2025-06-13T16:46:08.160Z</lastmod>
7878
</url>
7979
</urlset>

slides/02-documentation/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,11 +1472,15 @@ <h1>NAMESPACE: imports</h1>
14721472
<h2>You might get tired of using <code>::</code> all the time</h2>
14731473
<p>Or you might want to use an infix function</p>
14741474
<div class="cell" data-layout-align="center">
1475-
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb15-1"><a></a><span class="st">`</span><span class="at">%+%</span><span class="st">`</span> <span class="ot">&lt;-</span> roperators<span class="sc">::</span><span class="st">`</span><span class="at">%+%</span><span class="st">`</span></span>
1475+
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb15-1"><a></a><span class="st">`</span><span class="at">%-=%</span><span class="st">`</span> <span class="ot">&lt;-</span> roperators<span class="sc">::</span><span class="st">`</span><span class="at">%-=%</span><span class="st">`</span></span>
14761476
<span id="cb15-2"><a></a></span>
1477-
<span id="cb15-3"><a></a>welcome <span class="ot">&lt;-</span> <span class="cf">function</span>(name, place){</span>
1478-
<span id="cb15-4"><a></a> <span class="fu">message</span>(<span class="st">&quot;Welcome &quot;</span> <span class="sc">%+%</span> name <span class="sc">%+%</span> <span class="st">&quot; from &quot;</span> <span class="sc">%+%</span> place <span class="sc">%+%</span> <span class="st">&quot;!&quot;</span>)</span>
1479-
<span id="cb15-5"><a></a>}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
1477+
<span id="cb15-3"><a></a>center <span class="ot">&lt;-</span> <span class="cf">function</span>(df, select) {</span>
1478+
<span id="cb15-4"><a></a> <span class="cf">for</span> (nm <span class="cf">in</span> <span class="fu">names</span>(df[select])){</span>
1479+
<span id="cb15-5"><a></a> <span class="co"># overwrite column after subtracting the mean </span></span>
1480+
<span id="cb15-6"><a></a> df[[nm]] <span class="sc">%-=%</span> <span class="fu">mean</span>(df[[nm]])</span>
1481+
<span id="cb15-7"><a></a> }</span>
1482+
<span id="cb15-8"><a></a> df</span>
1483+
<span id="cb15-9"><a></a>}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
14801484
</div>
14811485
</section>
14821486
<section id="aside-vs" class="slide level2">
@@ -1513,7 +1517,7 @@ <h2>You can <code>import</code> functions into the package</h2>
15131517
<h2>Package-level import file</h2>
15141518
<p>Imports belong to the package, not to individual functions, so alternatively you can recognise this by storing them in a central location, e.g. <code>R/animalsounds-package.R</code></p>
15151519
<div class="sourceCode" id="cb18"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb18-1"><a></a><span class="co">#&#39; @importFrom purrr keep modify</span></span>
1516-
<span id="cb18-2"><a></a><span class="co">#&#39; @importFrom roperators %+%</span></span>
1520+
<span id="cb18-2"><a></a><span class="co">#&#39; @importFrom roperators %-=%</span></span>
15171521
<span id="cb18-3"><a></a><span class="cn">NULL</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
15181522
<aside class="notes">
15191523
<p>This removes the possibility of multiple (redundant) imports of the same function. But harder to remember to remove import if function changes! It’s a matter of personal taste.</p>

0 commit comments

Comments
 (0)