diff --git a/.nojekyll b/.nojekyll index bda8739..2b1ccf4 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -42f3f7e9 \ No newline at end of file +d22ad08e \ No newline at end of file diff --git a/Entanglement.qmd b/Entanglement.qmd index db6f959..c671548 100644 --- a/Entanglement.qmd +++ b/Entanglement.qmd @@ -1,6 +1,6 @@ -# Entanglement {#sec-entanglement} +# Dependency hell {#sec-entanglement} -[Tools to avoid [dependency hell](https://en.wikipedia.org/wiki/Dependency_hell)]{style="font-size: 1.40em; font-style: italic"} +[Mastering dependency management]{style="font-size: 1.40em; font-style: italic"} ```{r} #| eval: true @@ -23,7 +23,59 @@ co_box( ) ``` -This chapter covers a few packages and tools to help explore, understand and keep track of your app-package dependencies. It's not likely you'll build an application that *only* relies on `shiny`, so it's important to 1) know the packages and versions required for your application to function, and 2) ensure these packages are included in the correct `DESCRIPTION` field (or `NAMESPACE`). +This chapter covers a few packages and tools to help explore, understand and keep track of your app-package dependencies.[^depends-hell] It's not likely you'll build an application that *only* relies on `shiny`, so it's important to 1) know the packages and versions required for your application to function, and 2) ensure these packages are included in the correct `DESCRIPTION` field (or `NAMESPACE`). + +[^depends-hell]: Try to avoid [dependency hell](https://en.wikipedia.org/wiki/Dependency_hell). + +:::: {.callout-tip collapse='true' appearance='simple'} + +## [Accessing applications]{style='font-weight: bold; font-size: 1.15em;'} + +::: {style='font-size: 0.95em; color: #282b2d;'} + +I've created the [`shinypak` R package](https://mjfrigaard.github.io/shinypak/) In an effort to make each section accessible and easy to follow: + +Install `shinypak` using `pak` (or `remotes`): + +```{r} +#| code-fold: false +#| message: false +#| warning: false +#| eval: false +# install.packages('pak') +pak::pak('mjfrigaard/shinypak') +``` + +Review the chapters in each section: + +```{r} +#| code-fold: false +#| message: false +#| warning: false +#| collapse: true +library(shinypak) +list_apps(regex = '^06') +``` + +Launch the app: + +```{r} +#| code-fold: false +#| eval: false +launch(app = "") +``` + +Download the app: + +```{r} +#| code-fold: false +#| eval: false +get_app(app = "") +``` + +::: + +:::: ## Exploring dependencies diff --git a/app_data.html b/app_data.html index 4b51890..ca7bc07 100644 --- a/app_data.html +++ b/app_data.html @@ -8,7 +8,7 @@ -Shiny App-Packages - 24  App data +Shiny App-Packages - 26  App data @@ -32,7 +66,7 @@ - + @@ -82,7 +116,7 @@ - + + +

Review the chapters in each section:

+
+
library(shinypak)
+list_apps(regex = 'css')
+## # A tibble: 1 × 2
+##   branch last_updated       
+##   <chr>  <dttm>             
+## 1 15_css 2024-02-15 06:15:43
+
+

Launch an app with launch()

+
+
launch(app = "15_css")
+
+

Download an app with get_app()

+
+
get_app(app = "15_css")
+
+ + + + @@ -902,13 +982,13 @@

diff --git a/data.html b/data.html index 07751f0..cf14dc5 100644 --- a/data.html +++ b/data.html @@ -280,8 +280,8 @@ @@ -438,17 +450,11 @@ F  Comparisons - - @@ -509,26 +515,8 @@

-
-
-
- -
-
-Contribute -
-
-
-
-
-
-

See a typo, error, or something missing? Please open an issue on GitHub

-
-
-
-
-