Skip to content

starting container for alpine linux with R, python3, Tcl and Tk packa… #56

starting container for alpine linux with R, python3, Tcl and Tk packa…

starting container for alpine linux with R, python3, Tcl and Tk packa… #56

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['4.1.1']
env:
version: 0.2.0
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- name: Install X11 dependencies on MacOS
if: runner.os == 'macOS'
run: |
brew install xquartz
brew install graphviz
brew install plantuml
export DISPLAY=:99.0
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: install R package for vignette building
run: |
wget https://github.com/mittelmark/pantcl4r/files/12549351/pantcl4r_0.2.0.tar.gz
R CMD INSTALL pantcl4r_0.2.0.tar.gz
rm pantcl4r_0.2.0.tar.gz
version=0.2.0
- name: Install R package dependencies and check package
run: |
install.packages(c("remotes", "rcmdcheck","tcltk"));
remotes::install_deps(dependencies = TRUE);
tools:::.build_packages(".");
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error");
version=tools:::.get_package_metadata(".")[["Version"]]
pkg=tools:::.get_package_metadata(".")[["Package"]]
install.packages(paste(pkg,"_",version,".tar.gz",sep=""),repos=NULL)
shell: Rscript {0}
- name: Upload package build
uses: actions/upload-artifact@v3
with:
name: pantcl4r_${{ env.version }}.tar.gz
path: pantcl4r_${{ env.version }}.tar.gz