{"comment":{"url":"https://api.github.com/repos/jMotif/jmotif-R/comments/27430526","html_url":"https://github.com/jMotif/jmotif-R/commit/1d95d510727f4c8f74e94e213c424e5de037c9d4#commitcomment-27430526","id":27430526,"user":{"login":"lintr-bot","id":10925265,"avatar_url":"https://avatars3.githubusercontent.com/u/10925265?v=4","gravatar_id":"","url":"https://api.github.com/users/lintr-bot","html_url":"https://github.com/lintr-bot","followers_url":"https://api.github.com/users/lintr-bot/followers","following_url":"https://api.github.com/users/lintr-bot/following{/other_user}","gists_url":"https://api.github.com/users/lintr-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/lintr-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lintr-bot/subscriptions","organizations_url":"https://api.github.com/users/lintr-bot/orgs","repos_url":"https://api.github.com/users/lintr-bot/repos","events_url":"https://api.github.com/users/lintr-bot/events{/privacy}","received_events_url":"https://api.github.com/users/lintr-bot/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"1d95d510727f4c8f74e94e213c424e5de037c9d4","created_at":"2018-02-08T18:36:10Z","updated_at":"2018-02-08T18:36:10Z","author_association":"NONE","body":"[inst/site/classifier_test.R:18:24:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/classifier_test.R#L18) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​tfidf <- bags_to_tfidf( list(\"cylinder\" = cylinder, \"bell\" = bell, \"funnel\" = funnel) )\n                       ^\n```\n[inst/site/classifier_test.R:18:86:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/classifier_test.R#L18) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​tfidf <- bags_to_tfidf( list(\"cylinder\" = cylinder, \"bell\" = bell, \"funnel\" = funnel) )\n                                                                                     ^\n```\n[inst/site/classifier_test.R:38:17:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/classifier_test.R#L38) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​error <- length( which(labels_test != labels_predicted)) / length(labels_test)\n                ^\n```\n[inst/site/direct_optimizer_test.R:17:15:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L17) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​  m <- length(train_labels)\n              ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:18:22:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L18) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​  c <- length(unique(train_labels))\n                     ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:20:12:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L20) *warning:* **no visible global function definition for ‘cvFolds’**\n```r\n​  folds <- cvFolds(m, K = nfolds, type = \"random\")\n           ^~~~~~~\n```\n[inst/site/direct_optimizer_test.R:20:27:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L20) *warning:* **no visible binding for global variable ‘nfolds’, Did you mean 'folds'?**\n```r\n​  folds <- cvFolds(m, K = nfolds, type = \"random\")\n                          ^~~~~~\n```\n[inst/site/direct_optimizer_test.R:28:32:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L28) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​    bags <- plyr::alply(unique(train_labels), 1, function(x){x})\n                               ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:28:61:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L28) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​    bags <- plyr::alply(unique(train_labels), 1, function(x){x})\n                                                            ^\n```\n[inst/site/direct_optimizer_test.R:30:19:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L30) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​      ll <- which(train_labels[set_train] == unique(train_labels)[j])\n                  ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:30:19:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L30) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​      ll <- which(train_labels[set_train] == unique(train_labels)[j])\n                  ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:32:41:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L32) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​                  manyseries_to_wordbag( (train_data[set_train, ])[ll,], w, p, a, \"exact\", 0.01)\n                                        ^\n```\n[inst/site/direct_optimizer_test.R:32:71:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L32) *style:* **Commas should always have a space after.**\n```r\n​                  manyseries_to_wordbag( (train_data[set_train, ])[ll,], w, p, a, \"exact\", 0.01)\n                                                                      ^\n```\n[inst/site/direct_optimizer_test.R:34:36:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L34) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​    tfidf <- jmotif::bags_to_tfidf( bags )\n                                   ^\n```\n[inst/site/direct_optimizer_test.R:34:41:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L34) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​    tfidf <- jmotif::bags_to_tfidf( bags )\n                                        ^\n```\n[inst/site/direct_optimizer_test.R:37:20:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L37) *warning:* **no visible binding for global variable ‘train_labels’**\n```r\n​    labels_test <- train_labels[set_test]\n                   ^~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:38:18:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L38) *warning:* **no visible binding for global variable ‘train_data’**\n```r\n​    data_test <- train_data[set_test, ]\n                 ^~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:43:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L43) *warning:* **no visible global function definition for ‘series_to_wordbag’**\n```r\n​        bag <- series_to_wordbag(data_test[j, ], w, p, a, \"exact\", 0.01)\n               ^~~~~~~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:45:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L45) *warning:* **no visible global function definition for ‘series_to_wordbag’**\n```r\n​        bag <- series_to_wordbag(data_test, w, p, a, \"exact\", 0.01)\n               ^~~~~~~~~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:47:18:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L47) *warning:* **no visible global function definition for ‘cosine_sim’**\n```r\n​      cosines <- cosine_sim(list(\"bag\" = bag, \"tfidf\" = tfidf))\n                 ^~~~~~~~~~\n```\n[inst/site/direct_optimizer_test.R:55:27:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L55) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​    error <- length(which((labels_test != labels_predicted))) / length(labels_test)\n                          ^\n```\n[inst/site/direct_optimizer_test.R:60:15:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L60) *warning:* **no visible global function definition for ‘laply’, Did you mean 'lapply'?**\n```r\n​  err <- mean(laply(errors,function(x){x}))\n              ^~~~~\n```\n[inst/site/direct_optimizer_test.R:60:28:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L60) *style:* **Commas should always have a space after.**\n```r\n​  err <- mean(laply(errors,function(x){x}))\n                           ^\n```\n[inst/site/direct_optimizer_test.R:60:39:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L60) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​  err <- mean(laply(errors,function(x){x}))\n                                      ^\n```\n[inst/site/direct_optimizer_test.R:71:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L71) *style:* **Variable or function name should be snake_case.**\n```r\n​S <- directL(cverror, rep(c(10, 2, 2)), rep(c(120, 60, 12)),\n^\n```\n[inst/site/direct_optimizer_test.R:77:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L77) *style:* **Variable or function name should be snake_case.**\n```r\n​S <- directL(cverror, rep(c(10, 2, 2)), rep(c(140, 50, 12)),\n^\n```\n[inst/site/direct_optimizer_test.R:79:9:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L79) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​cverror( S$par)\n        ^\n```\n[inst/site/direct_optimizer_test.R:86:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L86) *style:* **Variable or function name should be snake_case.**\n```r\n​S <- directL(cverror, rep(c(10, 2, 2)), rep(c(470, 100, 16)),\n^\n```\n[inst/site/direct_optimizer_test.R:89:9:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L89) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​cverror( S$par)\n        ^\n```\n[inst/site/direct_optimizer_test.R:92:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/direct_optimizer_test.R#L92) *style:* **Commented code should be removed.**\n```r\n​# nloptr.print.options()\n  ^~~~~~~~~~~~~~~~~~~~~~\n```\n[inst/site/makedata.R:8:14:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L8) *style:* **Use <-, not =, for assignment.**\n```r\n​labels_train = unlist(dtrain[,1])\n             ^\n```\n[inst/site/makedata.R:8:31:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L8) *style:* **Commas should always have a space after.**\n```r\n​labels_train = unlist(dtrain[,1])\n                              ^\n```\n[inst/site/makedata.R:9:13:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L9) *style:* **Use <-, not =, for assignment.**\n```r\n​labels_test = unlist(dtest[,1])\n            ^\n```\n[inst/site/makedata.R:9:29:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L9) *style:* **Commas should always have a space after.**\n```r\n​labels_test = unlist(dtest[,1])\n                            ^\n```\n[inst/site/makedata.R:11:37:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L11) *style:* **Commas should always have a space after.**\n```r\n​data_train <- matrix(unlist(dtrain[,-1]), nrow = length(labels_train))\n                                    ^\n```\n[inst/site/makedata.R:12:35:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L12) *style:* **Commas should always have a space after.**\n```r\n​data_test <- matrix(unlist(dtest[,-1]), nrow = length(labels_test))\n                                  ^\n```\n[inst/site/makedata.R:14:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L14) *style:* **Variable or function name should be snake_case.**\n```r\n​Gun_Point <- list(\"labels_train\" = labels_train, \"data_train\" = data_train,\n^~~~~~~~~\n```\n[inst/site/makedata.R:24:32:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L24) *style:* **Commas should always have a space after.**\n```r\n​labels_train <- unlist(dtrain[,1])\n                               ^\n```\n[inst/site/makedata.R:25:30:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L25) *style:* **Commas should always have a space after.**\n```r\n​labels_test <- unlist(dtest[,1])\n                             ^\n```\n[inst/site/makedata.R:27:37:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L27) *style:* **Commas should always have a space after.**\n```r\n​data_train <- matrix(unlist(dtrain[,-1]), nrow = length(labels_train))\n                                    ^\n```\n[inst/site/makedata.R:28:35:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L28) *style:* **Commas should always have a space after.**\n```r\n​data_test <- matrix(unlist(dtest[,-1]), nrow = length(labels_test))\n                                  ^\n```\n[inst/site/makedata.R:30:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/makedata.R#L30) *style:* **Variable or function name should be snake_case.**\n```r\n​CBF <- list(\"labels_train\" = labels_train, \"data_train\" = data_train,\n^~~\n```\n[inst/site/readme_examples.R:14:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L14) *style:* **Commas should always have a space after.**\n```r\n​abline(h = c(1,-1), lty = 2, col = \"gray50\")\n               ^\n```\n[inst/site/readme_examples.R:15:36:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L15) *style:* **Commas should always have a space after.**\n```r\n​legend(0, -4, c(\"scaled sine wave\",\"z-normalized wave\"),\n                                   ^\n```\n[inst/site/readme_examples.R:16:18:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L16) *style:* **Commas should always have a space after.**\n```r\n​       lty = c(1,1), lwd = c(1,1), col = c(\"blue\",\"red\"), cex = 0.8)\n                 ^\n```\n[inst/site/readme_examples.R:16:32:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L16) *style:* **Commas should always have a space after.**\n```r\n​       lty = c(1,1), lwd = c(1,1), col = c(\"blue\",\"red\"), cex = 0.8)\n                               ^\n```\n[inst/site/readme_examples.R:16:51:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L16) *style:* **Commas should always have a space after.**\n```r\n​       lty = c(1,1), lwd = c(1,1), col = c(\"blue\",\"red\"), cex = 0.8)\n                                                  ^\n```\n[inst/site/readme_examples.R:24:27:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L24) *style:* **Commas should never have a space before.**\n```r\n​abline(v = c(1, 1 + 7 / 3 , 1 + 7 / 3 * 2, 8), lty = 3, lwd = 2, col = \"gray50\")\n                         ~^\n```\n[inst/site/readme_examples.R:38:13:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L38) *style:* **Commas should always have a space after.**\n```r\n​y <- seq(-2,2, length = 100)\n            ^\n```\n[inst/site/readme_examples.R:40:9:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L40) *style:* **Commas should always have a space after.**\n```r\n​lines(x,y, type = \"l\", lwd = 5, col = \"magenta\")\n        ^\n```\n[inst/site/readme_examples.R:62:82:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L62) *style:* **Commas should always have a space after.**\n```r\n​cylinder <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 1,],\n                                                                                 ^\n```\n[inst/site/readme_examples.R:64:78:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L64) *style:* **Commas should always have a space after.**\n```r\n​bell <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 2,],\n                                                                             ^\n```\n[inst/site/readme_examples.R:66:80:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L66) *style:* **Commas should always have a space after.**\n```r\n​funnel <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 3,],\n                                                                               ^\n```\n[inst/site/readme_examples.R:71:7:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L71) *style:* **Use <-, not =, for assignment.**\n```r\n​tfidf = bags_to_tfidf(\n      ^\n```\n[inst/site/readme_examples.R:72:64:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L72) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  list(\"cylinder\" = cylinder, \"bell\" = bell, \"funnel\" = funnel) )\n                                                               ^\n```\n[inst/site/readme_examples.R:77:59:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L77) *style:* **Commas should always have a space after.**\n```r\n​sample <- (CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 3,])[1,]\n                                                          ^\n```\n[inst/site/readme_examples.R:77:64:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L77) *style:* **Commas should always have a space after.**\n```r\n​sample <- (CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 3,])[1,]\n                                                               ^\n```\n[inst/site/readme_examples.R:87:34:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L87) *style:* **Commas should always have a space after.**\n```r\n​  pattern <- weighted_patterns[i,]\n                                 ^\n```\n[inst/site/readme_examples.R:101:56:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L101) *style:* **Commas should always have a space after.**\n```r\n​  scale_colour_gradientn(name = \"Class specificity:  \",limits = c(0,1),\n                                                       ^\n```\n[inst/site/readme_examples.R:101:69:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L101) *style:* **Commas should always have a space after.**\n```r\n​  scale_colour_gradientn(name = \"Class specificity:  \",limits = c(0,1),\n                                                                    ^\n```\n[inst/site/readme_examples.R:109:47:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L109) *style:* **Commas should always have a space after.**\n```r\n​        axis.text.x = element_text(size = 12),axis.text.y = element_blank(),\n                                              ^\n```\n[inst/site/readme_examples.R:118:33:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L118) *style:* **Commas should always have a space after.**\n```r\n​for (i in c(1:length(data_test[,1]))) {\n                                ^\n```\n[inst/site/readme_examples.R:119:25:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L119) *style:* **Commas should always have a space after.**\n```r\n​  series <- data_test[i,]\n                        ^\n```\n[inst/site/readme_examples.R:127:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L127) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​error <- length(which((labels_test != labels_predicted))) / length(labels_test)\n                      ^\n```\n[inst/site/readme_examples.R:132:7:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/readme_examples.R#L132) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​which((labels_test != labels_predicted))\n      ^\n```\n[inst/site/SO46430559.R:12:41:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/SO46430559.R#L12) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​examplezn <- llply(example1, function(x){znorm(x, threshold = 0.01)})\n                                        ^\n```\n[inst/site/SO46430559.R:15:29:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/SO46430559.R#L15) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​llply(examplezn, function(x){paa(x, 3)})\n                            ^\n```\n[inst/site/SO46430559.R:18:43:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/SO46430559.R#L18) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​example_sax <- llply(example1, function(x){sax_via_window(x, 3, 2, 3, \"none\", 0.1)})\n                                          ^\n```\n[inst/site/test_RRA.R:15:25:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/test_RRA.R#L15) *style:* **Commas should always have a space after.**\n```r\n​sax_df <- ldply(ecg_sax,function(x){x})\n                        ^\n```\n[inst/site/test_RRA.R:15:36:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/test_RRA.R#L15) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**\n```r\n​sax_df <- ldply(ecg_sax,function(x){x})\n                                   ^\n```\n[inst/site/test_RRA.R:16:26:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/test_RRA.R#L16) *style:* **Commas should always have a space after.**\n```r\n​names(sax_df) <- c(\"idx\",\"word\")\n                         ^\n```\n[inst/site/test_RRA.R:31:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/site/test_RRA.R#L31) *style:* **Trailing blank lines are superfluous.**\n```r\n​\n^\n```\n[inst/test_data/bugs.R:6:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L6) *style:* **Lines should not be more than 100 characters.**\n```r\n​str_to_repair_grammar(\"adcc ccbb bbbd bbcb bdbb cbbc accb ccbb daba cbbc bbdb bcbb dabc bbcb adcc ccbc dabb\tcbbd bbcb cdbb cbbc bbdc adcc cbcb bbbd bbcb bdbb cbbc accb cdbb dbbb cbbd bccb cdab cbbc accb ccbb dabb cbbd bbcb bdbb cbbc accb ccbb cbbd bbcb bdbb cbbc accb ccbb dabb cbbd bbcb bdbb cbbc accc ccbc dacb bbbd \tbbcb bdbb cbbc accb ccbc dbba cbbc bbdb bcbb dbbc bbcb adcc ccbc daba cbbc bbdb bcbb dbbc bbcb adcb bdac dcbb cbbd bbcb bdbb cbbc accb cdbb dbbb cbbd bccb bdab cbbc accb cdbb dbbb cbbd bbcb bdbb cbbc accc ccbb cbbd bbcb bdbb cbbc accb\")\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[inst/test_data/bugs.R:11:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L11) *style:* **Lines should not be more than 100 characters.**\n```r\n​str_to_repair_grammar(\"dacb bbbd bbcb bdbb cbbc accb ccbc dbba cbbc bbdb bcbb dbbc bbcb adcc ccbc daba cbbc bbdb bcbb dbbc bbcb adcb bdac dcbb cbbd bbcb bdbb cbbc accb cdbb dbbb cbbd bccb bdab cbbc accb cdbb dbbb cbbd bbcb bdbb cbbc accc ccbb cbbd bbcb bdbb cbbc accb\")\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[inst/test_data/bugs.R:14:6:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L14) *style:* **Use <-, not =, for assignment.**\n```r\n​data = fread(\"/Users/psenin/workspace/grammarviz2_src/data/mitdb__100_180.txt\")\n     ^\n```\n[inst/test_data/bugs.R:15:5:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L15) *style:* **Use <-, not =, for assignment.**\n```r\n​sax = sax_via_window(data$V1, 160, 4, 4, \"exact\", 0.001)\n    ^\n```\n[inst/test_data/bugs.R:16:5:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L16) *style:* **Use <-, not =, for assignment.**\n```r\n​str = paste(unlist(sax), collapse =\" \")\n    ^\n```\n[inst/test_data/bugs.R:16:35:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L16) *style:* **Put spaces around all infix operators.**\n```r\n​str = paste(unlist(sax), collapse =\" \")\n                                  ^~\n```\n[inst/test_data/bugs.R:17:9:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L17) *style:* **Use <-, not =, for assignment.**\n```r\n​grammar = str_to_repair_grammar(str)\n        ^\n```\n[inst/test_data/bugs.R:19:6:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L19) *style:* **Use <-, not =, for assignment.**\n```r\n​str1 = grammar[[1]]$rule_string\n     ^\n```\n[inst/test_data/bugs.R:20:4:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L20) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​for(i in c(2:95)){\n   ^\n```\n[inst/test_data/bugs.R:21:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L21) *style:* **Lines should not be more than 100 characters.**\n```r\n​\tstr1 = gsub(paste(\" R\", i - 1, \" \", sep = \"\"), paste(\" \", grammar[[i]]$expanded_rule_string, \" \", sep = \"\"), str1)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[inst/test_data/bugs.R:21:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L21) *style:* **Use spaces to indent, not tabs.**\n```r\n​\tstr1 = gsub(paste(\" R\", i - 1, \" \", sep = \"\"), paste(\" \", grammar[[i]]$expanded_rule_string, \" \", sep = \"\"), str1)\n^\n```\n[inst/test_data/bugs.R:21:7:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L21) *style:* **Use <-, not =, for assignment.**\n```r\n​\tstr1 = gsub(paste(\" R\", i - 1, \" \", sep = \"\"), paste(\" \", grammar[[i]]$expanded_rule_string, \" \", sep = \"\"), str1)\n      ^\n```\n[inst/test_data/bugs.R:26:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/inst/test_data/bugs.R#L26) *error:* **unexpected '>'**\n```r\n​> library(jmotif)\n^\n```\n[R/jmotif.R:25:27:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L25) *style:* **Commas should always have a space after.**\n```r\n​        distance_matrix[i,j] <- (cutlines[i] - cutlines[j - 1]) * (cutlines[i] - cutlines[j - 1])\n                          ^\n```\n[R/jmotif.R:27:27:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L27) *style:* **Commas should always have a space after.**\n```r\n​        distance_matrix[j,i] <- distance_matrix[i,j]\n                          ^\n```\n[R/jmotif.R:27:51:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L27) *style:* **Commas should always have a space after.**\n```r\n​        distance_matrix[j,i] <- distance_matrix[i,j]\n                                                  ^\n```\n[R/jmotif.R:34:72:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L34) *style:* **Commas should always have a space after.**\n```r\n​    stop(paste(\"unable to get a distance matrix for the alphabet size\",a_size))\n                                                                       ^\n```\n[R/jmotif.R:57:9:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L57) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​    if ( any(letters_to_idx(str1) > alphabet_size) |\n        ^\n```\n[R/jmotif.R:62:21:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/jmotif.R#L62) *warning:* **no visible global function definition for ‘sax_distance_matrix’**\n```r\n​      dist_table <- sax_distance_matrix(alphabet_size)\n                    ^~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:34:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L34) *style:* **Lines should not be more than 100 characters.**\n```r\n​#' Finds the Euclidean distance between points, if distance is above the threshold, abandons the computation\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:67:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L67) *style:* **Lines should not be more than 100 characters.**\n```r\n​    .Call('_jmotif_find_discords_hotsax', PACKAGE = 'jmotif', ts, w_size, paa_size, a_size, n_threshold, discords_num)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:123:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L123) *style:* **Lines should not be more than 100 characters.**\n```r\n​find_discords_rra <- function(series, w_size, paa_size, a_size, nr_strategy, n_threshold, discords_num) {\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:124:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L124) *style:* **Lines should not be more than 100 characters.**\n```r\n​    .Call('_jmotif_find_discords_rra', PACKAGE = 'jmotif', series, w_size, paa_size, a_size, nr_strategy, n_threshold, discords_num)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:127:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L127) *style:* **Lines should not be more than 100 characters.**\n```r\n​#' Translates an alphabet size into the array of corresponding SAX cut-lines built using the Normal distribution.\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:181:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L181) *style:* **Lines should not be more than 100 characters.**\n```r\n​#' @param nr_strategy the Numerosity Reduction strategy, acceptable values are \"exact\" and \"mindist\" --\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:190:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L190) *style:* **Lines should not be more than 100 characters.**\n```r\n​    .Call('_jmotif_sax_via_window', PACKAGE = 'jmotif', ts, w_size, paa_size, a_size, nr_strategy, n_threshold)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:224:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L224) *style:* **Lines should not be more than 100 characters.**\n```r\n​    .Call('_jmotif_series_to_wordbag', PACKAGE = 'jmotif', ts, w_size, paa_size, a_size, nr_strategy, n_threshold)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:243:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L243) *style:* **Lines should not be more than 100 characters.**\n```r\n​    .Call('_jmotif_manyseries_to_wordbag', PACKAGE = 'jmotif', data, w_size, paa_size, a_size, nr_strategy, n_threshold)\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[R/RcppExports.R:381:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/R/RcppExports.R#L381) *style:* **Trailing blank lines are superfluous.**\n```r\n​\n^\n```\n[tests/testthat/test_cosine_sim.R:1:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosine_sim.R#L1) *style:* **Use <-, not =, for assignment.**\n```r\n​a = c(2, 1, 0, 2, 0, 1, 1, 1)\n  ^\n```\n[tests/testthat/test_cosine_sim.R:6:58:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosine_sim.R#L6) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(0.1784162, as.numeric(cosine_dist(rbind(a,b))), tolerance = 1e-6)\n                                                         ^\n```\n[tests/testthat/test_cosines.R:4:78:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L4) *style:* **Commas should always have a space after.**\n```r\n​bag1 <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 1,],\n                                                                             ^\n```\n[tests/testthat/test_cosines.R:6:78:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L6) *style:* **Commas should always have a space after.**\n```r\n​bag2 <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 2,],\n                                                                             ^\n```\n[tests/testthat/test_cosines.R:8:78:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L8) *style:* **Commas should always have a space after.**\n```r\n​bag3 <- manyseries_to_wordbag(CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 3,],\n                                                                             ^\n```\n[tests/testthat/test_cosines.R:11:57:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L11) *style:* **Commas should always have a space after.**\n```r\n​sample <- (CBF[[\"data_test\"]][CBF[[\"labels_test\"]] == 3,])[1,]\n                                                        ^\n```\n[tests/testthat/test_cosines.R:11:62:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L11) *style:* **Commas should always have a space after.**\n```r\n​sample <- (CBF[[\"data_test\"]][CBF[[\"labels_test\"]] == 3,])[1,]\n                                                             ^\n```\n[tests/testthat/test_cosines.R:15:26:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L15) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  tfidf <- bags_to_tfidf( list(\"cylinder\" = bag1, \"bell\" = bag2, \"funnel\" = bag3) )\n                         ^\n```\n[tests/testthat/test_cosines.R:15:82:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_cosines.R#L15) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  tfidf <- bags_to_tfidf( list(\"cylinder\" = bag1, \"bell\" = bag2, \"funnel\" = bag3) )\n                                                                                 ^\n```\n[tests/testthat/test_discord_brute_force.R:18:50:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_brute_force.R#L18) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(discords[discords$position == 411,]$nn_distance, 1.5045846602966542)\n                                                 ^\n```\n[tests/testthat/test_discord_hot_sax.R:16:50:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_hot_sax.R#L16) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(discords[discords$position == 430,]$nn_distance, 5.252618285620532)\n                                                 ^\n```\n[tests/testthat/test_discord_hot_sax.R:17:50:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_hot_sax.R#L17) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(discords[discords$position == 318,]$nn_distance, 4.154825115936453)\n                                                 ^\n```\n[tests/testthat/test_discord_hot_sax.R:18:51:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_hot_sax.R#L18) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(discords[discords$position == 2080,]$nn_distance, 2.381003269560112)\n                                                  ^\n```\n[tests/testthat/test_discord_hot_sax.R:19:49:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_hot_sax.R#L19) *style:* **Commas should always have a space after.**\n```r\n​  expect_equal(discords[discords$position == 25,]$nn_distance, 2.363633774221037)\n                                                ^\n```\n[tests/testthat/test_discord_rra.R:3:26:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_rra.R#L3) *style:* **Commas should always have a space after.**\n```r\n​  expect_true(discords[1,]$start < 420)\n                         ^\n```\n[tests/testthat/test_discord_rra.R:4:26:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_discord_rra.R#L4) *style:* **Commas should always have a space after.**\n```r\n​  expect_true(discords[1,]$end > 420)\n                         ^\n```\n[tests/testthat/test_early_abandoned_dist.R:3:38:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_early_abandoned_dist.R#L3) *style:* **Commas should always have a space after.**\n```r\n​test_dist <- as.numeric(dist(rbind(a,b)))\n                                     ^\n```\n[tests/testthat/test_early_abandoned_dist.R:7:44:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_early_abandoned_dist.R#L7) *style:* **Commas should always have a space after.**\n```r\n​  expect_error(early_abandoned_dist(a, c(1,2), 1))\n                                           ^\n```\n[tests/testthat/test_min_dist_equal.R:5:38:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L5) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_equal(m3[1, 3], 0.7421040279 )\n                                     ^\n```\n[tests/testthat/test_min_dist_equal.R:16:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L16) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_equal( sqrt((min_dist(str1, str2, 3)) ^ 2 / 2), 0.7421040279 )\n               ^\n```\n[tests/testthat/test_min_dist_equal.R:16:22:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L16) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​  expect_equal( sqrt((min_dist(str1, str2, 3)) ^ 2 / 2), 0.7421040279 )\n                     ^\n```\n[tests/testthat/test_min_dist_equal.R:16:70:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L16) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_equal( sqrt((min_dist(str1, str2, 3)) ^ 2 / 2), 0.7421040279 )\n                                                                     ^\n```\n[tests/testthat/test_min_dist_equal.R:18:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L18) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_equal( sqrt((min_dist(str2, str3, 3)) ^ 2), 0.7421040279 )\n               ^\n```\n[tests/testthat/test_min_dist_equal.R:18:22:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L18) *style:* **Place a space before left parenthesis, except in a function call.**\n```r\n​  expect_equal( sqrt((min_dist(str2, str3, 3)) ^ 2), 0.7421040279 )\n                     ^\n```\n[tests/testthat/test_min_dist_equal.R:18:66:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist_equal.R#L18) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_equal( sqrt((min_dist(str2, str3, 3)) ^ 2), 0.7421040279 )\n                                                                 ^\n```\n[tests/testthat/test_min_dist.R:3:15:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L3) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_true( is_equal_mindist(\"aaa\", \"bbb\")  )\n              ^\n```\n[tests/testthat/test_min_dist.R:3:47:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L3) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_true( is_equal_mindist(\"aaa\", \"bbb\")  )\n                                              ^\n```\n[tests/testthat/test_min_dist.R:5:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L5) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_false( is_equal_mindist(\"aaa\", \"bbba\")  )\n               ^\n```\n[tests/testthat/test_min_dist.R:5:49:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L5) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_false( is_equal_mindist(\"aaa\", \"bbba\")  )\n                                                ^\n```\n[tests/testthat/test_min_dist.R:7:16:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L7) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_false( is_equal_mindist(\"aaa\", \"aca\")  )\n               ^\n```\n[tests/testthat/test_min_dist.R:7:48:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_min_dist.R#L7) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  expect_false( is_equal_mindist(\"aaa\", \"aca\")  )\n                                               ^\n```\n[tests/testthat/test_RePair_via_decompression.R:1:12:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_RePair_via_decompression.R#L1) *style:* **Use <-, not =, for assignment.**\n```r\n​sax_string = paste(\n           ^\n```\n[tests/testthat/test_RePair_via_decompression.R:10:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_RePair_via_decompression.R#L10) *style:* **Variable or function name should be snake_case.**\n```r\n​  uncompressed_R0 = paste(grammar[[1]]$rule_string, \" \", sep = \"\")\n  ^~~~~~~~~~~~~~~\n```\n[tests/testthat/test_RePair_via_decompression.R:10:19:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_RePair_via_decompression.R#L10) *style:* **Use <-, not =, for assignment.**\n```r\n​  uncompressed_R0 = paste(grammar[[1]]$rule_string, \" \", sep = \"\")\n                  ^\n```\n[tests/testthat/test_RePair_via_decompression.R:14:7:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_RePair_via_decompression.R#L14) *style:* **Variable or function name should be snake_case.**\n```r\n​      uncompressed_R0 = gsub(\n      ^~~~~~~~~~~~~~~\n```\n[tests/testthat/test_RePair_via_decompression.R:14:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_RePair_via_decompression.R#L14) *style:* **Use <-, not =, for assignment.**\n```r\n​      uncompressed_R0 = gsub(\n                      ^\n```\n[tests/testthat/test_SAX_simple.R:15:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L15) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str1_10_11 <- paste( matrix(unlist(sax_by_chunking(dat1, 10, 11, 0.01)),\n                      ^\n```\n[tests/testthat/test_SAX_simple.R:16:53:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L16) *style:* **Commas should always have a space after.**\n```r\n​                             nrow = 10, byrow = T)[,1], collapse = \"\")\n                                                    ^\n```\n[tests/testthat/test_SAX_simple.R:17:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L17) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str1_14_10 <- paste( matrix(unlist(sax_by_chunking(dat1, 14, 10, 0.01)),\n                      ^\n```\n[tests/testthat/test_SAX_simple.R:18:53:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L18) *style:* **Commas should always have a space after.**\n```r\n​                             nrow = 14, byrow = T)[,1], collapse = \"\")\n                                                    ^\n```\n[tests/testthat/test_SAX_simple.R:19:21:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L19) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str1_9_7 <- paste( matrix(unlist(sax_by_chunking(dat1, 9, 7, 0.01)),\n                    ^\n```\n[tests/testthat/test_SAX_simple.R:20:52:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L20) *style:* **Commas should always have a space after.**\n```r\n​                             nrow = 9, byrow = T)[,1], collapse = \"\")\n                                                   ^\n```\n[tests/testthat/test_SAX_simple.R:34:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L34) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str2_10_11 <- paste( matrix(unlist(sax_by_chunking(dat2, 10, 11, 0.01)),\n                      ^\n```\n[tests/testthat/test_SAX_simple.R:36:23:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L36) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str2_14_10 <- paste( matrix(unlist(sax_by_chunking(dat2, 14, 10, 0.01)),\n                      ^\n```\n[tests/testthat/test_SAX_simple.R:38:21:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_simple.R#L38) *style:* **Do not place spaces around code in parentheses or square brackets.**\n```r\n​  str2_9_7 <- paste( matrix(unlist(sax_by_chunking(dat2, 9, 7, 0.01)),\n                    ^\n```\n[tests/testthat/test_SAX_strategies.R:12:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_strategies.R#L12) *style:* **Commented code should be removed.**\n```r\n​# plot(as.numeric(dat),t=\"l\")\n  ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[tests/testthat/test_SAX_via_window.R:12:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_via_window.R#L12) *style:* **Commented code should be removed.**\n```r\n​# plot(as.numeric(dat),t=\"l\")\n  ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[tests/testthat/test_SAX_with_NAs.R:12:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_with_NAs.R#L12) *style:* **Commented code should be removed.**\n```r\n​# plot(as.numeric(dat),t=\"l\")\n  ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n[tests/testthat/test_SAX_with_NAs.R:40:65:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_with_NAs.R#L40) *style:* **Commas should always have a space after.**\n```r\n​    cylinders <- CBF[[\"data_train\"]][CBF[[\"labels_train\"]] == 1,]\n                                                                ^\n```\n[tests/testthat/test_SAX_with_NAs.R:42:22:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_SAX_with_NAs.R#L42) *style:* **Commas should always have a space after.**\n```r\n​    c <- cylinders[2,]\n                     ^\n```\n[tests/testthat/test_wordbag.R:17:61:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L17) *style:* **Commas should always have a space after.**\n```r\n​  words <- table(matrix(unlist(sax1), ncol = 1, byrow = T)[,1])\n                                                            ^\n```\n[tests/testthat/test_wordbag.R:22:44:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L22) *style:* **Commas should always have a space after.**\n```r\n​                    wb1[wb1$words == \"bca\",]$counts)\n                                           ^\n```\n[tests/testthat/test_wordbag.R:30:46:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L30) *style:* **Commas should always have a space after.**\n```r\n​  wb2 <- manyseries_to_wordbag(t(t(rbind(dat,dat))), 6, 3, 3, \"none\", 0.01)\n                                             ^\n```\n[tests/testthat/test_wordbag.R:41:61:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L41) *style:* **Commas should always have a space after.**\n```r\n​  words <- table(matrix(unlist(sax1), ncol = 1, byrow = T)[,1])\n                                                            ^\n```\n[tests/testthat/test_wordbag.R:46:39:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L46) *style:* **Commas should always have a space after.**\n```r\n​               wb1[wb1$words == \"bca\",]$counts)\n                                      ^\n```\n[tests/testthat/test_wordbag.R:54:46:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_wordbag.R#L54) *style:* **Commas should always have a space after.**\n```r\n​  wb2 <- manyseries_to_wordbag(t(t(rbind(dat,dat))), 6, 3, 3, \"mindist\", 0.01)\n                                             ^\n```\n[tests/testthat/test_znorm.R:1:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_znorm.R#L1) *style:* **Variable or function name should be snake_case.**\n```r\n​X = c(-1, -2, -1, 0, 2, 1, 1, 0)\n^\n```\n[tests/testthat/test_znorm.R:1:3:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_znorm.R#L1) *style:* **Use <-, not =, for assignment.**\n```r\n​X = c(-1, -2, -1, 0, 2, 1, 1, 0)\n  ^\n```\n[tests/testthat/test_znorm.R:2:1:](https://github.com/jMotif/jmotif-R/blob/1d95d510727f4c8f74e94e213c424e5de037c9d4/tests/testthat/test_znorm.R#L2) *style:* **Variable or function name should be snake_case.**\n```r\n​Xscaled <- X / 100\n^~~~~~~\n```"}}
{"actor":{"display_login":"lintr-bot"}}