[R/helper_funs.R:2:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Runs model fitting, error estimation and variable importance on fold level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:7:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
runfolds <- function(j = NULL, currentSample = NULL, data = NULL, formula = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:7:32:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L7) *style:* **Variable or function name should be snake_case.**
```r
runfolds <- function(j = NULL, currentSample = NULL, data = NULL, formula = NULL,
                               ^~~~~~~~~~~~~
```
[R/helper_funs.R:7:82:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L7) *style:* **Trailing whitespace is superfluous.**
```r
runfolds <- function(j = NULL, currentSample = NULL, data = NULL, formula = NULL,
                                                                                ^
```
[R/helper_funs.R:8:41:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L8) *style:* **Variable or function name should be snake_case.**
```r
                     model.args = NULL, par.cl = NULL, par.mode = NULL,
                                        ^~~~~~
```
[R/helper_funs.R:8:56:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L8) *style:* **Variable or function name should be snake_case.**
```r
                     model.args = NULL, par.cl = NULL, par.mode = NULL,
                                                       ^~~~~~~~
```
[R/helper_funs.R:9:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L9) *style:* **Variable or function name should be snake_case.**
```r
                     do.try = NULL, model.fun = NULL, error.fold = NULL,
                     ^~~~~~
```
[R/helper_funs.R:9:55:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L9) *style:* **Variable or function name should be snake_case.**
```r
                     do.try = NULL, model.fun = NULL, error.fold = NULL,
                                                      ^~~~~~~~~~
```
[R/helper_funs.R:9:73:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L9) *style:* **Trailing whitespace is superfluous.**
```r
                     do.try = NULL, model.fun = NULL, error.fold = NULL,
                                                                        ^
```
[R/helper_funs.R:10:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L10) *style:* **Variable or function name should be snake_case.**
```r
                     error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                     ^~~~~~~~~
```
[R/helper_funs.R:10:40:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L10) *style:* **Variable or function name should be snake_case.**
```r
                     error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                                       ^~~~~~~~
```
[R/helper_funs.R:10:57:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L10) *style:* **Variable or function name should be snake_case.**
```r
                     error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                                                        ^~~~~~~~~~~~~
```
[R/helper_funs.R:11:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L11) *style:* **Variable or function name should be snake_case.**
```r
                     imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                     ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:11:47:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L11) *style:* **Variable or function name should be snake_case.**
```r
                     imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                                              ^~~~~~~
```
[R/helper_funs.R:11:63:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L11) *style:* **Variable or function name should be snake_case.**
```r
                     imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                                                              ^~~~~~~~~
```
[R/helper_funs.R:12:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L12) *style:* **Variable or function name should be snake_case.**
```r
                     err.train = NULL, importance = NULL, currentRes = NULL,
                     ^~~~~~~~~
```
[R/helper_funs.R:12:59:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L12) *style:* **Variable or function name should be snake_case.**
```r
                     err.train = NULL, importance = NULL, currentRes = NULL,
                                                          ^~~~~~~~~~
```
[R/helper_funs.R:13:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L13) *style:* **Variable or function name should be snake_case.**
```r
                     currentImpo = NULL, pred.args = NULL, progress = NULL,
                     ^~~~~~~~~~~
```
[R/helper_funs.R:13:42:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L13) *style:* **Variable or function name should be snake_case.**
```r
                     currentImpo = NULL, pred.args = NULL, progress = NULL,
                                         ^~~~~~~~~
```
[R/helper_funs.R:13:76:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L13) *style:* **Trailing whitespace is superfluous.**
```r
                     currentImpo = NULL, pred.args = NULL, progress = NULL,
                                                                           ^
```
[R/helper_funs.R:14:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L14) *style:* **Lines should not be more than 80 characters.**
```r
                     pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:14:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                     pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                     ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:14:47:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                     pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                                              ^~~~~~~~~~~~~~~
```
[R/helper_funs.R:14:71:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                     pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                                                                      ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:15:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L15) *style:* **Lines should not be more than 80 characters.**
```r
                     response = NULL, is.factor.prediction = NULL, pooled.pred.test = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:15:68:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L15) *style:* **Variable or function name should be snake_case.**
```r
                     response = NULL, is.factor.prediction = NULL, pooled.pred.test = NULL,
                                                                   ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:16:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L16) *style:* **Lines should not be more than 80 characters.**
```r
                     coords = NULL, test.fun = NULL, imp.one.rep = NULL, i = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:16:37:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L16) *style:* **Variable or function name should be snake_case.**
```r
                     coords = NULL, test.fun = NULL, imp.one.rep = NULL, i = NULL,
                                    ^~~~~~~~
```
[R/helper_funs.R:16:54:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L16) *style:* **Variable or function name should be snake_case.**
```r
                     coords = NULL, test.fun = NULL, imp.one.rep = NULL, i = NULL,
                                                     ^~~~~~~~~~~
```
[R/helper_funs.R:17:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L17) *style:* **Variable or function name should be snake_case.**
```r
                     do.gc = NULL, test.param = NULL, train.param = NULL) {
                     ^~~~~
```
[R/helper_funs.R:17:36:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L17) *style:* **Variable or function name should be snake_case.**
```r
                     do.gc = NULL, test.param = NULL, train.param = NULL) {
                                   ^~~~~~~~~~
```
[R/helper_funs.R:17:55:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L17) *style:* **Variable or function name should be snake_case.**
```r
                     do.gc = NULL, test.param = NULL, train.param = NULL) {
                                                      ^~~~~~~~~~~
```
[R/helper_funs.R:17:75:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L17) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
                     do.gc = NULL, test.param = NULL, train.param = NULL) {
                                                                          ^
```
[R/helper_funs.R:17:76:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L17) *style:* **Trailing whitespace is superfluous.**
```r
                     do.gc = NULL, test.param = NULL, train.param = NULL) {
                                                                           ^
```
[R/helper_funs.R:19:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L19) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:20:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L20) *style:* **Lines should not be more than 80 characters.**
```r
    if (par.mode == "foreach" | par.mode == "sequential" | par.mode == "foreach-old" && progress == "TRUE" | progress == 1) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:24:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L24) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:29:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L29) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:32:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L32) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:34:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L34) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[R/helper_funs.R:36:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L36) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:39:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L39) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    {
    ^
```
[R/helper_funs.R:42:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L42) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/helper_funs.R:44:9:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L44) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
        {
        ^
```
[R/helper_funs.R:51:9:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L51) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
        {
        ^
```
[R/helper_funs.R:59:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L59) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:61:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L61) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[R/helper_funs.R:64:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L64) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:69:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L69) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    {
    ^
```
[R/helper_funs.R:70:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L70) *style:* **Variable or function name should be snake_case.**
```r
      pred.train <- do.call(predict, args = pargs)
      ^~~~~~~~~~
```
[R/helper_funs.R:72:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L72) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    {
    ^
```
[R/helper_funs.R:73:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L73) *style:* **Variable or function name should be snake_case.**
```r
      pred.train <- do.call(pred.fun, args = pargs)
      ^~~~~~~~~~
```
[R/helper_funs.R:76:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L76) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:80:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L80) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/helper_funs.R:81:9:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L81) *style:* **Variable or function name should be snake_case.**
```r
        err.try <- try(err.fun(nd[, response], pred.train))
        ^~~~~~~
```
[R/helper_funs.R:83:11:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L83) *style:* **Variable or function name should be snake_case.**
```r
          err.try <- NULL
          ^~~~~~~
```
[R/helper_funs.R:87:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L87) *style:* **Lines should not be more than 80 characters.**
```r
        currentRes[[j]]$train <- err.fun(nd[, response], pred.train)  #res[[i]][[j]]$train = err.fun(nd[,response], pred.train)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:91:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L91) *style:* **Variable or function name should be snake_case.**
```r
      pooled.obs.train <- c(pooled.obs.train, nd[, response])
      ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:92:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L92) *style:* **Variable or function name should be snake_case.**
```r
      pooled.pred.train <- c(pooled.pred.train, pred.train)
      ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:99:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L99) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:107:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L107) *style:* **Variable or function name should be snake_case.**
```r
    nd.bak <- nd
    ^~~~~~
```
[R/helper_funs.R:112:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L112) *style:* **Variable or function name should be snake_case.**
```r
    pred.test <- do.call(predict, args = pargs)
    ^~~~~~~~~
```
[R/helper_funs.R:114:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L114) *style:* **Variable or function name should be snake_case.**
```r
    pred.test <- do.call(pred.fun, args = pargs)
    ^~~~~~~~~
```
[R/helper_funs.R:117:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L117) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:121:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L121) *style:* **Variable or function name should be snake_case.**
```r
      err.try <- try(err.fun(nd[, response], pred.test))
      ^~~~~~~
```
[R/helper_funs.R:123:9:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L123) *style:* **Variable or function name should be snake_case.**
```r
        err.try <- NULL
        ^~~~~~~
```
[R/helper_funs.R:127:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L127) *style:* **Lines should not be more than 80 characters.**
```r
      currentRes[[j]]$test <- err.fun(nd[, response], pred.test)  #res[[i]][[j]]$test  = err.fun(nd[,response], pred.test)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:131:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L131) *style:* **Variable or function name should be snake_case.**
```r
    pooled.obs.test <- c(pooled.obs.test, nd[, response])
    ^~~~~~~~~~~~~~~
```
[R/helper_funs.R:132:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L132) *style:* **Variable or function name should be snake_case.**
```r
    pooled.pred.test <- c(pooled.pred.test, pred.test)
    ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:136:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L136) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:148:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L148) *style:* **Variable or function name should be snake_case.**
```r
      imp.temp <- imp.one.rep
      ^~~~~~~~
```
[R/helper_funs.R:149:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L149) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/helper_funs.R:156:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L156) *style:* **Lines should not be more than 80 characters.**
```r
            cat(date(), "Repetition", names(currentSample)[i], "- Fold", j, "- permutation-count:", cnt, "\n")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:161:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L161) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~~~
```
[R/helper_funs.R:171:13:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L171) *style:* **Variable or function name should be snake_case.**
```r
            pred.test <- do.call(predict, args = pargs)
            ^~~~~~~~~
```
[R/helper_funs.R:173:13:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L173) *style:* **Variable or function name should be snake_case.**
```r
            pred.test <- do.call(pred.fun, args = pargs)
            ^~~~~~~~~
```
[R/helper_funs.R:176:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L176) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~~~~~
```
[R/helper_funs.R:179:13:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L179) *style:* **Variable or function name should be snake_case.**
```r
            permut.err <- try(err.fun(nd[, response], pred.test))
            ^~~~~~~~~~
```
[R/helper_funs.R:185:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L185) *style:* **Lines should not be more than 80 characters.**
```r
              # as.list( unlist(res[[i]][[j]]$test) - unlist(permut.err) ) (apply '-' to
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:186:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L186) *style:* **Lines should not be more than 80 characters.**
```r
              # corresponding list elements; only works if all list elements are scalars)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:189:13:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L189) *style:* **Variable or function name should be snake_case.**
```r
            permut.err <- err.fun(nd[, response], pred.test)
            ^~~~~~~~~~
```
[R/helper_funs.R:192:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L192) *style:* **Lines should not be more than 80 characters.**
```r
            # as.list( unlist(res[[i]][[j]]$test) - unlist(permut.err) ) (apply '-' to
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:193:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L193) *style:* **Lines should not be more than 80 characters.**
```r
            # corresponding list elements; only works if all list elements are scalars)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:198:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L198) *style:* **Lines should not be more than 80 characters.**
```r
      currentImpo[[j]] <- as.data.frame(t(sapply(imp.temp, function(y) sapply(as.data.frame(t(sapply(y,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:199:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L199) *style:* **Lines should not be more than 80 characters.**
```r
                                                                                as.data.frame))), function(x) mean(unlist(x))))))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:203:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L203) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:204:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L204) *style:* **Variable or function name should be snake_case.**
```r
  currentRes <- currentRes[[j]]
  ^~~~~~~~~~
```
[R/helper_funs.R:205:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L205) *style:* **Variable or function name should be snake_case.**
```r
  currentImpo <- currentImpo[[j]]
  ^~~~~~~~~~~
```
[R/helper_funs.R:206:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L206) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:213:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L213) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:217:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L217) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Runs model fitting, error estimation and variable importance on fold level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:223:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L223) *style:* **Variable or function name should be snake_case.**
```r
runreps <- function(currentSample = NULL, data = NULL, formula = NULL,
                    ^~~~~~~~~~~~~
```
[R/helper_funs.R:223:71:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L223) *style:* **Trailing whitespace is superfluous.**
```r
runreps <- function(currentSample = NULL, data = NULL, formula = NULL,
                                                                      ^
```
[R/helper_funs.R:224:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L224) *style:* **Lines should not be more than 80 characters.**
```r
                    model.args = NULL, par.cl = NULL, do.gc = NULL, imp.one.rep = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:224:40:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L224) *style:* **Variable or function name should be snake_case.**
```r
                    model.args = NULL, par.cl = NULL, do.gc = NULL, imp.one.rep = NULL,
                                       ^~~~~~
```
[R/helper_funs.R:224:55:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L224) *style:* **Variable or function name should be snake_case.**
```r
                    model.args = NULL, par.cl = NULL, do.gc = NULL, imp.one.rep = NULL,
                                                      ^~~~~
```
[R/helper_funs.R:224:69:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L224) *style:* **Variable or function name should be snake_case.**
```r
                    model.args = NULL, par.cl = NULL, do.gc = NULL, imp.one.rep = NULL,
                                                                    ^~~~~~~~~~~
```
[R/helper_funs.R:225:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L225) *style:* **Variable or function name should be snake_case.**
```r
                    do.try = NULL, model.fun = NULL, error.fold = NULL,
                    ^~~~~~
```
[R/helper_funs.R:225:54:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L225) *style:* **Variable or function name should be snake_case.**
```r
                    do.try = NULL, model.fun = NULL, error.fold = NULL,
                                                     ^~~~~~~~~~
```
[R/helper_funs.R:225:72:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L225) *style:* **Trailing whitespace is superfluous.**
```r
                    do.try = NULL, model.fun = NULL, error.fold = NULL,
                                                                       ^
```
[R/helper_funs.R:226:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L226) *style:* **Variable or function name should be snake_case.**
```r
                    error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                    ^~~~~~~~~
```
[R/helper_funs.R:226:39:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L226) *style:* **Variable or function name should be snake_case.**
```r
                    error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                                      ^~~~~~~~
```
[R/helper_funs.R:226:56:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L226) *style:* **Variable or function name should be snake_case.**
```r
                    error.rep = NULL, pred.fun = NULL, imp.variables = NULL,
                                                       ^~~~~~~~~~~~~
```
[R/helper_funs.R:227:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L227) *style:* **Variable or function name should be snake_case.**
```r
                    imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                    ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:227:46:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L227) *style:* **Variable or function name should be snake_case.**
```r
                    imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                                             ^~~~~~~
```
[R/helper_funs.R:227:62:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L227) *style:* **Variable or function name should be snake_case.**
```r
                    imp.permutations = NULL, err.fun = NULL, train.fun = NULL,
                                                             ^~~~~~~~~
```
[R/helper_funs.R:228:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L228) *style:* **Variable or function name should be snake_case.**
```r
                    err.train = NULL, importance = NULL, currentRes = NULL,
                    ^~~~~~~~~
```
[R/helper_funs.R:228:58:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L228) *style:* **Variable or function name should be snake_case.**
```r
                    err.train = NULL, importance = NULL, currentRes = NULL,
                                                         ^~~~~~~~~~
```
[R/helper_funs.R:229:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L229) *style:* **Variable or function name should be snake_case.**
```r
                    currentImpo = NULL, pred.args = NULL, progress = NULL,
                    ^~~~~~~~~~~
```
[R/helper_funs.R:229:41:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L229) *style:* **Variable or function name should be snake_case.**
```r
                    currentImpo = NULL, pred.args = NULL, progress = NULL,
                                        ^~~~~~~~~
```
[R/helper_funs.R:229:75:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L229) *style:* **Trailing whitespace is superfluous.**
```r
                    currentImpo = NULL, pred.args = NULL, progress = NULL,
                                                                          ^
```
[R/helper_funs.R:230:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L230) *style:* **Lines should not be more than 80 characters.**
```r
                    pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:230:21:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L230) *style:* **Variable or function name should be snake_case.**
```r
                    pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                    ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:230:46:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L230) *style:* **Variable or function name should be snake_case.**
```r
                    pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                                             ^~~~~~~~~~~~~~~
```
[R/helper_funs.R:230:70:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L230) *style:* **Variable or function name should be snake_case.**
```r
                    pooled.obs.train = NULL, pooled.obs.test = NULL, pooled.pred.train = NULL,
                                                                     ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:231:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L231) *style:* **Lines should not be more than 80 characters.**
```r
                    response = NULL, is.factor.prediction = NULL, pooled.pred.test = NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:231:67:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L231) *style:* **Variable or function name should be snake_case.**
```r
                    response = NULL, is.factor.prediction = NULL, pooled.pred.test = NULL,
                                                                  ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:232:36:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L232) *style:* **Variable or function name should be snake_case.**
```r
                    coords = NULL, test.fun = NULL, par.mode = NULL, i = NULL) {
                                   ^~~~~~~~
```
[R/helper_funs.R:232:53:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L232) *style:* **Variable or function name should be snake_case.**
```r
                    coords = NULL, test.fun = NULL, par.mode = NULL, i = NULL) {
                                                    ^~~~~~~~
```
[R/helper_funs.R:234:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L234) *style:* **Variable or function name should be snake_case.**
```r
  currentRes <- NULL
  ^~~~~~~~~~
```
[R/helper_funs.R:235:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L235) *style:* **Variable or function name should be snake_case.**
```r
  currentImpo <- currentSample
  ^~~~~~~~~~~
```
[R/helper_funs.R:236:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L236) *style:* **Variable or function name should be snake_case.**
```r
  currentPooled.err <- NULL
  ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:237:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L237) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:239:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L239) *style:* **Variable or function name should be snake_case.**
```r
    currentRes <- lapply(currentSample, unclass)
    ^~~~~~~~~~
```
[R/helper_funs.R:242:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L242) *style:* **Variable or function name should be snake_case.**
```r
    currentRes <- NULL
    ^~~~~~~~~~
```
[R/helper_funs.R:244:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L244) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:247:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L247) *style:* **Variable or function name should be snake_case.**
```r
    pooled.obs.train <- pooled.pred.train <- c()
    ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:247:25:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L247) *style:* **Variable or function name should be snake_case.**
```r
    pooled.obs.train <- pooled.pred.train <- c()
                        ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:249:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L249) *style:* **Variable or function name should be snake_case.**
```r
  pooled.obs.test <- pooled.pred.test <- c()
  ^~~~~~~~~~~~~~~
```
[R/helper_funs.R:249:22:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L249) *style:* **Variable or function name should be snake_case.**
```r
  pooled.obs.test <- pooled.pred.test <- c()
                     ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:250:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L250) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:253:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L253) *style:* **Lines should not be more than 80 characters.**
```r
  # current sample arriving here has length of folds (because it it alsready indexed by
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:255:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L255) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:256:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L256) *style:* **Lines should not be more than 80 characters.**
```r
  # this ensures that runfolds finds all objects which have been defined until here
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:258:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L258) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:259:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L259) *style:* **Lines should not be more than 80 characters.**
```r
  if (par.mode == "foreach" | par.mode == "sequential" && progress == TRUE | progress == 2) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:262:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L262) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:263:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L263) *style:* **Lines should not be more than 80 characters.**
```r
  runfolds_list <- map(seq_along(currentSample), function(rep) runfolds(j = rep, data = data, currentSample = currentSample,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:264:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L264) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        formula = formula, par.mode = par.mode, pred.fun = pred.fun,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:265:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L265) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        model.args = model.args, do.try = do.try, model.fun = model.fun,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:266:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L266) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        error.fold = error.fold, error.rep = error.rep, imp.permutations = imp.permutations,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:266:157:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L266) *style:* **Trailing whitespace is superfluous.**
```r
                                                                        error.fold = error.fold, error.rep = error.rep, imp.permutations = imp.permutations,
                                                                                ^
```
[R/helper_funs.R:267:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L267) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        imp.variables = imp.variables, is.factor.prediction = is.factor.prediction,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:268:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L268) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        err.train = err.train, importance = importance, currentRes = currentRes,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:268:145:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L268) *style:* **Trailing whitespace is superfluous.**
```r
                                                                        err.train = err.train, importance = importance, currentRes = currentRes,
                                                                                ^
```
[R/helper_funs.R:269:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L269) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        pred.args = pred.args, response = response, par.cl = par.cl,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:269:133:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L269) *style:* **Trailing whitespace is superfluous.**
```r
                                                                        pred.args = pred.args, response = response, par.cl = par.cl,
                                                                                ^
```
[R/helper_funs.R:270:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L270) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        coords = coords, progress = progress, pooled.obs.train = pooled.obs.train,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:270:147:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L270) *style:* **Trailing whitespace is superfluous.**
```r
                                                                        coords = coords, progress = progress, pooled.obs.train = pooled.obs.train,
                                                                                ^
```
[R/helper_funs.R:271:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L271) *style:* **Lines should not be more than 80 characters.**
```r
                                                                        pooled.obs.test = pooled.obs.test, err.fun = err.fun))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:272:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L272) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:274:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L274) *style:* **Lines should not be more than 80 characters.**
```r
  # http://stackoverflow.com/questions/32557131/adding-a-vector-to-each-sublist-within-a-list-r
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:275:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L275) *style:* **Lines should not be more than 80 characters.**
```r
  # http://stackoverflow.com/questions/43963683/r-flexible-passing-of-sublists-to-following-function
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:277:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L277) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:281:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L281) *style:* **Lines should not be more than 80 characters.**
```r
    ### get mean from all impo results of all folds (multiple dataframes stored in a list)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:282:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L282) *style:* **Lines should not be more than 80 characters.**
```r
    ### http://stackoverflow.com/questions/18371187/element-wise-mean-for-a-list-of-dataframes-with-na
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:286:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L286) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:287:41:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L287) *style:* **Trailing whitespace is superfluous.**
```r
  pooled_only <- runfolds_merged[c(1:4)]
                                        ^
```
[R/helper_funs.R:288:64:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L288) *style:* **Trailing whitespace is superfluous.**
```r
  pooled_only <- sapply(unique(names(pooled_only)), function(x)
                                                               ^
```
[R/helper_funs.R:289:76:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L289) *style:* **Trailing whitespace is superfluous.**
```r
    unname(unlist(pooled_only[names(pooled_only) == x])), simplify = FALSE)
                                                                           ^~~
```
[R/helper_funs.R:290:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L290) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:292:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L292) *style:* **Lines should not be more than 80 characters.**
```r
  # Put the results from the pooled estimation into the pooled.err data structure:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:297:46:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L297) *style:* **Trailing whitespace is superfluous.**
```r
        lev[pooled_only$pooled.obs.train] %>%
                                             ^
```
[R/helper_funs.R:299:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L299) *style:* **Lines should not be more than 80 characters.**
```r
        # pooled_only$pooled.obs.train <- factor(lev[pooled_only$pooled.obs.train], levels = lev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:301:43:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L301) *style:* **Trailing whitespace is superfluous.**
```r
      lev[pooled_only$pooled.obs.test] %>%
                                          ^
```
[R/helper_funs.R:303:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L303) *style:* **Lines should not be more than 80 characters.**
```r
      # pooled_only$pooled.obs.test <- factor(lev[pooled_only$pooled.obs.test], levels = lev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:306:49:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L306) *style:* **Trailing whitespace is superfluous.**
```r
          lev[pooled_only$pooled.pred.train] %>%
                                                ^
```
[R/helper_funs.R:308:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L308) *style:* **Lines should not be more than 80 characters.**
```r
          # pooled_only$pooled.pred.train <- factor(lev[pooled_only$pooled.pred.train], levels = lev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:310:45:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L310) *style:* **Trailing whitespace is superfluous.**
```r
        lev[pooled_only$pooled.obs.test] %>%
                                            ^
```
[R/helper_funs.R:312:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L312) *style:* **Lines should not be more than 80 characters.**
```r
        # pooled_only$pooled.pred.test <- factor(lev[pooled_only$pooled.pred.test], levels = lev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:314:6:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L314) *style:* **Trailing whitespace is superfluous.**
```r
    }
     ^
```
[R/helper_funs.R:315:5:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L315) *style:* **Variable or function name should be snake_case.**
```r
    pooled.err.train <- NULL
    ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:317:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L317) *style:* **Lines should not be more than 80 characters.**
```r
      pooled.err.train <- err.fun(pooled_only$pooled.obs.train, pooled_only$pooled.pred.train)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:317:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L317) *style:* **Variable or function name should be snake_case.**
```r
      pooled.err.train <- err.fun(pooled_only$pooled.obs.train, pooled_only$pooled.pred.train)
      ^~~~~~~~~~~~~~~~
```
[R/helper_funs.R:319:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L319) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:321:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L321) *style:* **Lines should not be more than 80 characters.**
```r
                                                  pooled_only$pooled.pred.test)) %>%
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:321:85:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L321) *style:* **Trailing whitespace is superfluous.**
```r
                                                  pooled_only$pooled.pred.test)) %>%
                                                                                ^
```
[R/helper_funs.R:322:19:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L322) *style:* **Trailing whitespace is superfluous.**
```r
      unlist() %>%
                  ^
```
[R/helper_funs.R:323:14:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L323) *style:* **Variable or function name should be snake_case.**
```r
      t() -> currentPooled.err
             ^~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:324:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L324) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/helper_funs.R:329:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L329) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:330:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L330) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if ((do.gc >= 1) & (do.gc < 2)) {
      ^
```
[R/helper_funs.R:333:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L333) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:334:79:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L334) *style:* **Trailing whitespace is superfluous.**
```r
  # set currentImpo to NULL to prevent false importance output (resamp object)
                                                                              ^
```
[R/helper_funs.R:335:19:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L335) *style:* **Trailing whitespace is superfluous.**
```r
  # if not desired
                  ^
```
[R/helper_funs.R:339:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L339) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:340:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L340) *style:* **Lines should not be more than 80 characters.**
```r
  #return(list(error = currentRes, pooled.error = currentPooled.err, importance = currentImpo))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:341:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L341) *style:* **Lines should not be more than 80 characters.**
```r
  return(list(error = runfolds_merged$currentRes, pooled.error = currentPooled.err, importance = impo_only))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/helper_funs.R:349:38:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L349) *style:* **Variable or function name should be snake_case.**
```r
transfer_parallel_output <- function(myRes = NULL, res = NULL, impo = NULL,
                                     ^~~~~
```
[R/helper_funs.R:350:38:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L350) *style:* **Variable or function name should be snake_case.**
```r
                                     pooled.err = NULL) {
                                     ^~~~~~~~~~
```
[R/helper_funs.R:351:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L351) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/helper_funs.R:354:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L354) *style:* **Variable or function name should be snake_case.**
```r
      pooled.err <- myRes[[i]]$pooled.error
      ^~~~~~~~~~
```
[R/helper_funs.R:358:7:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L358) *style:* **Variable or function name should be snake_case.**
```r
      pooled.err <- rbind(pooled.err, myRes[[i]]$pooled.error)
      ^~~~~~~~~~
```
[R/helper_funs.R:363:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/helper_funs.R#L363) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/resample.R:3:61:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L3) *style:* **Trailing whitespace is superfluous.**
```r
#' `resample.strat.uniform` draws a stratified random sample
                                                            ^
```
[R/resample.R:4:61:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L4) *style:* **Trailing whitespace is superfluous.**
```r
#' (with or without replacement) from the samples in `data`.
                                                            ^
```
[R/resample.R:5:65:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L5) *style:* **Trailing whitespace is superfluous.**
```r
#' Stratification is over the levels of `data[,param$response]`.
                                                                ^
```
[R/resample.R:7:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L7) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/resample.R:9:72:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L9) *style:* **Trailing whitespace is superfluous.**
```r
#' @param param a list with the following components: `strat` is either
                                                                       ^
```
[R/resample.R:11:64:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L11) *style:* **Trailing whitespace is superfluous.**
```r
#'  levels, or a vector of type factor and length `nrow(data)`;
                                                               ^
```
[R/resample.R:12:65:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L12) *style:* **Trailing whitespace is superfluous.**
```r
#'  `n` is a numeric value specifying the size of the subsample;
                                                                ^
```
[R/resample.R:14:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L14) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^~
```
[R/resample.R:16:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L16) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/resample.R:17:58:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L17) *style:* **Trailing whitespace is superfluous.**
```r
#' @details If `param$replace=FALSE`, a subsample of size
                                                         ^
```
[R/resample.R:18:56:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L18) *style:* **Trailing whitespace is superfluous.**
```r
#' `min(param$n,nrow(data))` will be drawn from `data`.
                                                       ^
```
[R/resample.R:20:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L20) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/resample.R:22:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L22) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/resample.R:25:40:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L25) *style:* **Trailing whitespace is superfluous.**
```r
#' d <- resample.strat.uniform(ecuador,
                                       ^
```
[R/resample.R:29:3:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L29) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/resample.R:31:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L31) *style:* **Lines should not be more than 80 characters.**
```r
resample.strat.uniform <- function(data, param = list(strat = "class", nstrat = Inf,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/resample.R:31:1:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L31) *style:* **Variable or function name should be snake_case.**
```r
resample.strat.uniform <- function(data, param = list(strat = "class", nstrat = Inf,
^~~~~~~~~~~~~~~~~~~~~~
```
[R/resample.R:31:85:](https://github.com/pat-s/sperrorest/blob/236947cf926e1e1cfdb44868756e676eda2e39b8/R/resample.R#L31) *style:* **Trailing whitespace is superfluous.**
```r
resample.strat.uniform <- function(data, param = list(strat = "class", nstrat = Inf,
                                                                                ^
```


Intended behaviour?


[It's cool](http://i1.kym-cdn.com/photos/images/facebook/000/427/566/b67.jpeg)


Oh lol, something with animations that were broken, will fix :P


Just formatting changes.


Almost there, Chris. What we're looking for is and output like this. `abc def ghi`... I'll check back on this one next week.  :)


Awesome ❤

If you make a pull request, I'll merge it upstream


А mailto?


Yes, you indeed mistook it. :) This function scrolls by a delta, so 0 is an obvious default.


You are absolutely correct, underscores are not permitted.

I've updated the library and published the updated library to NPM.

Thanks again!
RicMoo


Test


Line up the 4 `=`.


gps works but compass/gyro is broken


Line up the 3 `=`.


Remember to make sure the path is correct for your href, otherwise you won't get the results you expected.  :)


You can use SPRT (0, 4) for this,


I don't understand why you have to do this. You said `Why I do this? As we all know, consul will return back all content only if subname is the same, eg: test, test_a, test_b(three configured-end-key vs three different upstreams), request with key-test will get all of three content` But in my test, I only get one content, not all three contents. In my above example, I created "ecpsdmp400wo-0" and "ecpsdmp400wo-0_a". I then curl for "ecpsdmp400wo-0", I only got "ecpsdmp400wo-0".


also resized the graph 👍


oi Hugo, tudo bem?

Por favor, você já deve ter me passado isto, mas preciso perguntar: que repositório você usou para as coisas mais recentes?

Muito obrigado

Fábio


[R/doFuture.R:11:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L11) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("doFuture() ...")
             ^~~~~~
```
[R/doFuture.R:17:9:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L17) *warning:* **no visible global function definition for ‘iter’, Did you mean 'it'?**
```r
  it <- iter(obj)
        ^~~~
```
[R/doFuture.R:19:18:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L19) *warning:* **no visible global function definition for ‘makeAccum’**
```r
  accumulator <- makeAccum(it)
                 ^~~~~~~~~
```
[R/doFuture.R:93:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L93) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("- R expression:")
    ^~~~~~
```
[R/doFuture.R:94:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L94) *warning:* **no visible global function definition for ‘mprint’, Did you mean 'print'?**
```r
    mprint(expr)
    ^~~~~~
```
[R/doFuture.R:102:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L102) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("- identifying globals and packages ...")
    ^~~~~~
```
[R/doFuture.R:117:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L117) *warning:* **no visible global function definition for ‘mstr’, Did you mean 'str'?**
```r
    mstr(globals)
    ^~~~
```
[R/doFuture.R:120:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L120) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("  - R expression:")
    ^~~~~~
```
[R/doFuture.R:121:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L121) *warning:* **no visible global function definition for ‘mprint’, Did you mean 'print'?**
```r
    mprint(expr)
    ^~~~~~
```
[R/doFuture.R:122:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L122) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("- identifying globals and packages ... DONE")
    ^~~~~~
```
[R/doFuture.R:166:25:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L166) *warning:* **no visible global function definition for ‘nbrOfWorkers’**
```r
      nbr_of_futures <- nbrOfWorkers()
                        ^~~~~~~~~~~~
```
[R/doFuture.R:174:23:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L174) *warning:* **no visible global function definition for ‘nbrOfWorkers’**
```r
    nbr_of_workers <- nbrOfWorkers()
                      ^~~~~~~~~~~~
```
[R/doFuture.R:187:13:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L187) *warning:* **no visible global function definition for ‘splitIndices’**
```r
  chunks <- splitIndices(nbr_of_elements, ncl = nbr_of_futures)
            ^~~~~~~~~~~~
```
[R/doFuture.R:188:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L188) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  mdebug("Number of chunks: %d", length(chunks))
  ^~~~~~
```
[R/doFuture.R:196:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L196) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  mdebug("Number of futures (= number of chunks): %d", nchunks)
  ^~~~~~
```
[R/doFuture.R:198:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L198) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  mdebug("Launching %d futures (chunks) ...", nchunks)
  ^~~~~~
```
[R/doFuture.R:201:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L201) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("Chunk #%d of %d ...", ii, length(chunks))
    ^~~~~~
```
[R/doFuture.R:215:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L215) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("Chunk #%d of %d ... DONE", ii, nchunks)
    ^~~~~~
```
[R/doFuture.R:218:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L218) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  mdebug("Launching %d futures (chunks) ... DONE", nchunks)
  ^~~~~~
```
[R/doFuture.R:226:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L226) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("- resolving future")
             ^~~~~~
```
[R/doFuture.R:227:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L227) *warning:* **no visible global function definition for ‘resolve’, Did you mean 'qr.solve'?**
```r
  resolve(fs, value = TRUE)
  ^~~~~~~
```
[R/doFuture.R:230:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L230) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("- collecting values of future")
             ^~~~~~
```
[R/doFuture.R:231:31:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L231) *warning:* **no visible binding for global variable ‘value’**
```r
  results <- lapply(fs, FUN = value, signal = FALSE)
                              ^~~~~
```
[R/doFuture.R:241:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L241) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("- accumulating results")
             ^~~~~~
```
[R/doFuture.R:259:5:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L259) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
    mdebug("- processing errors (handler = %s)", sQuote(error_handling))
    ^~~~~~
```
[R/doFuture.R:261:18:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L261) *warning:* **no visible global function definition for ‘getErrorValue’**
```r
  error_value <- getErrorValue(it)
                 ^~~~~~~~~~~~~
```
[R/doFuture.R:263:20:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L263) *warning:* **no visible global function definition for ‘getErrorIndex’**
```r
    error_index <- getErrorIndex(it)
                   ^~~~~~~~~~~~~
```
[R/doFuture.R:274:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L274) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("- extracting results")
             ^~~~~~
```
[R/doFuture.R:275:10:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L275) *warning:* **no visible global function definition for ‘getResult’**
```r
  res <- getResult(it)
         ^~~~~~~~~
```
[R/doFuture.R:277:14:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/doFuture.R#L277) *warning:* **no visible global function definition for ‘mdebug’, Did you mean 'debug'?**
```r
  if (debug) mdebug("doFuture() ... DONE")
             ^~~~~~
```
[R/registerDoFuture.R:22:3:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/registerDoFuture.R#L22) *warning:* **no visible global function definition for ‘setDoPar’**
```r
  setDoPar(doFuture, data = NULL, info = info)
  ^~~~~~~~
```
[R/registerDoFuture.R:22:12:](https://github.com/HenrikBengtsson/doFuture/blob/b4ab51b4ad33aded3909d1c9e03c673e9af07c12/R/registerDoFuture.R#L22) *warning:* **no visible binding for global variable ‘doFuture’**
```r
  setDoPar(doFuture, data = NULL, info = info)
           ^~~~~~~~
```