Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activate actions and update args #94

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
^README\.md

# Automated testing files.
^\.github$
^\.travis\.yml$
^appveyor\.yml$
^codecov\.yml$
Expand Down
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
66 changes: 66 additions & 0 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
on:
push:
branches:
- master
- devel
pull_request:
branches:
- master
- devel

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Install tinyTeX
uses: r-lib/actions/setup-tinytex@v2

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
sudo apt install -y curl libcurl4-doc libcurl4-openssl-dev

- name: Install package dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "covr", "sessioninfo"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Check package
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}

- name: Upload code coverage
if: runner.os == 'Linux'
run: |
covr::codecov()
shell: Rscript {0}
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tmle3
Title: The Extensible TMLE Framework
Version: 0.2.0
Version: 0.2.1
Authors@R: c(
person("Jeremy", "Coyle", email = "[email protected]",
role = c("aut", "cre", "cph"),
Expand All @@ -18,7 +18,7 @@ Depends:
R (>= 3.6.0),
graphics
Imports:
sl3 (>= 1.4.2),
sl3 (>= 1.4.5),
delayed,
data.table,
assertthat,
Expand Down Expand Up @@ -47,13 +47,15 @@ Suggests:
future.apply,
xgboost
Remotes:
github::tlverse/sl3
github::tlverse/sl3@fix-tests
Additional_repositories:
https://tlverse.r-universe.dev
License: GPL-3
URL: https://tlverse.org/tmle3
BugReports: https://github.com/tlverse/tmle3/issues
Encoding: UTF-8
LazyData: yes
LazyLoad: yes
VignetteBuilder: knitr
RoxygenNote: 7.1.1.9000
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE, r6 = FALSE)
2 changes: 1 addition & 1 deletion R/tmle3_Spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tmle3_Spec <- R6Class(
make_tmle_task = function(data, node_list, ...) {
variable_types <- self$options$variable_types

tmle_task <- point_tx_task(data, node_list, variable_types)
tmle_task <- point_tx_task(data, node_list, variable_types, ...)

return(tmle_task)
},
Expand Down
4 changes: 2 additions & 2 deletions R/tmle3_Task.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ tmle3_Task <- R6Class(
if ((current_node$scale) &&
(current_type$type == "continuous") &&
(is.null(current_type$bounds))) {
min_x <- min(variable_data)
max_x <- max(variable_data)
min_x <- min(variable_data, na.rm=TRUE)
max_x <- max(variable_data, na.rm=TRUE)
range <- max_x - min_x
lower <- min_x #- 0.1 * range
upper <- max_x #+ 0.1 * range
Expand Down
14 changes: 2 additions & 12 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ knitr::opts_chunk$set(

# R/`tmle3`

[![Travis-CI Build Status](https://travis-ci.org/tlverse/tmle3.svg?branch=master)](https://travis-ci.org/tlverse/tmle3)
[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/cxp6a15anauyadgb?svg=true)](https://ci.appveyor.com/project/tlverse/tmle3)
[![Coverage Status](https://img.shields.io/codecov/c/github/tlverse/tmle3/master.svg)](https://codecov.io/github/tlverse/tmle3?branch=master)
[![R-CMD-check](https://github.com/tlverse/tmle3/workflows/R-CMD-check/badge.svg)](https://github.com/tlverse/tmle3/actions)
[![Coverage Status](https://codecov.io/gh/tlverse/tmle3/branch/master/graph/badge.svg)](https://codecov.io/gh/tlverse/tmle3)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4603358.svg)](https://doi.org/10.5281/zenodo.4603358)
Expand All @@ -45,15 +44,6 @@ inference, the canonical references are @vdl2011targeted and @vdl2018targeted.

## Installation

<!--
For standard use, we recommend installing the package from
[CRAN](https://CRAN.R-project.org/package=hal9001) via

```{r cran-installation, eval = FALSE}
install.packages("hal9001")
```
-->

To contribute, install the _development version_ of `tmle3` from GitHub via
[`remotes`](https://CRAN.R-project.org/package=remotes):

Expand Down
65 changes: 0 additions & 65 deletions appveyor.yml

This file was deleted.

42 changes: 22 additions & 20 deletions docs/reference/tmle_tsm_all.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading