Closed AnneMTreasure closed 2 years ago
Edited the update_shiny.yml and DESCRIPTION file
update_shiny.yml
switched to ubuntu server (runs-on: ubuntu-latest
)update_shiny.yml
, edited the steps to use r-lib/actions/setup-r-dependencies@v2
, which installs all package dependencies defined in the DESCRIPTION fileupdate_shiny.yml
, also edited the setup R
script as per script on r-lib
GitHub
page above steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup R
uses: r-lib/actions/setup-r@v2
- name: Setup R Dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
update_shiny.yml
, deleted all the install.packages
script and added these packages to the DESCRIPTION fileterra
to the DESCRIPTION file - the GitHub Action error logs showed this package to be needed, but not installinglibrary(terra)
to the shiny app.R
on this webpage https://stackoverflow.com/questions/65860635/caching-github-actions-r-packages-or-otherwise-speeding-up-installation
This comment was useful (the advice in the second paragraph is maybe something to try)?
I believe next you would want to take advantage of r-lib/actions/setup-r-dependencies@v2 action, which will install all package dependencies defined in your DESCRIPTION file. setup-r-dependencies
This package features: Setting up a dependency cache using actions/cache. This should cut runtimes in half. Also I think the environment variable: R_COMPILE_AND_INSTALL_PACKAGES: never should be set which uses binaries.
GitHub Action working for weeks, suddenly failed to deploy Shiny app