Skip to content

Remove R vs Julia transformation recommendations and fix KDE plot #19

Remove R vs Julia transformation recommendations and fix KDE plot

Remove R vs Julia transformation recommendations and fix KDE plot #19

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
- master
schedule:
- cron: '5 4 * * 1'
pull_request:
branches:
- main
- master
merge_group:
workflow_dispatch:
name: R-CMD-check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
R-CMD-check:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
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: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
NOT_CRAN: true
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
- name: Cache Julia packages
uses: julia-actions/cache@v2
with:
cache-name: julia-cache-artifacts
cache-compiled: true
- uses: r-lib/actions/setup-pandoc@v2
- 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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::.
needs: check
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: ""
- name: Link conda for Julia (Unix)
if: runner.os != 'Windows'
run: |
mkdir -p "$HOME/.julia/conda/3"
ln -sf "$CONDA" "$HOME/.julia/conda/3/$(uname -m)"
shell: bash
- name: Link conda for Julia (Windows)
if: runner.os == 'Windows'
run: |
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.julia\conda\3"
New-Item -ItemType Junction -Path "$env:USERPROFILE\.julia\conda\3\x86_64" -Target $env:CONDA
shell: pwsh
- name: Install JuliaCall dependencies (Unix)
if: runner.os != 'Windows'
run: |
export R_HOME=$(R RHOME)
julia -e 'ENV["R_HOME"] = raw"'"$R_HOME"'"; using Pkg; Pkg.add("Suppressor"); Pkg.add("RCall"); Pkg.build("RCall")'
shell: bash
- name: Install JuliaCall dependencies (Windows)
if: runner.os == 'Windows'
run: |
$env:R_HOME = (& R.exe RHOME | Out-String).Trim()
julia -e "ENV[`"R_HOME`"] = raw`"$env:R_HOME`"; using Pkg; Pkg.add(`"Suppressor`"); Pkg.add(`"RCall`"); Pkg.build(`"RCall`")"
shell: pwsh
- name: Preload Julia's libunwind (Linux workaround)
if: runner.os == 'Linux'
run: |
# Workaround for JuliaCall issue #238
# Ubuntu's libunwind 1.6.2 has bugs. Preload Julia's own libunwind instead.
JULIA_LIBUNWIND=$(find $(julia -e 'print(Sys.BINDIR)')/../lib/julia -name "libunwind.so.8*" 2>/dev/null | head -1)
if [ -n "$JULIA_LIBUNWIND" ]; then
echo "Preloading Julia's libunwind: $JULIA_LIBUNWIND"
echo "LD_PRELOAD=$JULIA_LIBUNWIND" >> $GITHUB_ENV
else
echo "Warning: Julia's libunwind not found, may segfault"
fi
shell: bash
- name: Setup Julia dependencies
run: |
forecastbaselines::setup_ForecastBaselines(verbose = TRUE)
shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
error-on: '"error"'