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 Sep 18, 2023
1 parent 6b5f984 commit 794227f
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
667c3a7a
cd21a8f1
7 changes: 6 additions & 1 deletion materials/d1-03-performance/codealong-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@
<h2 id="toc-title">On this page</h2>

<ul>
<li><a href="#requirements" id="toc-requirements" class="nav-link active" data-scroll-target="#requirements">Requirements</a></li>
<li><a href="#access-instructions" id="toc-access-instructions" class="nav-link active" data-scroll-target="#access-instructions">Access Instructions</a></li>
<li><a href="#requirements" id="toc-requirements" class="nav-link" data-scroll-target="#requirements">Requirements</a></li>
<li><a href="#plan" id="toc-plan" class="nav-link" data-scroll-target="#plan">Plan</a></li>
<li><a href="#solution" id="toc-solution" class="nav-link" data-scroll-target="#solution">Solution</a></li>
</ul>
Expand All @@ -181,6 +182,10 @@ <h1 class="title">Asynchronous Processing of LEGO Model Prediction</h1>

</header>

<section id="access-instructions" class="level2">
<h2 class="anchored" data-anchor-id="access-instructions">Access Instructions</h2>
<p>The project used for this particular exercise is hosted on <a href="https://posit.cloud">Posit Cloud</a> in this <a href="https://posit.cloud/spaces/400774/join?access_code=DDgV_peF5WCCCpB5JHjQtMN2aHByWoNF0k5p8Wp7">space</a>. The project for this exercise is called <strong>Performance Code-along 2</strong>.</p>
</section>
<section id="requirements" class="level2">
<h2 class="anchored" data-anchor-id="requirements">Requirements</h2>
<p>The current version of our Shiny application contains a module for generating predictions of the number of LEGO parts in a set using the number of unique colors and number of unique part categories. The API is executed and processed using the <a href="https://httr2.r-lib.org/"><code>{httr2}</code></a> package. Here is the function wrapping the API execution:</p>
Expand Down
2 changes: 1 addition & 1 deletion materials/d1-03-performance/ex-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h1 class="title">Profile the LEGO Bricks App</h1>

<section id="access-instructions" class="level2">
<h2 class="anchored" data-anchor-id="access-instructions">Access Instructions</h2>
<p>The project used for this particular exercise is hosted on <a href="https://posit.cloud">Posit Cloud</a> in this <a href="https://posit.cloud/spaces/400774/join?access_code=DDgV_peF5WCCCpB5JHjQtMN2aHByWoNF0k5p8Wp7">space</a>. The project for this exercise is called <strong>performance-exercise1</strong>.</p>
<p>The project used for this particular exercise is hosted on <a href="https://posit.cloud">Posit Cloud</a> in this <a href="https://posit.cloud/spaces/400774/join?access_code=DDgV_peF5WCCCpB5JHjQtMN2aHByWoNF0k5p8Wp7">space</a>. The project for this exercise is called <strong>Performance Exercise 1</strong>.</p>
</section>
<section id="setup" class="level2">
<h2 class="anchored" data-anchor-id="setup">Setup</h2>
Expand Down
2 changes: 1 addition & 1 deletion materials/d1-04-loadtesting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ <h2>The log</h2>
<span id="cb2-12"><a href="#cb2-12"></a><span class="dt">{</span><span class="st">"type"</span><span class="dt">:</span><span class="st">"WS_CLOSE"</span><span class="op">,</span><span class="st">"begin"</span><span class="dt">:</span><span class="st">"2023-09-07T13:04:35.561Z"</span><span class="dt">}</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="fragment">
<div id="fig-539a35d47e664c97a50115a146a7f1bd-4" class="absolute quarto-figure quarto-figure-center" width="500px" data-right="250" height="500px" data-top="50" style="top: 50px; right: 250px; width: 500px; height: 500px; ">
<div id="fig-539a35d47e664c97a50115a146a7f1bd-4" class="absolute quarto-figure quarto-figure-center" data-right="250" data-top="50" height="500px" width="500px" style="top: 50px; right: 250px; width: 500px; height: 500px; ">
<figure class="quarto-float quarto-float-fig">
<div>
<img data-src="assets/img/confused_minifig.jpg" id="fig-539a35d47e664c97a50115a146a7f1bd-4" class="absolute" style="top: 50px; right: 250px; width: 500px; height: 500px; ">
Expand Down
16 changes: 8 additions & 8 deletions schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,63 +190,63 @@ <h1 class="title">Workshop Schedule</h1>
</tr>
</thead>
<tbody class="list">
<tr data-index="0" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Welcome &amp; Setup" data-listing-filename-sort="d1-01-welcome.qmd">
<tr data-index="0" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Welcome &amp; Setup" data-listing-filename-sort="d1-01-welcome.qmd">
<td>
<span class="listing-subtitle">9:00 - 9:30</span>
</td>
<td>
<a href="./units/d1-01-welcome.html" class="title listing-title">Welcome &amp; Setup</a>
</td>
</tr>
<tr data-index="1" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="18" data-listing-title-sort="Application Structure" data-listing-filename-sort="d1-02-structure.qmd">
<tr data-index="1" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="18" data-listing-title-sort="Application Structure" data-listing-filename-sort="d1-02-structure.qmd">
<td>
<span class="listing-subtitle">9:30 - 10:30</span>
</td>
<td>
<a href="./units/d1-02-structure.html" class="title listing-title">Application Structure</a>
</td>
</tr>
<tr data-index="2" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="34" data-listing-title-sort="Coffee &amp; refreshments break" data-listing-filename-sort="d1-02b-break.qmd">
<tr data-index="2" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="34" data-listing-title-sort="Coffee &amp; refreshments break" data-listing-filename-sort="d1-02b-break.qmd">
<td>
<span class="listing-subtitle">10:30 - 11:00</span>
</td>
<td>
<a href="./units/d1-02b-break.html" class="title listing-title">Coffee &amp; refreshments break</a>
</td>
</tr>
<tr data-index="3" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Performance" data-listing-filename-sort="d1-03-performance.qmd">
<tr data-index="3" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Performance" data-listing-filename-sort="d1-03-performance.qmd">
<td>
<span class="listing-subtitle">11:00 - 12:30</span>
</td>
<td>
<a href="./units/d1-03-performance.html" class="title listing-title">Performance</a>
</td>
</tr>
<tr data-index="4" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="108" data-listing-title-sort="Lunch break" data-listing-filename-sort="d1-03b-lunch.qmd">
<tr data-index="4" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="108" data-listing-title-sort="Lunch break" data-listing-filename-sort="d1-03b-lunch.qmd">
<td>
<span class="listing-subtitle">12:30 - 13:30</span>
</td>
<td>
<a href="./units/d1-03b-lunch.html" class="title listing-title">Lunch break</a>
</td>
</tr>
<tr data-index="5" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Load Testing" data-listing-filename-sort="d1-04-loadtesting.qmd">
<tr data-index="5" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Load Testing" data-listing-filename-sort="d1-04-loadtesting.qmd">
<td>
<span class="listing-subtitle">13:30 - 15:00</span>
</td>
<td>
<a href="./units/d1-04-loadtesting.html" class="title listing-title">Load Testing</a>
</td>
</tr>
<tr data-index="6" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="34" data-listing-title-sort="Coffee &amp; refreshments break" data-listing-filename-sort="d1-04b-break.qmd">
<tr data-index="6" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="34" data-listing-title-sort="Coffee &amp; refreshments break" data-listing-filename-sort="d1-04b-break.qmd">
<td>
<span class="listing-subtitle">15:00 - 15:30</span>
</td>
<td>
<a href="./units/d1-04b-break.html" class="title listing-title">Coffee &amp; refreshments break</a>
</td>
</tr>
<tr data-index="7" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695043780696" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Deployment &amp; Administration" data-listing-filename-sort="d1-05-deploy-admin.qmd">
<tr data-index="7" data-listing-date-sort="1694995200000" data-listing-file-modified-sort="1695044561076" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="13" data-listing-title-sort="Deployment &amp; Administration" data-listing-filename-sort="d1-05-deploy-admin.qmd">
<td>
<span class="listing-subtitle">15:30 - 17:00</span>
</td>
Expand Down
17 changes: 12 additions & 5 deletions search.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"href": "materials/d1-03-performance/ex-1.html",
"title": "Profile the LEGO Bricks App",
"section": "",
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called performance-exercise1."
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called Performance Exercise 1."
},
{
"objectID": "materials/d1-03-performance/ex-1.html#access-instructions",
"href": "materials/d1-03-performance/ex-1.html#access-instructions",
"title": "Profile the LEGO Bricks App",
"section": "",
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called performance-exercise1."
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called Performance Exercise 1."
},
{
"objectID": "materials/d1-03-performance/ex-1.html#setup",
Expand Down Expand Up @@ -858,14 +858,21 @@
"href": "materials/d1-03-performance/codealong-2.html",
"title": "Asynchronous Processing of LEGO Model Prediction",
"section": "",
"text": "The current version of our Shiny application contains a module for generating predictions of the number of LEGO parts in a set using the number of unique colors and number of unique part categories. The API is executed and processed using the {httr2} package. Here is the function wrapping the API execution:\n\n#' @importFrom httr2 request req_body_json req_perform resp_body_json\nrun_prediction &lt;- function(df, endpoint_url, back_transform = TRUE, round_result = TRUE) {\n # create request object\n req &lt;- request(endpoint_url)\n\n # perform request\n resp &lt;- req |&gt;\n req_body_json(df) |&gt;\n req_perform()\n\n # extract predictions from response\n pred_values &lt;- resp_body_json(resp)$.pred |&gt; unlist()\n\n # back-transform log10 value of predicted number of parts if requested\n if (back_transform) {\n pred_values &lt;- 10 ^ pred_values\n }\n\n # round result up to nearest integer if requested\n if (round_result) pred_values &lt;- ceiling(pred_values)\n\n # append predictions to supplied data frame\n dplyr::mutate(df, predicted_num_parts = pred_values)\n}\n\nUnfortunately, the prediction API call takes a bit of time to execute due to some extremely sophisticated processing 😅. As a result, any interactions within the application will not be processed until the prediction call completes. Our goal is to convert the prediction processing from synchronous to asynchronous using {crew}"
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called Performance Code-along 2."
},
{
"objectID": "materials/d1-03-performance/codealong-2.html#access-instructions",
"href": "materials/d1-03-performance/codealong-2.html#access-instructions",
"title": "Asynchronous Processing of LEGO Model Prediction",
"section": "",
"text": "The project used for this particular exercise is hosted on Posit Cloud in this space. The project for this exercise is called Performance Code-along 2."
},
{
"objectID": "materials/d1-03-performance/codealong-2.html#requirements",
"href": "materials/d1-03-performance/codealong-2.html#requirements",
"title": "Asynchronous Processing of LEGO Model Prediction",
"section": "",
"text": "The current version of our Shiny application contains a module for generating predictions of the number of LEGO parts in a set using the number of unique colors and number of unique part categories. The API is executed and processed using the {httr2} package. Here is the function wrapping the API execution:\n\n#' @importFrom httr2 request req_body_json req_perform resp_body_json\nrun_prediction &lt;- function(df, endpoint_url, back_transform = TRUE, round_result = TRUE) {\n # create request object\n req &lt;- request(endpoint_url)\n\n # perform request\n resp &lt;- req |&gt;\n req_body_json(df) |&gt;\n req_perform()\n\n # extract predictions from response\n pred_values &lt;- resp_body_json(resp)$.pred |&gt; unlist()\n\n # back-transform log10 value of predicted number of parts if requested\n if (back_transform) {\n pred_values &lt;- 10 ^ pred_values\n }\n\n # round result up to nearest integer if requested\n if (round_result) pred_values &lt;- ceiling(pred_values)\n\n # append predictions to supplied data frame\n dplyr::mutate(df, predicted_num_parts = pred_values)\n}\n\nUnfortunately, the prediction API call takes a bit of time to execute due to some extremely sophisticated processing 😅. As a result, any interactions within the application will not be processed until the prediction call completes. Our goal is to convert the prediction processing from synchronous to asynchronous using {crew}"
"section": "Requirements",
"text": "Requirements\nThe current version of our Shiny application contains a module for generating predictions of the number of LEGO parts in a set using the number of unique colors and number of unique part categories. The API is executed and processed using the {httr2} package. Here is the function wrapping the API execution:\n\n#' @importFrom httr2 request req_body_json req_perform resp_body_json\nrun_prediction &lt;- function(df, endpoint_url, back_transform = TRUE, round_result = TRUE) {\n # create request object\n req &lt;- request(endpoint_url)\n\n # perform request\n resp &lt;- req |&gt;\n req_body_json(df) |&gt;\n req_perform()\n\n # extract predictions from response\n pred_values &lt;- resp_body_json(resp)$.pred |&gt; unlist()\n\n # back-transform log10 value of predicted number of parts if requested\n if (back_transform) {\n pred_values &lt;- 10 ^ pred_values\n }\n\n # round result up to nearest integer if requested\n if (round_result) pred_values &lt;- ceiling(pred_values)\n\n # append predictions to supplied data frame\n dplyr::mutate(df, predicted_num_parts = pred_values)\n}\n\nUnfortunately, the prediction API call takes a bit of time to execute due to some extremely sophisticated processing 😅. As a result, any interactions within the application will not be processed until the prediction call completes. Our goal is to convert the prediction processing from synchronous to asynchronous using {crew}"
},
{
"objectID": "materials/d1-03-performance/codealong-2.html#plan",
Expand Down
Loading

0 comments on commit 794227f

Please sign in to comment.