Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Dec 4, 2023
1 parent 37b47b6 commit 0d6bf65
Show file tree
Hide file tree
Showing 7 changed files with 4,067 additions and 3,533 deletions.
4 changes: 2 additions & 2 deletions _posts/2023-12-03-untidy-select/untidy-select.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ cnd_zero_selection$i
General evaluation errors are distinguished by having a `$parent`:

```{r}
cnd_zero_selection <- rlang::catch_cnd(
cnd_evaluation_error <- rlang::catch_cnd(
eval_select(evaluation_error, df3)
)
cnd_zero_selection$parent
cnd_evaluation_error$parent
```

Again, this is more useful as a developer, if you're building something that integrates `{tidyselect}`.^[If you want some examples of post-processing tidyselect errors, there's some stuff I did for [pointblank](https://github.com/rstudio/pointblank/blob/7c4bdd0eb753db17b5213d03fd74f044df12be48/R/utils.R#L241-L318) that may be helpful as a reference.] But I personally find this interesting to know about anyways!
Expand Down
20 changes: 10 additions & 10 deletions _posts/2023-12-03-untidy-select/untidy-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@


<!-- https://schema.org/Article -->
<meta property="article:published" itemprop="datePublished" content="2023-12-03"/>
<meta property="article:created" itemprop="dateCreated" content="2023-12-03"/>
<meta property="article:published" itemprop="datePublished" content="2023-12-04"/>
<meta property="article:created" itemprop="dateCreated" content="2023-12-04"/>
<meta name="article:author" content="June Choe"/>

<!-- https://developers.facebook.com/docs/sharing/webmasters#markup -->
Expand All @@ -119,7 +119,7 @@
<!--radix_placeholder_rmarkdown_metadata-->

<script type="text/json" id="radix-rmarkdown-metadata">
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","categories","base_url","author","date","output","editor_options","preview"]}},"value":[{"type":"character","attributes":{},"value":["The many ways to (un)tidy-select"]},{"type":"character","attributes":{},"value":["Deconstructing {tidyselect} and building it back up\n"]},{"type":"character","attributes":{},"value":["data wrangling","dplyr","tidyselect"]},{"type":"character","attributes":{},"value":["https://yjunechoe.github.io"]},{"type":"list","attributes":{},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["name","affiliation","affiliation_url","orcid_id"]}},"value":[{"type":"character","attributes":{},"value":["June Choe"]},{"type":"character","attributes":{},"value":["University of Pennsylvania Linguistics"]},{"type":"character","attributes":{},"value":["https://live-sas-www-ling.pantheon.sas.upenn.edu/"]},{"type":"character","attributes":{},"value":["0000-0002-0701-921X"]}]}]},{"type":"character","attributes":{},"value":["2023-12-03"]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["include-after-body","toc","self_contained","css"]}},"value":[{"type":"character","attributes":{},"value":["highlighting.html"]},{"type":"logical","attributes":{},"value":[true]},{"type":"logical","attributes":{},"value":[false]},{"type":"character","attributes":{},"value":["../../styles.css"]}]}]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["chunk_output_type"]}},"value":[{"type":"character","attributes":{},"value":["console"]}]},{"type":"character","attributes":{},"value":["preview.png"]}]}
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","categories","base_url","author","date","output","editor_options","preview"]}},"value":[{"type":"character","attributes":{},"value":["The many ways to (un)tidy-select"]},{"type":"character","attributes":{},"value":["Deconstructing {tidyselect} and building it back up\n"]},{"type":"character","attributes":{},"value":["data wrangling","dplyr","tidyselect"]},{"type":"character","attributes":{},"value":["https://yjunechoe.github.io"]},{"type":"list","attributes":{},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["name","affiliation","affiliation_url","orcid_id"]}},"value":[{"type":"character","attributes":{},"value":["June Choe"]},{"type":"character","attributes":{},"value":["University of Pennsylvania Linguistics"]},{"type":"character","attributes":{},"value":["https://live-sas-www-ling.pantheon.sas.upenn.edu/"]},{"type":"character","attributes":{},"value":["0000-0002-0701-921X"]}]}]},{"type":"character","attributes":{},"value":["2023-12-04"]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["include-after-body","toc","self_contained","css"]}},"value":[{"type":"character","attributes":{},"value":["highlighting.html"]},{"type":"logical","attributes":{},"value":[true]},{"type":"logical","attributes":{},"value":[false]},{"type":"character","attributes":{},"value":["../../styles.css"]}]}]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["chunk_output_type"]}},"value":[{"type":"character","attributes":{},"value":["console"]}]},{"type":"character","attributes":{},"value":["preview.png"]}]}
</script>
<!--/radix_placeholder_rmarkdown_metadata-->

Expand Down Expand Up @@ -1534,7 +1534,7 @@
<!--radix_placeholder_front_matter-->

<script id="distill-front-matter" type="text/json">
{"title":"The many ways to (un)tidy-select","description":"Deconstructing {tidyselect} and building it back up","authors":[{"author":"June Choe","authorURL":"#","affiliation":"University of Pennsylvania Linguistics","affiliationURL":"https://live-sas-www-ling.pantheon.sas.upenn.edu/","orcidID":"0000-0002-0701-921X"}],"publishedDate":"2023-12-03T00:00:00.000-05:00","citationText":"Choe, 2023"}
{"title":"The many ways to (un)tidy-select","description":"Deconstructing {tidyselect} and building it back up","authors":[{"author":"June Choe","authorURL":"#","affiliation":"University of Pennsylvania Linguistics","affiliationURL":"https://live-sas-www-ling.pantheon.sas.upenn.edu/","orcidID":"0000-0002-0701-921X"}],"publishedDate":"2023-12-04T00:00:00.000-05:00","citationText":"Choe, 2023"}
</script>

<!--/radix_placeholder_front_matter-->
Expand All @@ -1559,7 +1559,7 @@ <h1>The many ways to (un)tidy-select</h1>
<div class="d-byline">
June Choe (University of Pennsylvania Linguistics)<a href="https://live-sas-www-ling.pantheon.sas.upenn.edu/" class="uri">https://live-sas-www-ling.pantheon.sas.upenn.edu/</a>

<br/>2023-12-03
<br/>2023-12-04
</div>

<div class="d-article">
Expand Down Expand Up @@ -1674,7 +1674,7 @@ <h3 id="tidy-select">tidy-select!</h3>
out &lt;- set_names(out, names(loc))
out
}
&lt;bytecode: 0x000002917a3967b8&gt;
&lt;bytecode: 0x0000012f8e6de148&gt;
&lt;environment: namespace:dplyr&gt;</code></pre>
</div>
<h3 id="tidy-select-1">tidy?-select</h3>
Expand Down Expand Up @@ -1831,7 +1831,7 @@ <h2 id="tidying-untidy-select">Tidying untidy-select</h2>
<pre><code> $math_expr
&lt;quosure&gt;
expr: ^x + 1
env: 0x000002917c379bd0
env: 0x0000012f8e27cec8

$columns
[1] &quot;x&quot; &quot;y&quot; &quot;z&quot;
Expand All @@ -1841,7 +1841,7 @@ <h2 id="tidying-untidy-select">Tidying untidy-select</h2>
1 1 2 3

$mask
&lt;environment: 0x000002917cbc2600&gt;
&lt;environment: 0x0000012f8e3332f0&gt;

$out
[1] 2</code></pre>
Expand Down Expand Up @@ -2111,10 +2111,10 @@ <h3 id="error-handling">2) Error handling</h3>
<p>General evaluation errors are distinguished by having a <code>$parent</code>:</p>
<div class="layout-chunk" data-layout="l-body">
<div class="sourceCode">
<pre class="sourceCode r"><code class="sourceCode r"><span><span class='va'>cnd_zero_selection</span> <span class='op'>&lt;-</span> <span class='fu'>rlang</span><span class='fu'>::</span><span class='fu'><a href='https://rlang.r-lib.org/reference/catch_cnd.html'>catch_cnd</a></span><span class='op'>(</span></span>
<pre class="sourceCode r"><code class="sourceCode r"><span><span class='va'>cnd_evaluation_error</span> <span class='op'>&lt;-</span> <span class='fu'>rlang</span><span class='fu'>::</span><span class='fu'><a href='https://rlang.r-lib.org/reference/catch_cnd.html'>catch_cnd</a></span><span class='op'>(</span></span>
<span> <span class='fu'><a href='https://tidyselect.r-lib.org/reference/eval_select.html'>eval_select</a></span><span class='op'>(</span><span class='va'>evaluation_error</span>, <span class='va'>df3</span><span class='op'>)</span></span>
<span><span class='op'>)</span></span>
<span><span class='va'>cnd_zero_selection</span><span class='op'>$</span><span class='va'>parent</span></span></code></pre>
<span><span class='va'>cnd_evaluation_error</span><span class='op'>$</span><span class='va'>parent</span></span></code></pre>
</div>
<pre><code> &lt;simpleError in eval_tidy(as_quosure(expr, env), context_mask): I&#39;m a bad expression!&gt;</code></pre>
</div>
Expand Down
Loading

0 comments on commit 0d6bf65

Please sign in to comment.