Testing for julia engine of fwildclusterboot

This commit is contained in:
Daniel Winkler 2025-09-12 16:28:31 +10:00
commit 5805f09758
3 changed files with 39 additions and 39 deletions

View file

@ -11,29 +11,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
tests-ubuntu: run-tests:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v16
with:
name: rde
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: rstats-on-nix, nix-community
- run: nix build .
- run: nix flake check . --all-systems
- run: nix develop -c Rscript test/test.R
test-darwin:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main

View file

@ -27,11 +27,12 @@
extraRPackages = let extraRPackages = let
fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path)); fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path));
in { in {
## f ## F
fwildclusterboot = prev.rPackages.buildRPackage { fwildclusterboot = prev.rPackages.buildRPackage {
name = "fwildclusterboot"; name = "fwildclusterboot";
src = fetchfromGitHubJSONFile ./versions/fwildclusterboot.json; src = fetchfromGitHubJSONFile ./versions/fwildclusterboot.json;
propagatedBuildInputs = builtins.attrValues { propagatedBuildInputs =
builtins.attrValues {
inherit inherit
(prev.rPackages) (prev.rPackages)
collapse collapse
@ -48,7 +49,8 @@
RcppArmadillo RcppArmadillo
RcppEigen RcppEigen
; ;
}; }
++ [(prev.julia-bin.withPackages ["WildBootTests"])];
}; };
## H ## H

View file

@ -12,7 +12,23 @@ boot_lm <- boottest(
param = "treatment", param = "treatment",
B = 999 B = 999
) )
boot_lmjl <- boottest(
lm_fit,
clustid = "group_id1",
param = "treatment",
B = 999,
engine = "WildBootTests.jl"
)
setBoottest_engine("WildBootTests.jl")
boot_lmjl2 <- boottest(
lm_fit,
clustid = "group_id1",
param = "treatment",
B = 999
)
summary(boot_lm) summary(boot_lm)
summary(boot_lmjl)
summary(boot_lmjl2)
cat("\n============================================================ httpgd ============================================================\n") cat("\n============================================================ httpgd ============================================================\n")
library(httpgd) library(httpgd)