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

Question: how to use custom repos on shinylive.io #189

Open
pawelru opened this issue Nov 11, 2024 · 1 comment
Open

Question: how to use custom repos on shinylive.io #189

pawelru opened this issue Nov 11, 2024 · 1 comment

Comments

@pawelru
Copy link

pawelru commented Nov 11, 2024

I was thinking that it is webr_pkg_repos option value but apparently it does not work in shinylive.io.

A minimal example:

options(webr_pkg_repos = c("r-universe" = "https://pharmaverse.r-universe.dev", getOption("webr_pkg_repos")))
library(teal.code)
packageVersion("teal.code")

In webR REPL app it works correctly:
Image

However, in shinylive.io it does not:
Image
sharable link

(I am sorry if this is not appropriate repo. If that's the case - please guide me where should I open this)

@georgestagg georgestagg transferred this issue from posit-dev/r-shinylive Nov 11, 2024
@georgestagg
Copy link
Collaborator

Thanks for reporting this! Related: r-wasm/actions#18

For the moment, there's a workaround given in that thread. It's not ideal but it might be able to get you up and running for now.

webr::unmount("/usr/lib/R/library/teal.code")
webr::install(
  "teal.code",
  repos = c("https://pharmaverse.r-universe.dev/", "https://repo.r-wasm.org")
)

Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants