diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml new file mode 100644 index 0000000..ed8aacf --- /dev/null +++ b/.github/workflows/r.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['3.6.3', '4.1.1'] + + steps: + - uses: actions/checkout@v4 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} diff --git a/wrapper.xgb.cv.logistic.r b/wrapper.xgb.cv.logistic.r index a1f3f6d..03176db 100644 --- a/wrapper.xgb.cv.logistic.r +++ b/wrapper.xgb.cv.logistic.r @@ -1,3 +1,4 @@ +#<<<<<<< HEAD library(caret) library(ggplot2) library(pdp) @@ -106,4 +107,5 @@ Key = "Interaction" if(DoInteraction == TRUE) OutList[[Key]] = Interaction return(c(OutList)) -} \ No newline at end of file +} + diff --git a/xgb.cv.fit.boxplot.r b/xgb.cv.fit.boxplot.r index 080f9db..c001408 100644 --- a/xgb.cv.fit.boxplot.r +++ b/xgb.cv.fit.boxplot.r @@ -42,3 +42,4 @@ xgbm.cv.fit.boxplot.logistic = function(pred,###$pred from xgb.cv output xlab = paste0("Observed success"),ylab = paste0("Fitted probability")) dev.off() } +