insightsengineering / insightsengineering/teal.gallery

cannot run gallery apps according to `README`

Open
#89 10 comments 0 reactions 1 assignee Claimed by @vedhav View on GitHub
bug core
Dominant language
R
Stars
40
Forks
13
Avg merge
1d 19h
Merged PRs (30d)
2

Description

The `README` for `teal.gallery` says:

> Running the restore_and_run("APP_NAME") will run the APP_NAME by restoring the packages using [renv](https://rstudio.github.io/renv/)
`restore_and_run("basic-teal")`

This does not work. First, the link to `sourceme.R` is 404, the file has been moved to `teal.galley/_internal/utils`.
Second, this happens:
```
> source("./_internal/utils/sourceme.R")
> restore_and_run("basic-teal")
Downloading https://github.com/insightsengineering/teal.gallery/archive/HEAD.tar.gz
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
- Updated 1 record in "/tmp/RtmpKoQX1F/shinyappae535d39f48d/teal.gallery-6cbee27c2e9c63e4b549a36170c109ad604bfc47/basic-teal/renv.lock".
# Bootstrapping renv 1.0.3 ---------------------------------------------------
- Downloading renv ... FAILED
Error in h(simpleError(msg, call)) : failed to download:
All download methods failed
```

I can run the app with
```
(apps <- list.files(pattern = "app\\.R", recursive = TRUE))
shiny::shinyAppFile(apps[1], options = list("launch.browser" = TRUE))
```
to use my won environment but that's not the point, is it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.