Skip to content

demo for warmstarting weights #104

demo for warmstarting weights

demo for warmstarting weights #104

Workflow file for this run

# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- main
pull_request:
branches:
- main
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2-branch
with:
Ncpus: 4
- uses: r-lib/actions/setup-tinytex@v2-branch
- uses: r-lib/actions/setup-pandoc@v2-branch
- name: "[Custom block] [Cache] Prepare weekly timestamp for cache"
id: date
run: echo "::set-output name=datem::$(date '+%Y-%m')"
- name: Cache R packages
uses: pat-s/always-upload-cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: rcache-${{steps.date.outputs.datem}}
restore-keys: ${{steps.date.outputs.datem}}
- name: Cache python
uses: pat-s/always-upload-cache@v2
with:
path: ~/.cache/pip
key: pycache-${{steps.date.outputs.datem}}
restore-keys: pycache-${{steps.date.outputs.datem}}
- name: Install linux prerequesites
run: |
sudo apt-get install libxml2-dev libcurl4-openssl-dev
- name: Install dependencies - Keras & TF
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
reticulate::install_miniconda(update = TRUE)
reticulate::conda_create('r-reticulate', packages = c('python==3.10'))
keras::install_keras(version = "2.8.0", tensorflow = "2.8.0", extra_packages = c('IPython', 'requests', 'certifi', 'urllib3', 'six', 'tensorflow_probability==0.16.0', 'protobuf==3.20.1'))
shell: Rscript {0}
- name: Install dependencies - Tutorial (Vignette)
run: |
install.packages(c("ggplot2", "reshape2", "MASS", "gamlss.data", "distr"))
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args=c("--as-cran", "--no-build-vignettes"), build_args=c("--no-build-vignettes"), error_on="error")
shell: Rscript {0}