Skip to content

Commit

Permalink
update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s committed Dec 7, 2017
1 parent 615edac commit 2dd5249
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ warnings_are_errors: false
# r_check_args: --as-cran
latex: false

# DO NOT CHANGE THE CODE BELOW
before_install: R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
install: R -q -e 'tic::install()'
after_install: R -q -e 'tic::after_install()'
before_script: R -q -e 'tic::before_script()'
script: R -q -e 'tic::script()'
after_success: R -q -e 'tic::after_success()'
after_failure: R -q -e 'tic::after_failure()'
before_deploy: R -q -e 'tic::before_deploy();remotes::install_github("pat-s/pkgdown")'
deploy:
provider: script
script: R -q -e 'tic::deploy()'
on:
all_branches: true
after_deploy: R -q -e 'tic::after_deploy()'
after_script: R -q -e 'tic::after_script()'
# DO NOT CHANGE THE CODE ABOVE

matrix:
include:
- os: linux
Expand Down

1 comment on commit 2dd5249

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helper_funs.R:78:14: warning: no visible global function definition for ‘no_plot’, Did you mean 'boxplot'?

plot_df <- no_plot(model)
             ^~~~~~~

R/insert_or.R:90:1: style: lines should not be more than 80 characters.

insert_or <- function(plot_object = NULL, or_object = NULL, line_col = "red", # nocov start
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/insert_or.R:146:24: style: Place a space before left parenthesis, except in a function call.

arrow_xloc_l <- -(max(plot_object$data$y) - min(plot_object$data$y)) *
                       ^

R/or_gam.R:142:24: style: Use <-, not =, for assignment.

result$predictor = pred
                       ^

R/or_gam.R:151:36: style: Put spaces around all infix operators.

result$perc1[x] <- percentage*x - percentage
                                  ~^~

R/or_gam.R:152:36: style: Put spaces around all infix operators.

result$perc2[x] <- percentage*x
                                  ~^~

R/or_glm.R:92:1: style: lines should not be more than 80 characters.

odds_ratios[[i]] <- round(exp(as.numeric(coef[[i]]) * as.numeric(incr[[i]])), 3)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/or_glm.R:94:1: style: lines should not be more than 80 characters.

CI_low[[i]] <- round(exp(CI_list[i, 1] * as.numeric(incr[[i]])), 3) # nocov
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/or_glm.R:95:1: style: lines should not be more than 80 characters.

CI_high[[i]] <- round(exp(CI_list[i, 2] * as.numeric(incr[[i]])), 3) # nocov
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/or_glm.R:98:7: warning: local variable ‘or’ assigned but may not be used

or <- odds_ratios[[i]]
      ^~

R/plot_gam.R:66:9: warning: no visible global function definition for ‘gam_to_df’

df <- gam_to_df(model, pred)
        ^~~~~~~~~

R/plot_gam.R:103:28: warning: no visible global function definition for ‘ggtitle’, Did you mean 'title'?

plot_gam <- plot_gam + ggtitle(title)
                           ^~~~~~~

tests/testthat/test-insert-or.R:5:69: style: Trailing whitespace is superfluous.

fit_gam <- gam(y ~ s(x0) + s(I(x1 ^ 2)) + s(x2) + offset(x3) + x4, 
                                                                    ^

tests/testthat/test-insert-or.R:7:1: style: Trailing whitespace is superfluous.

^~

tests/testthat/test-insert-or.R:8:21: style: Trailing whitespace is superfluous.

​  library(oddsratio)            
                    ^~~~~~~~~~~~

tests/testthat/test-insert-or.R:10:1: style: Trailing whitespace is superfluous.

^~

tests/testthat/test-insert-or.R:14:1: style: Trailing whitespace is superfluous.

^~

tests/testthat/test-insert-or.R:16:8: style: Use <-, not =, for assignment.

ymin = ggplot_build(plot_object)$layout$panel_ranges[[1]]$y.range[1]
       ^

tests/testthat/test-insert-or.R:17:8: style: Use <-, not =, for assignment.

ymax = ggplot_build(plot_object)$layout$panel_ranges[[1]]$y.range[2]
       ^

tests/testthat/test-insert-or.R:18:1: style: Trailing whitespace is superfluous.

^~

tests/testthat/test-insert-or.R:23:1: style: Trailing whitespace is superfluous.

^~

tests/testthat/test-insert-or.R:24:3: style: Trailing whitespace is superfluous.

​}) 
  ^

tests/testthat/test-or-gam.R:9:36: style: Put spaces around all infix operators.

fit_gam <- gam(y ~ s(x0) + s(I(x1^2)) + s(x2) +
                                  ~^~

tests/testthat/test-or-gam.R:23:36: style: Put spaces around all infix operators.

fit_gam <- gam(y ~ s(x0) + s(I(x1^2)) + s(x2) +
                                  ~^~

tests/testthat/test-or-gam.R:43:36: style: Put spaces around all infix operators.

fit_gam <- gam(y ~ s(x0) + s(I(x1^2)) + s(x2) +
                                  ~^~

tests/testthat/test-or-glm.R:18:3: style: Variable and function names should be all lowercase.

fit_glmmPQL <-glmmPQL(y ~ trt + week, random = ~1 | ID,
  ^~~~~~~~~~~

tests/testthat/test-or-glm.R:18:15: style: Put spaces around all infix operators.

fit_glmmPQL <-glmmPQL(y ~ trt + week, random = ~1 | ID,
              ^~~

tests/testthat/test-or-glm.R:22:42: style: Variable and function names should be all lowercase.

out <- or_glm(data = bacteria, model = fit_glmmPQL, incr = list(week = 5))
                                         ^~~~~~~~~~~

Please sign in to comment.