Skip to content

Commit 3f6f724

Browse files
author
jsdearbo
committed
Remove renv entirely — let rsconnect use packrat fallback with correct options(repos)
1 parent db91dc0 commit 3f6f724

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@ jobs:
2323
- name: Install system dependencies for R packages
2424
run: sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
2525

26-
- name: Build renv lockfile with correct CRAN mirror
27-
run: |
28-
Rscript -e "
29-
app_dir <- normalizePath('shiny_apps/gwat_portfolio')
30-
options(repos = c(CRAN = 'https://cloud.r-project.org'))
31-
install.packages('renv', repos = 'https://cloud.r-project.org')
32-
writeLines(c(
33-
'Package: gwatrnaseq',
34-
'Title: gWAT RNA-seq Explorer',
35-
'Version: 1.0.0',
36-
'Imports: shiny, plotly, dplyr, stringr'
37-
), file.path(app_dir, 'DESCRIPTION'))
38-
renv::init(project = app_dir, bare = TRUE, restart = FALSE)
39-
renv::install(c('shiny', 'plotly', 'dplyr', 'stringr'), prompt = FALSE)
40-
renv::snapshot(project = app_dir, type = 'explicit', prompt = FALSE)
41-
"
42-
4326
- name: Deploy to shinyapps.io
4427
env:
4528
SHINYAPPS_NAME: ${{ secrets.SHINYAPPS_NAME }}
@@ -48,7 +31,8 @@ jobs:
4831
run: |
4932
Rscript -e "
5033
options(repos = c(CRAN = 'https://cloud.r-project.org'))
51-
install.packages('rsconnect', repos = 'https://cloud.r-project.org')
34+
install.packages(c('rsconnect', 'shiny', 'plotly', 'dplyr', 'stringr'),
35+
repos = 'https://cloud.r-project.org', Ncpus = 2)
5236
rsconnect::setAccountInfo(
5337
name = Sys.getenv('SHINYAPPS_NAME'),
5438
token = Sys.getenv('SHINYAPPS_TOKEN'),

0 commit comments

Comments
 (0)