Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinclude shinyMobile blog post #58

Merged
merged 11 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
posit-dev/r-shinylive
any::knitr
any::rmarkdown
any::downlit
any::xml2
any::shinyMobile
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get why I have to do this to make it work @christophsax. The shinylive apps needs shinyMobile as a dependency to work. The thing is that we talk about 2 different things: doing this will tell pak to install the R package in the runner R library. The shinylive apps need the wasm version which isn't the one we installed with pak (basically, it is provided by the webR wasm CRAN or any other custom CRAN with the help of https://github.com/r-wasm/rwasm). Do you have any idea @georgestagg?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats to the ✅ 🎉🎉🎉

cache-version: 2

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
/.quarto/
docs
.DS_Store

/.luarc.json
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Imports:
xml2,
rmarkdown,
shinylive
Remotes:
posit-dev/r-shinylive

Large diffs are not rendered by default.

33 changes: 1 addition & 32 deletions posts/2024-05-13-shinyMobile-2.0.0/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ categories:
format:
html:
code-fold: true
filters:
filters:
- shinylive
draft: true
---

![](logo.png){width=25% fig-align="center"}
Expand Down Expand Up @@ -270,12 +269,6 @@ By updating to the latest Framework7 version, we now benefit from a totally reva
#| components: [viewer]
#| column: screen-inset-shaded
#| viewerHeight: 800
webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/")
)

library(shiny)
library(shinyMobile)

Expand Down Expand Up @@ -890,12 +883,6 @@ This adds a description to the input (below its main content), as well as the ou
#| components: [viewer]
#| column: screen-inset-shaded
#| viewerHeight: 800
webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/")
)

library(shiny)
library(shinyMobile)

Expand Down Expand Up @@ -1129,12 +1116,6 @@ Moreover, we added a new way to pass options to `f7Radio()` and `f7CheckboxGroup
#| components: [viewer]
#| column: screen-inset-shaded
#| viewerHeight: 800
webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/")
)

library(shiny)
library(shinyMobile)

Expand Down Expand Up @@ -1255,12 +1236,6 @@ This is ideal, for instance, to select files within multiple folders, as an alte
#| components: [viewer]
#| column: screen-inset-shaded
#| viewerHeight: 800
webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/")
)

library(shiny)
library(shinyMobile)

Expand Down Expand Up @@ -1390,12 +1365,6 @@ Shiny does not provide HTML forms handling out of the box (a [form](https://www.
#| column: screen-inset-shaded
#| viewerHeight: 800
#| viewerWidth: 390
webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/")
)

library(shiny)
library(shinyMobile)

Expand Down