DHCSSza / stakeholder_map

A repository for the SADiLaR Stakeholder Map Project, which is an investigation of the Digital Humanities (DH) and Computational Social Sciences (CSS) landscape in South Africa.
MIT License
2 stars 2 forks source link

GA failure to deploy shiny app issue #36

Closed AnneMTreasure closed 2 years ago

AnneMTreasure commented 2 years ago

GitHub Action working for weeks, suddenly failed to deploy Shiny app

AnneMTreasure commented 2 years ago

Edited the update_shiny.yml and DESCRIPTION file

    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
AnneMTreasure commented 2 years ago

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.

AnneMTreasure commented 2 years ago

GitHub action failing to deploy Shiny app