[inst/examples/Ants/Ants.R:13:2:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L13) *style:* **Commented code should be removed.**
```r
#library(testthat) # for testing
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:19:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L19) *style:* **Commented code should be removed.**
```r
# Torus = FALSE
  ^~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:29:86:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L29) *style:* **Trailing whitespace is superfluous.**
```r
chemical <- createWorld(minPxcor = -35, maxPxcor = 35, minPycor = -35, maxPycor = 35,
                                                                                ^
```
[inst/examples/Ants/Ants.R:38:92:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L38) *style:* **Trailing whitespace is superfluous.**
```r
nest <- NLset(world = nest, agents = PxcorPycorFromCell(world = nest, cellNum = patchNest),
                                                                                ^
```
[inst/examples/Ants/Ants.R:41:89:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L41) *style:* **Trailing whitespace is superfluous.**
```r
nestScent <- NLset(world = nestScent, agents = patches(nestScent), val = 200 - distNest)
                                                                                ^
```
[inst/examples/Ants/Ants.R:47:50:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L47) *style:* **Trailing whitespace is superfluous.**
```r
distFood1 <- NLdist(agents = patches(foodSource),
                                                 ^
```
[inst/examples/Ants/Ants.R:48:76:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L48) *style:* **Trailing whitespace is superfluous.**
```r
                    agents2 = cbind(x = 0.6 * maxPxcor(foodSource), y = 0))
                                                                           ^
```
[inst/examples/Ants/Ants.R:51:40:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L51) *style:* **Trailing whitespace is superfluous.**
```r
foodSource <- NLset(world = foodSource,
                                       ^
```
[inst/examples/Ants/Ants.R:52:91:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L52) *style:* **Trailing whitespace is superfluous.**
```r
                    agents = PxcorPycorFromCell(world = foodSource, cellNum = patchFood1),
                                                                                ^
```
[inst/examples/Ants/Ants.R:55:50:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L55) *style:* **Trailing whitespace is superfluous.**
```r
distFood2 <- NLdist(agents = patches(foodSource),
                                                 ^
```
[inst/examples/Ants/Ants.R:56:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L56) *style:* **Lines should not be more than 100 characters.**
```r
                    agents2 = cbind(x = -0.6 * maxPxcor(foodSource), y = -0.6 * maxPycor(foodSource)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:56:103:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L56) *style:* **Trailing whitespace is superfluous.**
```r
                    agents2 = cbind(x = -0.6 * maxPxcor(foodSource), y = -0.6 * maxPycor(foodSource)))
                                                                                ^
```
[inst/examples/Ants/Ants.R:58:40:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L58) *style:* **Trailing whitespace is superfluous.**
```r
foodSource <- NLset(world = foodSource,
                                       ^
```
[inst/examples/Ants/Ants.R:59:91:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L59) *style:* **Trailing whitespace is superfluous.**
```r
                    agents = PxcorPycorFromCell(world = foodSource, cellNum = patchFood2),
                                                                                ^
```
[inst/examples/Ants/Ants.R:62:50:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L62) *style:* **Trailing whitespace is superfluous.**
```r
distFood3 <- NLdist(agents = patches(foodSource),
                                                 ^
```
[inst/examples/Ants/Ants.R:63:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L63) *style:* **Lines should not be more than 100 characters.**
```r
                    agents2 = cbind(x = -0.8 * maxPxcor(foodSource), y = 0.8 * maxPycor(foodSource)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:63:102:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L63) *style:* **Trailing whitespace is superfluous.**
```r
                    agents2 = cbind(x = -0.8 * maxPxcor(foodSource), y = 0.8 * maxPycor(foodSource)))
                                                                                ^
```
[inst/examples/Ants/Ants.R:65:40:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L65) *style:* **Trailing whitespace is superfluous.**
```r
foodSource <- NLset(world = foodSource,
                                       ^
```
[inst/examples/Ants/Ants.R:66:91:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L66) *style:* **Trailing whitespace is superfluous.**
```r
                    agents = PxcorPycorFromCell(world = foodSource, cellNum = patchFood3),
                                                                                ^
```
[inst/examples/Ants/Ants.R:71:51:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L71) *style:* **Trailing whitespace is superfluous.**
```r
food <- NLset(world = food, agents = patchFood123,
                                                  ^
```
[inst/examples/Ants/Ants.R:72:83:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L72) *style:* **Trailing whitespace is superfluous.**
```r
              val = sample(c(1, 2), size = NLcount(patchFood123), replace = TRUE))
                                                                                ^
```
[inst/examples/Ants/Ants.R:76:69:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L76) *style:* **Trailing whitespace is superfluous.**
```r
ants <- createTurtles(n = nAnts, coords = cbind(xcor = 0, ycor = 0),
                                                                    ^
```
[inst/examples/Ants/Ants.R:86:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L86) *style:* **Variable or function name should be lowerCamelCase.**
```r
f_fS_world <- of(world = world, var = c("food", "foodSource"), agents = patches(world))
^~~~~~~~~~
```
[inst/examples/Ants/Ants.R:88:66:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L88) *style:* **Trailing whitespace is superfluous.**
```r
food1 <- sum(f_fS_world[f_fS_world[, "foodSource"] == 1, "food"])
                                                                 ^
```
[inst/examples/Ants/Ants.R:90:66:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L90) *style:* **Trailing whitespace is superfluous.**
```r
food2 <- sum(f_fS_world[f_fS_world[, "foodSource"] == 2, "food"])
                                                                 ^
```
[inst/examples/Ants/Ants.R:92:66:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L92) *style:* **Trailing whitespace is superfluous.**
```r
food3 <- sum(f_fS_world[f_fS_world[, "foodSource"] == 3, "food"])
                                                                 ^
```
[inst/examples/Ants/Ants.R:97:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L97) *style:* **Commented code should be removed.**
```r
  #print(paste("toNest", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:101:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L101) *style:* **Variable or function name should be lowerCamelCase.**
```r
  nestChem_pHere <- of(world = world, agents = pHere, var = c("nest", "chemical"))
  ^~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:101:83:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L101) *style:* **Trailing whitespace is superfluous.**
```r
  nestChem_pHere <- of(world = world, agents = pHere, var = c("nest", "chemical"))
                                                                                ^
```
[inst/examples/Ants/Ants.R:107:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L107) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(turtlesIn) != 0){
    ^
```
[inst/examples/Ants/Ants.R:114:81:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L114) *style:* **Trailing whitespace is superfluous.**
```r
  turtlesOut <- turtle(turtles, who = whoTurtles[nestChem_pHere[, "nest"] == 0])
                                                                                ^
```
[inst/examples/Ants/Ants.R:115:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L115) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(turtlesOut) != 0){
    ^
```
[inst/examples/Ants/Ants.R:117:55:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L117) *style:* **Trailing whitespace is superfluous.**
```r
    pHereOut <- pHere[nestChem_pHere[, "nest"] == 0, ,
                                                      ^
```
[inst/examples/Ants/Ants.R:120:71:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L120) *style:* **Trailing whitespace is superfluous.**
```r
    world <- NLset(world = world, agents = pHereOut, var = "chemical",
                                                                      ^
```
[inst/examples/Ants/Ants.R:121:89:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L121) *style:* **Trailing whitespace is superfluous.**
```r
                   val = nestChem_pHere[nestChem_pHere[, "nest"] == 0, "chemical"] + 60)
                                                                                ^
```
[inst/examples/Ants/Ants.R:123:72:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L123) *style:* **Trailing whitespace is superfluous.**
```r
    turtlesOut <- upPatch(turtles = turtlesOut, varPatch = "nestScent")
                                                                       ^
```
[inst/examples/Ants/Ants.R:126:79:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L126) *style:* **Trailing whitespace is superfluous.**
```r
  # Because turtles have been modified separately as turtlesIn and turtlesOut,
                                                                              ^
```
[inst/examples/Ants/Ants.R:128:46:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L128) *style:* **Trailing whitespace is superfluous.**
```r
  turtles <- turtleSet(turtlesIn, turtlesOut)
                                             ^
```
[inst/examples/Ants/Ants.R:129:55:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L129) *style:* **Trailing whitespace is superfluous.**
```r
  # there should not be any problem (e.g., duplicates)
                                                      ^
```
[inst/examples/Ants/Ants.R:131:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L131) *style:* **Commented code should be removed.**
```r
  #print(paste("toNest", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:136:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L136) *style:* **Commented code should be removed.**
```r
  #print(paste("lookFood", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:139:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L139) *style:* **Variable or function name should be lowerCamelCase.**
```r
  foodChem_pHere <- of(world = world, agents = pHere,
  ^~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:139:54:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L139) *style:* **Trailing whitespace is superfluous.**
```r
  foodChem_pHere <- of(world = world, agents = pHere,
                                                     ^
```
[inst/examples/Ants/Ants.R:145:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L145) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(turtlesFood) != 0){
    ^
```
[inst/examples/Ants/Ants.R:147:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L147) *style:* **Lines should not be more than 100 characters.**
```r
    turtlesFood <- NLset(turtles = turtlesFood, agents = turtlesFood, var = "color", val = "orange")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:147:101:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L147) *style:* **Trailing whitespace is superfluous.**
```r
    turtlesFood <- NLset(turtles = turtlesFood, agents = turtlesFood, var = "color", val = "orange")
                                                                                ^
```
[inst/examples/Ants/Ants.R:150:85:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L150) *style:* **Trailing whitespace is superfluous.**
```r
    turtles <- turtleSet(turtlesFood, other(agents = turtles, except = turtlesFood))
                                                                                ^
```
[inst/examples/Ants/Ants.R:152:96:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L152) *style:* **Trailing whitespace is superfluous.**
```r
    world <- NLset(world = world, agents = pHere[foodChem_pHere[, "food"] > 0, , drop = FALSE],
                                                                                ^
```
[inst/examples/Ants/Ants.R:153:97:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L153) *style:* **Trailing whitespace is superfluous.**
```r
                   var = "food", val = foodChem_pHere[foodChem_pHere[, "food"] > 0, "food"] - 1)
                                                                                ^
```
[inst/examples/Ants/Ants.R:157:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L157) *style:* **Lines should not be more than 100 characters.**
```r
  turtlesChem <- turtle(turtles, who = whoTurtles[foodChem_pHere[, "chemical"] >= 0.05 & foodChem_pHere[, "chemical"] < 2])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:158:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L158) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(turtlesChem) != 0){
    ^
```
[inst/examples/Ants/Ants.R:161:85:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L161) *style:* **Trailing whitespace is superfluous.**
```r
    turtles <- turtleSet(turtlesChem, other(agents = turtles, except = turtlesChem))
                                                                                ^
```
[inst/examples/Ants/Ants.R:164:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L164) *style:* **Commented code should be removed.**
```r
  #print(paste("lookFood", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:169:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L169) *style:* **Commented code should be removed.**
```r
  #print(paste("upPatch", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:187:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L187) *style:* **Commented code should be removed.**
```r
  #print(paste("upPatch", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:192:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L192) *style:* **Commented code should be removed.**
```r
  #print(paste("wiggle", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:195:86:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L195) *style:* **Trailing whitespace is superfluous.**
```r
  turtles <- right(turtles, angle = runif(n = NLcount(turtles), min = -40, max = 40))
                                                                                ^
```
[inst/examples/Ants/Ants.R:205:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L205) *style:* **Commented code should be removed.**
```r
  #print(paste("wiggle", NLcount(turtles)))
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:211:2:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L211) *style:* **Commented code should be removed.**
```r
#time <- 0
 ^~~~~~~~~
```
[inst/examples/Ants/Ants.R:212:6:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L212) *style:* **Place a space before left parenthesis, except in a function call.**
```r
while(sum(f_fS_world[, "food"]) != 0){ # as long as there is food in the world
     ^
```
[inst/examples/Ants/Ants.R:212:38:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L212) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
while(sum(f_fS_world[, "food"]) != 0){ # as long as there is food in the world
                                     ^
```
[inst/examples/Ants/Ants.R:214:1:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L214) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[inst/examples/Ants/Ants.R:217:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L217) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(aRed) != 0){
    ^
```
[inst/examples/Ants/Ants.R:225:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L225) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(NLcount(aOrange) != 0){
    ^
```
[inst/examples/Ants/Ants.R:241:67:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L241) *style:* **Trailing whitespace is superfluous.**
```r
  world <- NLset(world = world, agents = pWorld, var = "chemical",
                                                                  ^
```
[inst/examples/Ants/Ants.R:242:52:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L242) *style:* **Trailing whitespace is superfluous.**
```r
                 val = pChem * (100 - rEvap) / 100)
                                                   ^
```
[inst/examples/Ants/Ants.R:245:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L245) *style:* **Variable or function name should be lowerCamelCase.**
```r
  f_fS_world <- of(world = world, var = c("food", "foodSource"), agents = patches(world))
  ^~~~~~~~~~
```
[inst/examples/Ants/Ants.R:251:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L251) *style:* **Commented code should be removed.**
```r
  # time <- time + 1
    ^~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:252:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L252) *style:* **Commented code should be removed.**
```r
  # print(time)
    ^~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:255:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L255) *style:* **Commented code should be removed.**
```r
  # plot(world2raster(world)$layer.5) # food
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:256:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L256) *style:* **Commented code should be removed.**
```r
  # points(ants, pch = 16)
    ^~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:258:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L258) *style:* **Commented code should be removed.**
```r
  # expect_equivalent(NLcount(ants), nAnts)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Ants/Ants.R:268:76:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Ants/Ants.R#L268) *style:* **Trailing whitespace is superfluous.**
```r
legend("topright", legend = c("food1", "food2", "food3"), lwd = c(2, 2, 2),
                                                                           ^
```
[inst/examples/Butterfly/Butterfly-1.R:30:66:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L30) *style:* **Trailing whitespace is superfluous.**
```r
t1 <- createTurtles(n = 1,  coords = cbind(xcor = 85, ycor = 95))
                                                                 ^
```
[inst/examples/Butterfly/Butterfly-1.R:31:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L31) *style:* **Commented code should be removed.**
```r
# t1 <- createTurtles(n = 100, coords = cbind(xcor = 85, ycor = 95)) # can try with 100 butterflies
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Butterfly/Butterfly-1.R:39:4:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L39) *style:* **Place a space before left parenthesis, except in a function call.**
```r
for(time in 1:1000){ # what is inside this loop will be iterated 1000 times
   ^
```
[inst/examples/Butterfly/Butterfly-1.R:39:20:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L39) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
for(time in 1:1000){ # what is inside this loop will be iterated 1000 times
                   ^
```
[inst/examples/Butterfly/Butterfly-1.R:41:53:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L41) *style:* **Trailing whitespace is superfluous.**
```r
  # The "move" function can be written directly here
                                                    ^
```
[inst/examples/Butterfly/Butterfly-1.R:46:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L46) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(runif(n = 1, min = 0, max = 1) < q){ # conditional statement
    ^
```
[inst/examples/Butterfly/Butterfly-1.R:46:41:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L46) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  if(runif(n = 1, min = 0, max = 1) < q){ # conditional statement
                                        ^
```
[inst/examples/Butterfly/Butterfly-1.R:54:31:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L54) *style:* **Trailing whitespace is superfluous.**
```r
    # Creating local variables
                              ^
```
[inst/examples/Butterfly/Butterfly-1.R:69:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Butterfly/Butterfly-1.R#L69) *style:* **Commented code should be removed.**
```r
  # print(time)
    ^~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:33:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L33) *style:* **Commented code should be removed.**
```r
# torus = TRUE # just for reminder, to be used in the movement functions (e.g., fd())
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:46:78:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L46) *style:* **Trailing whitespace is superfluous.**
```r
  grassVal <- sample(c(0, 1), size = NLcount(patches(grass)), replace = TRUE)
                                                                             ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:54:35:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L54) *style:* **Trailing whitespace is superfluous.**
```r
# When no patches values are used,
                                  ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:55:79:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L55) *style:* **Trailing whitespace is superfluous.**
```r
# using grass, countdown or field as the world argument required by a function
                                                                              ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:57:69:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L57) *style:* **Trailing whitespace is superfluous.**
```r
# When patches values are used (e.g., when the sheep eat the grass),
                                                                    ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:58:57:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L58) *style:* **Trailing whitespace is superfluous.**
```r
# use only field as the world argument for the functions
                                                        ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:60:25:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L60) *style:* **Trailing whitespace is superfluous.**
```r
# When field is updated,
                        ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:61:80:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L61) *style:* **Trailing whitespace is superfluous.**
```r
# the values on the individual worldMatrix grass and countdown are not updated,
                                                                               ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:82:74:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L82) *style:* **Trailing whitespace is superfluous.**
```r
  pGreen <- NLwith(world = field, var = "grass", agents = patches(field),
                                                                         ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:89:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L89) *style:* **Commented code should be removed.**
```r
#   plot(world2raster(field)[[1]])
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:90:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L90) *style:* **Commented code should be removed.**
```r
#   points(sheep, pch = 16, col = "red")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:91:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L91) *style:* **Commented code should be removed.**
```r
#   points(wolves, pch = 16, col = "black")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:93:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L93) *style:* **Commented code should be removed.**
```r
#   grass <- NLset(world = grass, agents = patches(grass), val = 0) # cannot plot an empty world
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:94:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L94) *style:* **Commented code should be removed.**
```r
#   plot(grass)
    ^~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:95:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L95) *style:* **Commented code should be removed.**
```r
#   points(sheep, pch = 16, col = "red")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:96:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L96) *style:* **Commented code should be removed.**
```r
#   points(wolves, pch = 16, col = "black")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:102:78:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L102) *style:* **Trailing whitespace is superfluous.**
```r
# When only one type of input is permitted (e.g., only sheep or only wolves),
                                                                             ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:104:56:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L104) *style:* **Trailing whitespace is superfluous.**
```r
# When a function can be used by both sheep and wolves,
                                                       ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:108:27:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L108) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
move <- function(turtles) { # sheep and wolves
                          ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:109:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L109) *style:* **Commented code should be removed.**
```r
  # turtles <- right(turtles, angle = runif(n = NLcount(turtles), min = 0, max = 50))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:110:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L110) *style:* **Commented code should be removed.**
```r
  # turtles <- left(turtles, angle = runif(n = NLcount(turtles), min = 0, max = 50))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:111:62:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L111) *style:* **Trailing whitespace is superfluous.**
```r
  # The two above functions can be replaced by this next one,
                                                             ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:118:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L118) *style:* **Commented code should be removed.**
```r
# # Test move()
  ^~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:119:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L119) *style:* **Commented code should be removed.**
```r
# plot(wolves@.Data[, "xcor"], wolves@.Data[, "ycor"], col = rainbow(NLcount(wolves)), pch = 16)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:121:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L121) *style:* **Commented code should be removed.**
```r
#   wolves <- move(wolves)
    ^~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:122:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L122) *style:* **Commented code should be removed.**
```r
#   points(wolves@.Data[, "xcor"], wolves@.Data[, "ycor"], col = rainbow(NLcount(wolves)), pch = 16)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:126:24:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L126) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
eatGrass <- function() { # only sheep
                       ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:127:74:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L127) *style:* **Trailing whitespace is superfluous.**
```r
  pGreen <- NLwith(world = field, var = "grass", agents = patches(field),
                                                                         ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:129:60:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L129) *style:* **Trailing whitespace is superfluous.**
```r
  sheepOnGreen <- turtlesOn(world = field, turtles = sheep,
                                                           ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:135:75:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L135) *style:* **Trailing whitespace is superfluous.**
```r
    sheep <- NLset(turtles = sheep, agents = sheepOnGreen, var = "energy",
                                                                          ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:138:57:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L138) *style:* **Trailing whitespace is superfluous.**
```r
    # If a sheep is on a green patch (value equal to 1),
                                                        ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:147:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L147) *style:* **Commented code should be removed.**
```r
# # Test eatGrass()
  ^~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:148:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L148) *style:* **Commented code should be removed.**
```r
# grass <- createWorld(minPxcor = 1, maxPxcor = 10, minPycor = 1, maxPycor = 10)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:149:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L149) *style:* **Commented code should be removed.**
```r
# grass <- NLset(world = grass, agents = patches(grass), val = c(rep(1, 50), rep(0, 50)))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:150:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L150) *style:* **Commented code should be removed.**
```r
# countdown <- grass
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:151:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L151) *style:* **Commented code should be removed.**
```r
# countdown <- NLset(world = countdown, agents = patches(countdown), val = 0)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:152:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L152) *style:* **Commented code should be removed.**
```r
# field <- stackWorlds(grass, countdown)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:153:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L153) *style:* **Commented code should be removed.**
```r
# sheep <- createTurtles(n = 10, coords = cbind(xcor = 1:10, ycor = 1:10))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:154:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L154) *style:* **Commented code should be removed.**
```r
# sheep <- turtlesOwn(turtles = sheep, tVar = "energy", tVal = 1:10)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:155:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L155) *style:* **Commented code should be removed.**
```r
# resultsEatGrass <- eatGrass()
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:156:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L156) *style:* **Commented code should be removed.**
```r
# fieldEat <- resultsEatGrass[[1]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:157:38:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L157) *style:* **Trailing whitespace is superfluous.**
```r
# of(world = fieldEat, var = "grass",
                                     ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:158:91:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L158) *style:* **Trailing whitespace is superfluous.**
```r
#    agents = patches(grass)) == c(rep(1,9), 0, rep(1, 8), 0, rep(1, 8), 0 , rep(1, 8), 0,
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:160:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L160) *style:* **Commented code should be removed.**
```r
# sheepEat <- resultsEatGrass[[2]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:161:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L161) *style:* **Commented code should be removed.**
```r
# of(agents = sheepEat, var = "energy")[6:10] == (6:10 + gainFoodSheep)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:164:28:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L164) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
death <- function(turtles) { # sheep and wolves
                           ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:168:61:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L168) *style:* **Trailing whitespace is superfluous.**
```r
  who0 <- whoEnergy[which(whoEnergy[, "energy"] < 0), "who"]
                                                            ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:177:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L177) *style:* **Commented code should be removed.**
```r
# # Test death()
  ^~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:178:85:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L178) *style:* **Trailing whitespace is superfluous.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf),
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:180:58:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L180) *style:* **Trailing whitespace is superfluous.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy",
                                                         ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:182:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L182) *style:* **Commented code should be removed.**
```r
# count1 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:183:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L183) *style:* **Commented code should be removed.**
```r
# count2 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:185:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L185) *style:* **Commented code should be removed.**
```r
#   energy <- runif(NLcount(wolves), min = -10, max = 100)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:186:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L186) *style:* **Commented code should be removed.**
```r
#   wolves <- NLset(turtles = wolves, agents = wolves, var = "energy", val = energy)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:187:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L187) *style:* **Commented code should be removed.**
```r
#   count1 <- c(count1, NLcount(wolves) - length(energy[energy < 0]))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:188:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L188) *style:* **Commented code should be removed.**
```r
#   wolves <- death(wolves)
    ^~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:189:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L189) *style:* **Commented code should be removed.**
```r
#   count2 <- c(count2, NLcount(wolves))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:191:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L191) *style:* **Commented code should be removed.**
```r
# plot(1:length(count1), count1, pch = 16)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:192:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L192) *style:* **Commented code should be removed.**
```r
# points(1:length(count2), count2, pch = 16, col = "red")
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:195:46:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L195) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
reproduce <- function(turtles, reproTurtles) { # sheep and wolves
                                             ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:202:31:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L202) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  if (NLcount(reproInd) != 0) { # if there is at least one turtle reproducing
                              ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:212:49:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L212) *style:* **Trailing whitespace is superfluous.**
```r
    offspringMoved <- right(turtles = offspring,
                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:217:96:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L217) *style:* **Trailing whitespace is superfluous.**
```r
    turtles <- NLset(turtles = turtles, agents = offspring, var = c("heading", "xcor", "ycor"),
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:224:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L224) *style:* **Commented code should be removed.**
```r
# # Test reproduce()
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:225:85:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L225) *style:* **Trailing whitespace is superfluous.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf),
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:227:58:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L227) *style:* **Trailing whitespace is superfluous.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy",
                                                         ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:229:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L229) *style:* **Commented code should be removed.**
```r
# count1 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:230:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L230) *style:* **Commented code should be removed.**
```r
# count2 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:232:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L232) *style:* **Commented code should be removed.**
```r
#   count1 <- c(count1,NLcount(wolves) + NLcount(wolves) * reproWolf / 100)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:233:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L233) *style:* **Commented code should be removed.**
```r
#   wolves <- reproduce(wolves, reproWolf)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:234:5:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L234) *style:* **Commented code should be removed.**
```r
#   count2 <- c(count2, NLcount(wolves))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:236:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L236) *style:* **Commented code should be removed.**
```r
# plot(1:length(count1), count1, pch = 16)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:237:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L237) *style:* **Commented code should be removed.**
```r
# points(1:length(count2), count2, pch = 16, col = "red")
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:240:26:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L240) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
catchSheep <- function() { # only wolves
                         ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:245:87:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L245) *style:* **Trailing whitespace is superfluous.**
```r
    # sheepWolves[,"id"] represent the rank/order of the individual wolf in the wolves
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:251:56:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L251) *style:* **Commas should always have a space after.**
```r
    whoGrabbingWolves <- whoWolves[unique(sheepWolves[,"id"])]
                                                       ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:255:79:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L255) *style:* **Trailing whitespace is superfluous.**
```r
    wolves <- NLset(turtles = wolves, agents = grabbingWolves, var = "energy",
                                                                              ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:262:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L262) *style:* **Commented code should be removed.**
```r
# # Test catchSheep()
  ^~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:263:83:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L263) *style:* **Trailing whitespace is superfluous.**
```r
# grass <- createNLWorld(minPxcor = 1, maxPxcor = 10, minPycor = 1, maxPycor = 10,
                                                                                ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:265:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L265) *style:* **Commented code should be removed.**
```r
# countdown <- grass
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:266:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L266) *style:* **Commented code should be removed.**
```r
# countdown <- NLset(world = countdown, agents = patches(countdown), val = 0)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:267:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L267) *style:* **Commented code should be removed.**
```r
# field <- stackWorlds(grass, countdown)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:268:79:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L268) *style:* **Trailing whitespace is superfluous.**
```r
# sheep <- createTurtles(n = 10, coords = cbind(xcor = c(1,1,2,2,3,4,5,6,7,8),
                                                                              ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:270:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L270) *style:* **Commented code should be removed.**
```r
# wolves <- createTurtles(n = 5, coords = cbind(xcor = 1:5, ycor = 1:5))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:271:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L271) *style:* **Commented code should be removed.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy", tVal = 1:5)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:272:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L272) *style:* **Commented code should be removed.**
```r
# catchSheepResults <- catchSheep()
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:273:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L273) *style:* **Commented code should be removed.**
```r
# sheepCatch <- catchSheepResults[[1]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:274:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L274) *style:* **Commented code should be removed.**
```r
# wolvesCatch <- catchSheepResults[[2]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:275:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L275) *style:* **Commented code should be removed.**
```r
# NLcount(sheepCatch) == 5
  ^~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:276:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L276) *style:* **Commented code should be removed.**
```r
# NLcount(wolvesCatch) == 5
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:277:3:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L277) *style:* **Commented code should be removed.**
```r
# of(agents = wolvesCatch, var = "energy") == (1:5 + gainFoodWolf)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:280:25:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L280) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
growGrass <- function() { # only patches
                        ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:284:75:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L284) *style:* **Trailing whitespace is superfluous.**
```r
  pBrownCountdown <- of(world = field, var = "countdown", agents = pBrown)
                                                                          ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:289:54:](https://github.com/PredictiveEcology/NetLogoR/blob/ca4412e1217a6426b54d6bd83d40b59df7e7b863/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L289) *style:* **Trailing whitespace is superfluous.**
```r
    pGrow <- pBrown[pBrownCountdown0, , drop = FALSE]
                                                     ^
```


Revisar si esto es el motivo de que no compile en Travis.


wow.. awesome.. what a timing.. :) thanks


I would suggest not to push commented code to repository. https://blog.kentcdodds.com/please-don-t-commit-commented-out-code-53d0b5b26d5f


@Apteryks http://www.codinguser.com/2012/08/gnucash-for-android-now-with-apache-license-version-2-0/


I see. However that method is private, so if I allow the error to bubble up the [`resolveFiles`](https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/files/electron-browser/remoteFileService.ts#L174) will never return partial results, but will just throw. Which I do not want here.
In practice the user will still see the error when he tries to expand that bad file.
Suggestions on how to improve are welcome


Version analysis for protocol definitions in this commit:

## Diffs

### `S_SHOW_ITEM_TOOLTIP` 5 => 6
```diff
--- a/protocol/S_SHOW_ITEM_TOOLTIP.5.def
+++ b/protocol/S_SHOW_ITEM_TOOLTIP.6.def
@@ -1,31 +1,31 @@
-count  crystals
-offset crystals
-count  rollSets
-offset rollSets
-count  unknownArray
-offset unknownArray
-offset crafter
-offset soulbind
-
-int64  uid
-int32  item
-int64  uid2
-int32  unk111
-int64  ownerId
-int32  itemSlot
-int32  unk4
-int32  stackSize
-int32  stackCount
-int32  enchantment
+int32  type # 17 = persistent, 20 = hover, 28 = new etching
+uint64 id
+uint32 dbid
+uint64 id2 # always same as id?
+uint64 ownerId
+uint32 slot
+int32  unk1
+int32  amount
+int32  amountTotal # or is this reversed?
+int32  enchant
+int32  unk2
+bool   soulbound
+int32  unk3
+int32  unk4 # causes stat comparison to not display
+bool   dualRollsUnlocked
+byte   unk5_1
+byte   unk5_2
+byte   unk5_3
+bool   compareStats
+int32  etching
+int32  hiddenPassivity
+int32  unk6
 int32  unk7
-bool   isSoulbound
+int32  unk8
 int32  unk9
-int32  unk112
-byte   secondSetActivated
-int32  unk113
-int32  etching
-int32  secret
-int32  unk12
+int32  unk10
+int32  unk11
+int32  etchingSecRemaining
 int32  unk13
 int32  unk14
 int32  unk15
@@ -41,110 +41,107 @@
 int32  unk25
 int32  unk26
 int32  unk27
-int32  unk28
+int32  enigma
+bool   masterwork
 int32  unk29
-int32  unk30
-int32  unk31
-int32  unk32
+int32  remodel
+uint32 dye
+int32  dyeSecRemaining
 int32  unk33
 int32  unk34
-byte   masterwork
 int32  unk35
 int32  unk36
 int32  unk37
-int32  unk38
+int32  acquisitionDate
 int32  unk39
-int32  unk40
+int32  secRemaining # -1 = display acquisition date instead
 int32  unk41
+int32  setId
 int32  unk42
-int32  unk43
-int32  unk44
-int32  unk45
-int32  unk46
-int32  unk47
-int32  setId
+int32  enchantAdvantage
+int32  enchantAdvantageBonus
+int32  enchantAdvantageBonusUntil
+int64  averageBrokerPrice
+int32  feedstock
+int32  dismantlePrice # feedstock x 3?
 int32  unk48
-int32  unk49
-int32  unk50
+bool   awakened
+int32  liberationStatus # See S_INVEN
+byte   unk49_1
+byte   unk49_2
+byte   unk49_3
 int32  unk51
-int32  unk52
-int32  unk53
-int32  feedstock
-int32  unk54
-int32  unk55
-byte   unk56
-int32  unk57
-int32  unk58
-string crafter
-string soulbind

 array  crystals
-- int32  crystal
+- int32 dbid

-array  rollSets
-- count  bonuses
-- offset bonuses
-- int32  unk300
+array  passivitySets
+- uint32 index
 - int32  masterworkBonus
 - int32  itemLevel
 - int32  minItemLevel
 - int32  maxItemLevel
-- array  bonuses
-- - int32  bonus
+- array  passivities
+- - int32 dbid

-array  unknownArray
-- int64  unk200
-- int32  unk201
-- int32  unk202
-- int32  unk203
-- int32  unk204
-- int32  unk205
-- int32  unk206
-- int32  unk207
-- int32  unk208
-- int32  unk209
-- int32  unk210
-- int32  unk211
-- int32  unk212
-- int32  unk213
-- int32  unk214
-- int32  unk215
-- int32  unk216
-- int32  unk217
-- int32  unk218
-- int32  unk219
-- int32  unk220
-- int32  unk221
-- int32  unk222
-- int32  unk223
-- int32  unk224
-- int32  unk225
-- int32  unk226
-- int32  unk227
-- int32  unk228
-- int32  unk229
-- int32  unk230
-- int32  unk231
-- int32  unk232
-- int32  unk233
-- int32  unk234
-- int32  unk235
-- int32  unk236
-- int32  unk237
-- int32  unk238
-- int32  unk239
-- int32  unk240
-- int32  unk241
-- int32  unk242
-- int32  unk243
-- int32  unk244
-- int32  unk245
-- int32  unk246
-- int32  unk247
-- int32  unk248
-- int32  unk249
-- int32  unk250
-- int32  unk251
-- int32  unk252
-- int32  unk253
-- int32  unk254
+# Note: The magic number -1000 hides individual stats
+array  statComparison
+- uint32 index # corresponds with passivity set
+- int32  itemLevelDiff
+- int32  minAttack
+- int32  minAttackDiff
+- int32  maxAttack
+- int32  defense
+- int32  impact
+- int32  balance
+- float  critFactor
+- float  critResistFactor
+- float  critPower
+- int32  impactFactor
+- int32  balanceFactor
+- int32  attackSpeed
+- int32  moveSpeed
+- float  weakResist
+- float  dotResist
+- float  stunResist
+- int32  maxAttackDiff
+- int32  defenseDiff
+- int32  impactDiff
+- int32  balanceDiff
+- float  critFactorDiff
+- float  critResistFactorDiff
+- float  critPowerDiff
+- int32  impactFactorDiff
+- int32  balanceFactorDiff
+- int32  attackSpeedDiff
+- int32  moveSpeedDiff
+- float  weakResistDiff
+- float  dotResistDiff
+- float  stunResistDiff
+- int32  unk1
+- int32  unk2
+- int32  unk3
+- int32  unk4
+- int32  unk5
+- int32  unk6
+- int32  unk7
+- int32  unk8
+- int32  unk9 # 0xfefefefe starting from here
+- int32  unk10
+- int32  unk11
+- int32  unk12
+- int32  unk13
+- int32  unk14
+- int32  unk15
+- int32  unk16
+- int32  unk17
+- int32  unk18
+- int32  unk19
+- int32  unk20
+- int32  unk21
+- int32  unk22
+- int32  unk23
+- int32  unk24
+
+string crafterName
+string soulboundName
\ No newline at end of file
```


good


Does this mean that we have to change the domain name on all nginx configuration files and .env on each respected application?


3. Extra new line at start of main.js
4. is there need of isDayInfoRetrieved, as init method makes sure that data is loaded well before it's use
5. You are removing all buttons in this code $(this.formSelector).find('.buttons').remove();, should have used submit button selector
6.


这段脚本是临时转换数据库中已有的数据格式么？


I like this.


Created multidev environment [mann-web#pr-1](https://dashboard.pantheon.io/sites/5c8ef4ff-2765-4fe6-b6e5-ce0099a410ba#pr-1).

[![Visit Site](https://raw.githubusercontent.com/pantheon-systems/ci-drops-8/0.1.0/data/img/visit-site-36.png)](https://pr-1-mann-web.pantheonsite.io/)


oh I see, if you have some spare time can you pastebin your patch ?I would love to see your change on the SSL check.

The ssl exception happens on this url: https://www.trend.at/


После сегодняшнего занятия понял, что это вопрос надо было обсудить с заказчиком (Евгением)


We were looking into sorting algorithms, tree structures etc, no use-case so far when sorting and timingsafe (consttime) property is required in the same time. I don't know the rationale to keep both.


Since `isbn` is unique per book, `id` may not be necessary. However, it is conventional to have an `id` column, so having it is not necessarily wrong, either.


This change break IE8
1. IE8 do not have `console.error`
2. `eval.call(null, src)` do not work for IE8, the eval code is limited to local, not global scope


> This is more an experiment to familiar myself with the different type and configuration.

Your experiment yielded a reasonable approach so I don't see why not taking it further to a cleaned up PR.

> The casting around is super ugly

Sure, but if you work directly with a created LBA in the `CopyDeduped` function, and use that freshly created LBA, rather than creating an entire BlockStorage which you don't need, you'll already end up with much cleaner code, without the need for casts as well.


It's in my easyssl branch.


Looks good


Both are acceptable, but you are right that an update would be quicker.


Well, I keep it then just for backcompat with the existing crypto libs crypto, ssl, tls.
Upstream adopters will remove unneeded extensions anyway or just use the static lib.
There are a lot of old unneeded extensions.


Beware, I've also added Accept: header for this issue : https://github.com/LAW-Unimi/BUbiNG/issues/1


Created multidev environment [continuity-pro#ci-109](https://dashboard.pantheon.io/sites/f4b4b00a-1cc1-4f25-a05d-4dce395bff80#ci-109).

[![Visit Site](https://raw.githubusercontent.com/pantheon-systems/ci-drops-8/0.1.0/data/img/visit-site-36.png)](https://ci-109-continuity-pro.pantheonsite.io/)


API部分基本接完了，剩下的就是如何根据API生成报告。我折腾了好久才想明白如何用现有的api来做那些报告数据。。


这次增加的代码量蛮大的，这个假期好好学习下


OK, ack.


是的，迁移的时候需要用，之前在数据库里存的time和total都是字符串，但现在改成数字里，所以要统一把老数据都转一遍


> However that method is private, so if I allow the error to bubble up the resolveFiles will never return partial results, but will just throw.

Yes, but its also not very clever from the explorer to make that one big call. That is the reason for the long load time. It asks to resolve roots from all providers, file and remote. Because the latter is naturally slower the explorer is empty for a long while.

> In practice the user will still see the error when he tries to expand that bad file.

I don't think so because the root node already fails to resolve and I believe that you won't see a file at all.

> Suggestions on how to improve are welcome

As said, don't swallow the error but handle it in the explorer. Optionally, make a call try per root or per scheme and not one monster merged called


fieldChanged


THIS BREAKS SESSIONS. REVERT TO SAFE COMMIT. KIDS ARE GETTING LOGGED IN AS STAFF WITH EDIT ACCESS


vc


This assumes you don't use "special" parts of the adapter... this is less than 95% accurate ~


试着删除


Excelente, deu certo! Obrigadooo


"Create File" was required to make the directory. this "Blank" file was deleted after the uploads.


Just an idea. Needs to work