diff --git a/.github/workflows/rchk.yaml b/.github/workflows/rchk.yaml new file mode 100644 index 00000000..0f6a2494 --- /dev/null +++ b/.github/workflows/rchk.yaml @@ -0,0 +1,31 @@ +name: Setup and run rchk test +description: Setup and run rchk test +inputs: + setup-only: + description: Setup rchk only and skip running the test. +required: false +default: false +run-only: + description: Skip the setup step and run the test directly assuming that setup was run. +required: false +default: false +cache-version: + description: The version of the cache, change this from the default (rchk-1) to start over with a fresh cache +required: false +default: rchk-1 +runs: + using: 'composite' +steps: + - if: inputs.run-only != 'true' +name: Setup rchk +run: bash $GITHUB_ACTION_PATH/setup.sh +shell: bash +- if: inputs.setup-only != 'true' && inputs.run-only != 'true' +uses: r-lib/actions/setup-r-dependencies@v2 +with: + cache-version: ${{ inputs.cache-version }} +- if: inputs.setup-only != 'true' +name: Run rchk +run: | + bash $GITHUB_ACTION_PATH/run.sh +shell: bash diff --git a/src/Forest.cpp b/src/Forest.cpp index 2820f87f..71caa789 100644 --- a/src/Forest.cpp +++ b/src/Forest.cpp @@ -540,6 +540,11 @@ std::vector> Forest::compute_dependence(bool oobag){ thread.join(); } + // uvec oobag_zeros = find(oobag_denom == 0); + // if(oobag_zeros.size() > 0){ + // oobag_denom(oobag_zeros).fill(1.0); + // } + threads.clear(); for(uint i = 0; i < n_thread; ++i){