Skip to content

Commit

Permalink
try rchk
Browse files Browse the repository at this point in the history
seeing if i can replicate a bug on cran with this action
  • Loading branch information
bcjaeger committed Jan 15, 2024
1 parent 2f3e67b commit 667c907
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/rchk.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions src/Forest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ std::vector<std::vector<arma::mat>> 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){
Expand Down

0 comments on commit 667c907

Please sign in to comment.