[inst/examples/Ants/Ants.R:13:2:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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/e41af74254eae9868ef37eb8dcf2493461c3d34b/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:12:2:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L12) *style:* **Commented code should be removed.**
```r
#library(NetLogoR)
 ^~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:33:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/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:45:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L45) *style:* **Lines should not be more than 100 characters.**
```r
  grassVal <- sample(c(0, 1), size = NLcount(patches(grass)), replace = TRUE) # 0 or 1 (i.e., green or brown in the NetLogo model)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:53:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L53) *style:* **Lines should not be more than 100 characters.**
```r
# When no patches values are used, using grass, countdown or field as the world argument required by a function does not change anything
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:55:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L55) *style:* **Lines should not be more than 100 characters.**
```r
# When patches values are used (e.g., when the sheep eat the grass), use only field as the world argument for the functions
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:57:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L57) *style:* **Lines should not be more than 100 characters.**
```r
# When field is updated, the values on the individual worldMatrix grass and countdown are not updated, only the layers in field are
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:77:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L77) *style:* **Lines should not be more than 100 characters.**
```r
  pGreen <- NLwith(world = field, var = "grass", agents = patches(field), val = 1) # patches equal to 1 (green)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:83:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L83) *style:* **Commented code should be removed.**
```r
#   plot(world2raster(field)[[1]])
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:84:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L84) *style:* **Commented code should be removed.**
```r
#   points(sheep, pch = 16, col = "red")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:85:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L85) *style:* **Commented code should be removed.**
```r
#   points(wolves, pch = 16, col = "black")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:87:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L87) *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:88:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L88) *style:* **Commented code should be removed.**
```r
#   plot(grass)
    ^~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:89:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L89) *style:* **Commented code should be removed.**
```r
#   points(sheep, pch = 16, col = "red")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:90:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L90) *style:* **Commented code should be removed.**
```r
#   points(wolves, pch = 16, col = "black")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:96:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L96) *style:* **Lines should not be more than 100 characters.**
```r
# When only one type of input is permitted (e.g., only sheep or only wolves), the function does not need to express arguments
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:97:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L97) *style:* **Lines should not be more than 100 characters.**
```r
# When a function can be used by both sheep and wolves, the argument "turtles" must be used when building the function
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:100:27:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L100) *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:101:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L101) *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:102:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L102) *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:103:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L103) *style:* **Lines should not be more than 100 characters.**
```r
  # The two above functions can be replaced by this next one, as a negative value to turn right will turn left
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:109:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L109) *style:* **Commented code should be removed.**
```r
# # Test move()
  ^~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:110:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L110) *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:112:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L112) *style:* **Commented code should be removed.**
```r
#   wolves <- move(wolves)
    ^~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:113:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L113) *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:117:24:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L117) *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:118:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L118) *style:* **Lines should not be more than 100 characters.**
```r
  pGreen <- NLwith(world = field, var = "grass", agents = patches(field), val = 1) # patches with grass equal to 1 (green)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:119:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L119) *style:* **Lines should not be more than 100 characters.**
```r
  sheepOnGreen <- turtlesOn(world = field, turtles = sheep, agents = pGreen) # sheep on green patches
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:124:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L124) *style:* **Lines should not be more than 100 characters.**
```r
    sheep <- NLset(turtles = sheep, agents = sheepOnGreen, var = "energy", val = energySheep + gainFoodSheep) # update energy
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:126:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L126) *style:* **Lines should not be more than 100 characters.**
```r
    # If a sheep is on a green patch (value equal to 1), it eats the grass and turns it to brown (value to 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:134:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L134) *style:* **Commented code should be removed.**
```r
# # Test eatGrass()
  ^~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:135:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L135) *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:136:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L136) *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:137:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L137) *style:* **Commented code should be removed.**
```r
# countdown <- grass
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:138:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L138) *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:139:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L139) *style:* **Commented code should be removed.**
```r
# field <- stackWorlds(grass, countdown)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:140:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L140) *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:141:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L141) *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:142:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L142) *style:* **Commented code should be removed.**
```r
# resultsEatGrass <- eatGrass()
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:143:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L143) *style:* **Commented code should be removed.**
```r
# fieldEat <- resultsEatGrass[[1]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:144:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L144) *style:* **Lines should not be more than 100 characters.**
```r
# of(world = fieldEat, var = "grass", agents = patches(grass)) == c(rep(1,9), 0, rep(1, 8), 0, rep(1, 8), 0 , rep(1, 8), 0, rep(1, 8), 0, rep(1, 4), rep(0, 50))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:144:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L144) *style:* **Commented code should be removed.**
```r
# of(world = fieldEat, var = "grass", agents = patches(grass)) == c(rep(1,9), 0, rep(1, 8), 0, rep(1, 8), 0 , rep(1, 8), 0, rep(1, 8), 0, rep(1, 4), rep(0, 50))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:145:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L145) *style:* **Commented code should be removed.**
```r
# sheepEat <- resultsEatGrass[[2]]
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:146:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L146) *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:149:28:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L149) *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:152:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L152) *style:* **Lines should not be more than 100 characters.**
```r
  who0 <- whoEnergy[which(whoEnergy[,"energy"] < 0), "who"] # "who" numbers of the turtles with their energy value below 0
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:152:38:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L152) *style:* **Commas should always have a space after.**
```r
  who0 <- whoEnergy[which(whoEnergy[,"energy"] < 0), "who"] # "who" numbers of the turtles with their energy value below 0
                                     ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:161:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L161) *style:* **Commented code should be removed.**
```r
# # Test death()
  ^~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:162:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L162) *style:* **Lines should not be more than 100 characters.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf), breed = "wolf", color = rep("black", nWolf))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:162:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L162) *style:* **Commented code should be removed.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf), breed = "wolf", color = rep("black", nWolf))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:163:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L163) *style:* **Lines should not be more than 100 characters.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy", tVal = runif(n = nWolf, min = 0, max = 2 * gainFoodWolf))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:163:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L163) *style:* **Commented code should be removed.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy", tVal = runif(n = nWolf, min = 0, max = 2 * gainFoodWolf))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:164:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L164) *style:* **Commented code should be removed.**
```r
# count1 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:165:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L165) *style:* **Commented code should be removed.**
```r
# count2 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:167:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L167) *style:* **Commented code should be removed.**
```r
#   energy <- runif(NLcount(wolves), min = -10, max = 100)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:168:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L168) *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:169:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L169) *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:170:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L170) *style:* **Commented code should be removed.**
```r
#   wolves <- death(wolves)
    ^~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:171:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L171) *style:* **Commented code should be removed.**
```r
#   count2 <- c(count2, NLcount(wolves))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:173:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L173) *style:* **Commented code should be removed.**
```r
# plot(1:length(count1), count1, pch = 16)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:174:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L174) *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:177:46:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L177) *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:184:31:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L184) *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:194:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L194) *style:* **Lines should not be more than 100 characters.**
```r
    offspringMoved <- right(turtles = offspring, angle = runif(n = NLcount(offspring), min = 0, max = 360))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:198:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L198) *style:* **Lines should not be more than 100 characters.**
```r
    turtles <- NLset(turtles = turtles, agents = offspring, var = c("heading", "xcor", "ycor"), val = valOffspring)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:204:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L204) *style:* **Commented code should be removed.**
```r
# # Test reproduce()
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:205:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L205) *style:* **Lines should not be more than 100 characters.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf), breed = "wolf", color = rep("black", nWolf))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:205:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L205) *style:* **Commented code should be removed.**
```r
# wolves <- createTurtles(n = nWolf, coords = randomXYcor(world = grass, n = nWolf), breed = "wolf", color = rep("black", nWolf))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:206:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L206) *style:* **Lines should not be more than 100 characters.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy", tVal = runif(n = nWolf, min = 0, max = 2 * gainFoodWolf))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:206:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L206) *style:* **Commented code should be removed.**
```r
# wolves <- turtlesOwn(turtles = wolves, tVar = "energy", tVal = runif(n = nWolf, min = 0, max = 2 * gainFoodWolf))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:207:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L207) *style:* **Commented code should be removed.**
```r
# count1 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:208:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L208) *style:* **Commented code should be removed.**
```r
# count2 <- NLcount(wolves)
  ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:210:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L210) *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:211:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L211) *style:* **Commented code should be removed.**
```r
#   wolves <- reproduce(wolves, reproWolf)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:212:5:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L212) *style:* **Commented code should be removed.**
```r
#   count2 <- c(count2, NLcount(wolves))
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:214:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L214) *style:* **Commented code should be removed.**
```r
# plot(1:length(count1), count1, pch = 16)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:215:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L215) *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:218:26:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L218) *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:223:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L223) *style:* **Lines should not be more than 100 characters.**
```r
    # sheepWolves[,"id"] represent the rank/order of the individual wolf in the wolves (! not the "who" numbers of the wolves)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:228:56:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L228) *style:* **Commas should always have a space after.**
```r
    whoGrabbingWolves <- whoWolves[unique(sheepWolves[,"id"])]
                                                       ^
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:232:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L232) *style:* **Lines should not be more than 100 characters.**
```r
    wolves <- NLset(turtles = wolves, agents = grabbingWolves, var = "energy", val = energyGrabbingWolves + gainFoodWolf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:238:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L238) *style:* **Commented code should be removed.**
```r
# # Test catchSheep()
  ^~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:239:1:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L239) *style:* **Lines should not be more than 100 characters.**
```r
# grass <- createNLWorld(minPxcor = 1, maxPxcor = 10, minPycor = 1, maxPycor = 10, data = c(rep(1, 50), rep(0, 50)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:239:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L239) *style:* **Commented code should be removed.**
```r
# grass <- createNLWorld(minPxcor = 1, maxPxcor = 10, minPycor = 1, maxPycor = 10, data = c(rep(1, 50), rep(0, 50)))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:240:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L240) *style:* **Commented code should be removed.**
```r
# countdown <- grass
  ^~~~~~~~~~~~~~~~~~
```
[inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R:241:3:](https://github.com/PredictiveEcology/NetLogoR/blob/e41af74254eae9868ef37eb8dcf2493461c3d34b/inst/examples/Wolf-Sheep-Predation/Wolf-Sheep-Predation.R#L241) *style:* **Commented code should be removed.**
```r
# countdown <- NLset(world = countdown, agents = patches(countdown), val = 0)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


Hi


Please use `classpath` instead of `cp` everywhere


Here there's no reason. In https://github.com/hakaru-dev/hakaru/blob/master/examples/icfp2017/linearRegression.hk the numbers came from examples/LinearRegression.cs in r2-0.0.1.zip (https://www.microsoft.com/en-us/download/details.aspx?id=52372).


![](https://github.trello.services/images/mini-trello-icon.png) [Create game 'engine' using libgdx. Use prototype for inspiration :)](https://trello.com/c/qgNgl2Xa/20-create-game-engine-using-libgdx-use-prototype-for-inspiration)


same here


I've checked all the examples under the 2nd link and all of them can be replaced with timingsafe_bcmp.


`takeIf(this::exists)`, and `existsAndCheckOrNull` is not needed I believe


If there is any use-case for timingsafe_memcmp... I would like to know.


This commit has been mentioned on **Discourse Meta**. There might be relevant details there:

https://meta.discourse.org/t/cant-update-profile/70936/5


why not just 'entry.delete?'


In 3.6 `stop` is supposed to return 0, the reverted changes just added support for `badrpc_multi` to make it consistent with `badrpc`. Should it actually be reverted? Do we want `stop` to return non-zero status in 3.6, which can potentially be a breaking change?


Ah ok, I've also stumbled upon it while testing today!


thanks a lot


Does this commit remove the use of anything else that `X-Label:` for tagging email?
It seems to be the case as showed by issue #653.


Opa, vou tentar! Muito obrigado :smile:


Pushed the relative commit in l-s https://github.com/goga-m/lamassu-server/commit/127a47aaa8bd16449b91b592e53f451dd37bd6ca


@isidorn Shouldn't we handle errors on the calling side? This basically makes this method a never-throws method which might not always useful


I can definitely get behind these changes, but are you certain nothing is using the ID field right now? Also, are we requiring that the "identifier" field is the same as the folder name? In that case, if nothing is using it, why not just get rid of it? It's just another weird artifact to maintain, that way.

My biggest concern is that this will break how LGM tells ENIGMA which extensions to use. As I said, if LGM is currently using the name of the folder to point ENIGMA to the correct extension, then we're fine, and I recommend deleting the `identifier` field altogether. My other concern is that ENIGMA might have been using it to generate C++ identifiers. In this case, the should have been an update to some compiler code to handle this change, or else, we seriously need to add some documentation about using the folder name for that.

The only argument I can see for keeping the identifier field is that, right now, there's nothing explicitly preventing spaces in the names of the extensions, while the "identifier" property seems to implicitly require no spaces.

We should figure out what codegen hinges on that assumption, if any, and verify that it is using the folder name (rather than `Name`), or update it to use this new field. Either way, we should document our decision. I believe there are Wiki pages about  extensions and the ey files specifying them. If not, I'll write them. Just make sure we know how we're listing extensions, and how we're generating identifiers in code.


I dont, probably because I also have a patch on FetchingThread to relax SSL checks. What's your request's original host name ?


@jrieken this is how the current file service behaves that it always returns a result with potentialy a `success: false`. More details https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/files/node/fileService.ts#L187

This way they will be aligned.


If there is none, better to just drop timingsafe_memcmp from safeclib and replace all the interesting code that is using timingsafe_memcmpy with timingsafe_bcmp. (Sending patches upstream can help to other projects)


Lol


Was this meant to be deleted?


Yeah sorry about the confusing discussion there. I don't think having no difference whatsoever between active and inactive is bad. Windows has never worked that way.


Hello, my name is Helen and coding is really confusing.


I do not know why I am writing a comment.


@hawkeye116477, yes that's correct. I'm changing my dev environment to be as similar to what Mozilla have as well to stop this from happening in the future, and will remove the necessary flags once that is done.


@devemux86 You have renamed this method and lots of things got screwed up as compiler did not give the error for places where it was used but resolved it with `public static double groundResolution(double latitude, long mapSize)` instead. Such core amendments should at least be clearly stated in change log.


And now we can always disable p2p... Revert this fix p2p on samsung a310f.
p.s. AOSP prefer then bugged commits


This create a new hook on every reconnection/resume and add a new call to resume on next reconnection. We are experiencing N calls to resume where N is equal to the amount of past resumes. That generate an error of too many calls in Rocket.Chat forcing the client log out with no clear reason to the user.


Hi. My name is Helen and coding is confusing.


Note the `keywords.txt` file is used by the Arduino IDE for syntax highlighting


adding `this._reconnectStopper && this._reconnectStopper.stop();` before registering the callback might fix this issue


@rodrigok @sampaiodiego:

Have you seen this PR? https://github.com/meteor/meteor/pull/9148

If you could help verify if that will fix your problem, that would be much appreciated!


Possibile soluzione:
```
IN N
	IN M
	ASSIGN divisione=N/M
	IF N-M>0
		ASSIGN somma=0
		DO_WHILE //N-somma>M
			ASSIGN somma=somma+M
		END DO_WHILE N-somma>M
		ASSIGN modulo=-(somma-N)
		OUT modulo
	ELSE //if N-M>0
		ASSIGN resto=N/M
		ASSIGN modulo=resto*M
		OUT modulo
	END IF //N-M>0
END PROG //main
```


Changed or tried to change some of the text into **bold** to emphasise message.


You named it  `consttime_memequal` in NetBSD. I went with the established name from OpenBSD.

Regarding bool bcmp vs sgn memcmp: I'll keep both. Normally you only need the bool variant, but old libs still use the sgn variant (crypto, ssl, tls), and it's also useful for sorting. Maybe sorting is also side-channel sensitive, how knows, but not as easy as with normal key checks.


前端部分的所有代码都完成了么？大概扫了一眼，没太明白与服务器通信的 API 代码逻辑。。。


html


Did you publish a corresponding commit yesterday which I should read?


1. while naming files we use underscore not camel case.
2. A file should have a new line at the end.


http://google.com/sdfdfskfdjsdfhfkjsbkfbsjksalakjsflfa this must be the 404 to recreate page fix get the google.com-/\/sdfdfskfdjsdfhfkjsbkfbsjksalakjsflfa


Thanks! I couldn't find this bug. It was kind of driving me crazy!