PredictiveEcology / NetLogoR

A translation of NetLogo functions, dictionary, and framework for R. Intended to be used with a discrete event simulator, like SpaDES
http://NetLogoR.PredictiveEcology.org
38 stars 4 forks source link

Add GitHub repo URL #35

Closed Bisaloo closed 5 years ago

Bisaloo commented 5 years ago

pkgdown will auto-detect this URL and link to the GitHub repo from the website

(see pkgdown own DESCRIPTION and website)

lintr-bot commented 5 years ago

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:64:1: style: Variable or function name should be lowerCamelCase.

​doEvent.WolfSheepPredation <- function(sim, eventTime, eventType, debug = FALSE) {
^~~~~~~~~~~~~~~~~~~~~~~~~~

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:113:1: style: Variable or function name should be lowerCamelCase.

​WolfSheepPredationInit <- function(sim) {
^~~~~~~~~~~~~~~~~~~~~~

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:185:1: style: Variable or function name should be lowerCamelCase.

​WolfSheepPredationSave <- function(sim) {
^~~~~~~~~~~~~~~~~~~~~~

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:200:1: style: Variable or function name should be lowerCamelCase.

​WolfSheepPredationPosition <- function(sim) {
^~~~~~~~~~~~~~~~~~~~~~~~~~

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:220:1: style: Variable or function name should be lowerCamelCase.

​WolfSheepPredationPopSize <- function(sim) {
^~~~~~~~~~~~~~~~~~~~~~~~~

inst/examples/Wolf-Sheep-Predation/WolfSheepPredation/WolfSheepPredation.R:243:1: style: Variable or function name should be lowerCamelCase.

​WolfSheepPredationEvent <- function(sim){
^~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:15:12: style: Variable or function name should be lowerCamelCase.

​  function(.Object="agentMatrix", coords, ..., levelsAM) {
           ^~~~~~~

R/agentMatrix-Class-methods.R:16:5: style: Variable or function name should be lowerCamelCase.

​    Coords <- TRUE
    ^~~~~~

R/agentMatrix-Class-methods.R:29:7: style: Variable or function name should be lowerCamelCase.

​      Coords <- FALSE
      ^~~~~~

R/agentMatrix-Class-methods.R:395:6: style: Commented code should be removed.

​    #charCols <- match(j, nam)
     ^~~~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:396:6: style: Commented code should be removed.

​    #charCols <- match(nam, j)
     ^~~~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:397:34: style: Commented code should be removed.

​    numCols <- which(!charCols) #colNums[!(colNums %in% charCols)]
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:404:8: style: Commented code should be removed.

​      #numColsJ <- which(colNums %in% numCols)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:409:8: style: Commented code should be removed.

​      #charColsJ <- which(colNums %in% charCols)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:609:1: style: Variable or function name should be lowerCamelCase.

​head.agentMatrix <- function(x, n = 6L, ...) {
^~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:617:1: style: Variable or function name should be lowerCamelCase.

​tail.agentMatrix <- function(x, n = 6L, ...) {
^~~~~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:638:36: style: Variable or function name should be lowerCamelCase.

​cbind.agentMatrix <- function(..., deparse.level) {
                                   ^~~~~~~~~~~~~

R/agentMatrix-Class-methods.R:662:36: style: Variable or function name should be lowerCamelCase.

​rbind.agentMatrix <- function(..., deparse.level = 1) {
                                   ^~~~~~~~~~~~~

R/agentset-functions.R:1537:1: style: Lines should not be more than 100 characters.

​        pOverL <- over(pBuffer, SpatialPoints(coords = agents2cAll, proj4string = .projNowhere), returnList = TRUE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/agentset-functions.R:1549:1: style: Lines should not be more than 100 characters.

​                       SpatialPoints(coords = agents2@.Data[, c("xcor", "ycor"), drop = FALSE], proj4string = .projNowhere),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/plot.R:37:3: style: Variable or function name should be lowerCamelCase.

​  Ras <- world2raster(x)
  ^~~

R/plot.R:53:3: style: Variable or function name should be lowerCamelCase.

​  Ras <- world2raster(x)
  ^~~

R/quickPlot.R:176:39: style: Commas should always have a space after.

​    grobToPlot@.Data <- toPlot@.Data[,,sGrob@layerName];
                                      ^

R/world-functions.R:517:25: style: Put spaces around all infix operators.

​          mid <- floor(n/2)
                       ~^~

R/world-functions.R:534:9: style: Commented code should be removed.

​    #   cat("names       :", paste(ln, collapse=", "), "\n")
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/world-functions.R:538:28: style: Commas should always have a space after.

​    print(object@.Data[1:4,1:4,])
                           ^

R/world-functions.R:538:32: style: Commas should always have a space after.

​    print(object@.Data[1:4,1:4,])
                               ^

R/worldNLR-classes-methods.R:340:5: style: Variable or function name should be lowerCamelCase.

​    NLwMs <- list(...)
    ^~~~~

tests/testthat/test-plotting.R:6:3: style: Variable or function name should be lowerCamelCase.

​  t1_0 <- createTurtles(n = 10, coords = cbind(rep(0, 10), rep(0, 10)))
  ^~~~
achubaty commented 5 years ago

thanks for this