Skip to content

Commit

Permalink
Merge pull request #240 from davidycliao/0.0.7
Browse files Browse the repository at this point in the history
0.0.7
  • Loading branch information
davidycliao authored Dec 29, 2024
2 parents 47d348a + fd90cf9 commit 9f1b673
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 610 deletions.
165 changes: 0 additions & 165 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,171 +5,6 @@
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
# on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
#
# name: R-CMD-check
#
# jobs:
# R-CMD-check:
# runs-on: ${{ matrix.config.os }}
#
# name: ${{ matrix.config.os }} (${{ matrix.config.r }})
#
# strategy:
# fail-fast: false
# matrix:
# config:
# - {os: macos-latest, r: 'release'}
# - {os: windows-latest, r: 'release'}
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
# - {os: ubuntu-latest, r: 'release'}
# env:
# GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
# R_KEEP_PKG_SOURCE: yes
#
# steps:
# - uses: actions/checkout@v2
#
# - uses: r-lib/actions/setup-pandoc@v2
#
#
# - name: Setup Python (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'
#
# - name: Install Python venv and dependencies (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# run: |
# sudo apt-get update
# sudo apt-get install -y python3-venv
# python -m venv ~/.venv
# echo "RETICULATE_PYTHON=~/.venv/bin/python" >> $GITHUB_ENV
# source ~/.venv/bin/activate
# - uses: r-lib/actions/setup-r@v2
# with:
# r-version: ${{ matrix.config.r }}
# http-user-agent: ${{ matrix.config.http-user-agent }}
# use-public-rspm: true
#
# - name: Install reticulate (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# run: |
# Rscript -e "install.packages('reticulate', repos = 'https://cloud.r-project.org/')"
#
# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::rcmdcheck
# needs: check
#
# - uses: r-lib/actions/check-r-package@v2
# with:
# upload-snapshots: true
#
#
# on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
#
# name: R-CMD-check
#
# jobs:
# R-CMD-check:
# runs-on: ${{ matrix.config.os }}
#
# name: ${{ matrix.config.os }} (${{ matrix.config.r }})
#
# strategy:
# fail-fast: false
# matrix:
# config:
# - {os: macos-latest, r: 'release'}
# - {os: windows-latest, r: 'release'}
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
# - {os: ubuntu-latest, r: 'release'}
# env:
# GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
# R_KEEP_PKG_SOURCE: yes
#
# steps:
# - uses: actions/checkout@v2
#
# - uses: r-lib/actions/setup-pandoc@v2
#
# - name: Setup Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.9' # Ensure Python 3.x is being used
#
# - name: Check Python Version
# run: |
# python --version
#
# - name: Install Python dependencies
# run: |
# python -m pip install --upgrade pip
# pip install flair
#
# - name: Setup Python (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# uses: actions/setup-python@v2
# with:
# python-version: '3.10.13'
#
# - name: Install Python venv and dependencies (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# run: |
# sudo apt-get update
# sudo apt-get install -y python3-venv
# python -m venv ~/.venv
# echo "RETICULATE_PYTHON=~/.venv/bin/python" >> $GITHUB_ENV
# source ~/.venv/bin/activate
#
# - uses: r-lib/actions/setup-r@v2
# with:
# r-version: ${{ matrix.config.r }}
# http-user-agent: ${{ matrix.config.http-user-agent }}
# use-public-rspm: true
#
# - name: Install reticulate (Only on ubuntu-latest)
# if: matrix.config.os == 'ubuntu-latest'
# run: |
# Rscript -e "install.packages('reticulate', repos = 'https://cloud.r-project.org/')"
#
# - name: Install Pandoc (Only on Windows)
# if: matrix.config.os == 'windows-latest'
# run: |
# choco install pandoc
#
# - name: Install Python dependencies (Only on Windows)
# if: matrix.config.os == 'windows-latest'
# run: |
# python -m pip install --upgrade pip
# pip install scipy==1.12.0 # test
# pip install flair
#
# - name: Install Python dependencies (Only on macOS)
# if: matrix.config.os == 'macos-latest'
# run: |
# python -m pip install --upgrade pip
# pip install scipy==1.12.0 # test
# pip install flair
#
# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: rcmdcheck
#
# # - uses: r-lib/actions/check-r-package@v2
# # with:
# # upload-snapshots: true


name: R-CMD-check

Expand Down
174 changes: 0 additions & 174 deletions .github/workflows/r_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,180 +5,6 @@
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
# name: R-MacOS
#
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
#
# permissions:
# contents: read
#
# jobs:
# build:
# runs-on: macos-latest
#
# strategy:
# matrix:
# r-version: ['4.4.0', '4.3.2']
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Update Homebrew
# run: |
# brew update
#
# - name: Install pandoc
# run: |
# for i in {1..3}; do
# brew install pandoc && break || sleep 15
# done
#
# - name: Install gfortran and configure Makevars
# run: |
# brew install gcc
# mkdir -p ~/.R
# touch ~/.R/Makevars
# echo "FC=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars
# echo "F77=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars
# echo "FLIBS=-L$(brew --prefix)/lib/gcc/current -lgfortran -lquadmath -lm" >> ~/.R/Makevars
# echo "LDFLAGS=-L$(brew --prefix)/lib/gcc/current" >> ~/.R/Makevars
#
# - name: Set up R ${{ matrix.r-version }}
# uses: r-lib/actions/setup-r@v2
# with:
# r-version: ${{ matrix.r-version }}
#
# - name: Install R dependencies
# run: |
# Rscript -e "install.packages(c('remotes', 'rcmdcheck', 'reticulate', 'renv', 'knitr', 'rmarkdown', 'lsa', 'purrr', 'testthat', 'htmltools'), repos='https://cran.r-project.org')"
# Rscript -e "if (getRversion() >= '4.4.0') remotes::install_version('Matrix', version = '1.5.3') else install.packages('Matrix', type = 'binary')"
# Rscript -e "remotes::install_version('htmltools', version = '0.5.8')"
# Rscript -e "renv::restore()"
#
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10.x'
#
# - name: Install Python virtualenv
# run: pip install virtualenv
#
# - name: Create Python virtual environment
# run: virtualenv flair_env
#
# - name: Install Python dependencies in virtual environment
# run: |
# source flair_env/bin/activate
# pip install --upgrade pip
# pip install scipy==1.12.0
# pip install flair
#
# - name: Remove Python cache files
# run: find . -name '*.pyc' -delete
#
# - name: Check (with virtual environment)
# run: |
# source flair_env/bin/activate
# R CMD build --no-build-vignettes .
# shell: bash
# name: R-MacOS
#
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
#
# permissions:
# contents: read
#
# jobs:
# build:
# runs-on: macos-latest
# strategy:
# matrix:
# r-version: ['4.4.0', '4.3.2']
# fail-fast: false
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Update Homebrew
# run: brew update
#
# - name: Install pandoc
# run: |
# for i in {1..3}
# do
# brew install pandoc && break || sleep 15
# done
#
# - name: Install gfortran and configure Makevars
# run: |
# brew install gcc
# mkdir -p ~/.R
# touch ~/.R/Makevars
# echo "FC=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars
# echo "F77=$(brew --prefix)/bin/gfortran" >> ~/.R/Makevars
# echo "FLIBS=-L$(brew --prefix)/lib/gcc/current -lgfortran -lquadmath -lm" >> ~/.R/Makevars
# echo "LDFLAGS=-L$(brew --prefix)/lib/gcc/current" >> ~/.R/Makevars
#
# - name: Set up R ${{ matrix.r-version }}
# uses: r-lib/actions/setup-r@v2
# with:
# r-version: ${{ matrix.r-version }}
#
# - name: Install R dependencies
# run: |
# # 基礎包安裝
# Rscript -e 'install.packages(c("remotes", "rcmdcheck", "reticulate", "renv", "knitr", "rmarkdown", "lsa", "purrr", "testthat"), repos="https://cran.r-project.org")'
#
# # 根據 R 版本有條件地安裝 Matrix
# Rscript -e '
# if (getRversion() >= "4.4.0") {
# install.packages("Matrix")
# } else {
# remotes::install_version("Matrix", version = "1.5.1", repos = "https://cran.r-project.org")
# }
# '
#
# # 安裝指定版本的 htmltools
# Rscript -e 'remotes::install_version("htmltools", version = "0.5.8")'
#
# # 最後執行 renv::restore()
# Rscript -e 'renv::restore()'
#
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.10.x'
#
# - name: Install Python virtualenv
# run: pip install virtualenv
#
# - name: Create Python virtual environment
# run: virtualenv flair_env
#
# - name: Install Python dependencies in virtual environment
# run: |
# source flair_env/bin/activate
# pip install --upgrade pip
# pip install scipy==1.12.0
# pip install flair
#
# - name: Remove Python cache files
# run: find . -name '*.pyc' -delete
#
# - name: Check (with virtual environment)
# run: |
# source flair_env/bin/activate
# R CMD build --no-build-vignettes .
# shell: bash


name: R-MacOS

Expand Down
Loading

0 comments on commit 9f1b673

Please sign in to comment.