[R/ABC_SMC.R:2:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L2) *style:* **Variable and function names should be all lowercase.**
```r
getRandomVals <- function(max_val)  {
^~~~~~~~~~~~~
```
[R/ABC_SMC.R:15:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L15) *style:* **Variable and function names should be all lowercase.**
```r
getFromPrevious <- function(inds, ws, disps, filts, comps)  {
^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:22:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
calculateWeight <- function(params, target, sigma,
^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:25:68:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L25) *style:* **Commas should always have a space after.**
```r
  diff <- params[target] - cbind(disp_vals, filt_vals, comp_vals)[,target]
                                                                   ^
```
[R/ABC_SMC.R:26:54:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L26) *style:* **Trailing whitespace is superfluous.**
```r
  vals <- weights * dnorm(diff, mean = 0, sd = sigma)
                                                     ^~
```
[R/ABC_SMC.R:27:12:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L27) *style:* **Put spaces around all infix operators.**
```r
  return( 1/sum(vals) )
          ~^~
```
[R/ABC_SMC.R:31:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L31) *style:* **Variable and function names should be all lowercase.**
```r
normalizeWeights <- function(x) {
^~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:65:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L65) *style:* **Variable and function names should be all lowercase.**
```r
calculateDistance <- function(rich, even, div, opt_diff, obs, sd_vals)  {
^~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:69:40:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L69) *style:* **Put spaces around all infix operators.**
```r
  fit_optima <- (opt_diff / sd_vals[4])^2;
                                      ~^~
```
[R/ABC_SMC.R:77:21:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L77) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC <- function(numParticles, species_fallout, taxa, esppres, n_traits,
                    ^~~~~~~~~~~~
```
[R/ABC_SMC.R:79:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L79) *style:* **lines should not be more than 80 characters.**
```r
                    abundances, frequencies, stopRate, Ord, continue_from_file = TRUE,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:79:46:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L79) *style:* **Variable and function names should be all lowercase.**
```r
                    abundances, frequencies, stopRate, Ord, continue_from_file = TRUE,
                                             ^~~~~~~~
```
[R/ABC_SMC.R:82:6:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L82) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(i in seq_along(sd_vals)) {
     ^
```
[R/ABC_SMC.R:83:7:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L83) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(sd_vals[[i]] == 0.000) {
      ^
```
[R/ABC_SMC.R:85:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L85) *style:* **lines should not be more than 80 characters.**
```r
           "one of the community summary statistics shows no variation in your dataset")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:88:10:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L88) *style:* **Variable and function names should be all lowercase.**
```r
  res <- detMnbsp(Ord, abundances)
         ^~~~~~~~
```
[R/ABC_SMC.R:88:10:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L88) *warning:* **no visible global function definition for ‘detMnbsp’**
```r
  res <- detMnbsp(Ord, abundances)
         ^~~~~~~~
```
[R/ABC_SMC.R:91:18:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L91) *style:* **Variable and function names should be all lowercase.**
```r
  disp_vals <- 1:numParticles
                 ^~~~~~~~~~~~
```
[R/ABC_SMC.R:92:18:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L92) *style:* **Variable and function names should be all lowercase.**
```r
  filt_vals <- 1:numParticles
                 ^~~~~~~~~~~~
```
[R/ABC_SMC.R:93:18:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L93) *style:* **Variable and function names should be all lowercase.**
```r
  comp_vals <- 1:numParticles
                 ^~~~~~~~~~~~
```
[R/ABC_SMC.R:95:13:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L95) *style:* **Variable and function names should be all lowercase.**
```r
  fits <- 1:numParticles
            ^~~~~~~~~~~~
```
[R/ABC_SMC.R:96:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L96) *style:* **Variable and function names should be all lowercase.**
```r
  rich_vec <- 1:numParticles
                ^~~~~~~~~~~~
```
[R/ABC_SMC.R:97:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L97) *style:* **Variable and function names should be all lowercase.**
```r
  eve_vec <- 1:numParticles
               ^~~~~~~~~~~~
```
[R/ABC_SMC.R:98:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L98) *style:* **Variable and function names should be all lowercase.**
```r
  div_vec <- 1:numParticles
               ^~~~~~~~~~~~
```
[R/ABC_SMC.R:99:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L99) *style:* **Variable and function names should be all lowercase.**
```r
  opt_vec <- 1:numParticles
               ^~~~~~~~~~~~
```
[R/ABC_SMC.R:105:21:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L105) *style:* **Variable and function names should be all lowercase.**
```r
  weights <- rep(1, numParticles)
                    ^~~~~~~~~~~~
```
[R/ABC_SMC.R:106:26:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L106) *style:* **Variable and function names should be all lowercase.**
```r
  next_weights <- rep(1, numParticles)
                         ^~~~~~~~~~~~
```
[R/ABC_SMC.R:107:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L107) *style:* **Variable and function names should be all lowercase.**
```r
  indices <- 1:numParticles
               ^~~~~~~~~~~~
```
[R/ABC_SMC.R:114:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L114) *style:* **lines should not be more than 80 characters.**
```r
    cat("Found previous output, continuing from that output\n"); flush.console();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:118:7:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L118) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(d[numParticles,1] == numParticles) {
      ^
```
[R/ABC_SMC.R:118:10:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L118) *style:* **Variable and function names should be all lowercase.**
```r
    if(d[numParticles,1] == numParticles) {
         ^~~~~~~~~~~~
```
[R/ABC_SMC.R:118:23:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L118) *style:* **Commas should always have a space after.**
```r
    if(d[numParticles,1] == numParticles) {
                      ^
```
[R/ABC_SMC.R:118:29:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L118) *style:* **Variable and function names should be all lowercase.**
```r
    if(d[numParticles,1] == numParticles) {
                            ^~~~~~~~~~~~
```
[R/ABC_SMC.R:139:5:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L139) *style:* **Variable and function names should be all lowercase.**
```r
    numberAccepted <- 0
    ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:140:28:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L140) *style:* **Variable and function names should be all lowercase.**
```r
    if (t != 1) weights <- normalizeWeights(weights)
                           ^~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:140:28:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L140) *warning:* **no visible global function definition for ‘normalizeWeights’**
```r
    if (t != 1) weights <- normalizeWeights(weights)
                           ^~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:148:12:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L148) *style:* **Variable and function names should be all lowercase.**
```r
    while (numberAccepted <= numParticles) {
           ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:148:30:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L148) *style:* **Variable and function names should be all lowercase.**
```r
    while (numberAccepted <= numParticles) {
                             ^~~~~~~~~~~~
```
[R/ABC_SMC.R:152:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L152) *style:* **Variable and function names should be all lowercase.**
```r
        params <- getRandomVals(species_fallout)
                  ^~~~~~~~~~~~~
```
[R/ABC_SMC.R:152:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L152) *warning:* **no visible global function definition for ‘getRandomVals’**
```r
        params <- getRandomVals(species_fallout)
                  ^~~~~~~~~~~~~
```
[R/ABC_SMC.R:154:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L154) *style:* **Variable and function names should be all lowercase.**
```r
        params <- getFromPrevious(indices, weights,
                  ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:156:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L156) *warning:* **no visible global function definition for ‘perturb’**
```r
        params <- perturb(params, sigma)
                  ^~~~~~~
```
[R/ABC_SMC.R:166:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L166) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~
```
[R/ABC_SMC.R:170:40:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L170) *style:* **Commas should always have a space after.**
```r
      traits <- as.data.frame(species[,c(2:(n_traits+1))],row.names=c(1:taxa));
                                       ^
```
[R/ABC_SMC.R:170:53:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L170) *style:* **Put spaces around all infix operators.**
```r
      traits <- as.data.frame(species[,c(2:(n_traits+1))],row.names=c(1:taxa));
                                                   ~^~
```
[R/ABC_SMC.R:170:59:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L170) *style:* **Commas should always have a space after.**
```r
      traits <- as.data.frame(species[,c(2:(n_traits+1))],row.names=c(1:taxa));
                                                          ^
```
[R/ABC_SMC.R:170:68:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L170) *style:* **Put spaces around all infix operators.**
```r
      traits <- as.data.frame(species[,c(2:(n_traits+1))],row.names=c(1:taxa));
                                                                  ~^~
```
[R/ABC_SMC.R:173:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L173) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/ABC_SMC.R:174:8:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L174) *style:* **Commented code should be removed.**
```r
     # source("/Users/janzen/GitHub/STEPCAM/R/modified_dbFD.R")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:175:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L175) *style:* **lines should not be more than 80 characters.**
```r
      FD_output <- strippedDbFd(Ord, communities, m = res[[1]], nb.sp = res[[2]])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:175:20:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L175) *style:* **Variable and function names should be all lowercase.**
```r
      FD_output <- strippedDbFd(Ord, communities, m = res[[1]], nb.sp = res[[2]])
                   ^~~~~~~~~~~~
```
[R/ABC_SMC.R:175:20:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L175) *warning:* **no visible global function definition for ‘strippedDbFd’**
```r
      FD_output <- strippedDbFd(Ord, communities, m = res[[1]], nb.sp = res[[2]])
                   ^~~~~~~~~~~~
```
[R/ABC_SMC.R:175:82:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L175) *style:* **Trailing whitespace is superfluous.**
```r
      FD_output <- strippedDbFd(Ord, communities, m = res[[1]], nb.sp = res[[2]])
                                                                                ^
```
[R/ABC_SMC.R:176:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L176) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:177:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L177) *style:* **lines should not be more than 80 characters.**
```r
      FRic <- FD_output$FRic # FRic = functional richness (Villeger et al, 2008, Ecology)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:178:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L178) *style:* **lines should not be more than 80 characters.**
```r
      FEve <- FD_output$FEve # FEve = functional evenness (Villeger et al, 2008, Ecology)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:179:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L179) *style:* **lines should not be more than 80 characters.**
```r
      FDiv <- FD_output$FDiv # FDiv = functional diversity (Villeger et al, 2008, Ecology)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:188:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L188) *style:* **lines should not be more than 80 characters.**
```r
      # calculate distance of trait mean simulated community from that of observed
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:191:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L191) *style:* **lines should not be more than 80 characters.**
```r
      # (inverse) fit of model: euclidian distance of FD and trait mean values of
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:193:14:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L193) *style:* **Variable and function names should be all lowercase.**
```r
      fit <- calculateDistance(FRic[[1]], FEve[[1]], FDiv[[1]],
             ^~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:195:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L195) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/ABC_SMC.R:198:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L198) *style:* **Variable and function names should be all lowercase.**
```r
        next_disp[numberAccepted] <- params[1]
                  ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:199:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L199) *style:* **Variable and function names should be all lowercase.**
```r
        next_filt[numberAccepted] <- params[2]
                  ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:200:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L200) *style:* **Variable and function names should be all lowercase.**
```r
        next_comp[numberAccepted] <- params[3]
                  ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:202:14:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L202) *style:* **Variable and function names should be all lowercase.**
```r
        fits[numberAccepted] <- fit
             ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:203:18:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L203) *style:* **Variable and function names should be all lowercase.**
```r
        rich_vec[numberAccepted] <- FRic[[1]]
                 ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:204:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L204) *style:* **Variable and function names should be all lowercase.**
```r
        eve_vec[numberAccepted] <- FEve[[1]]
                ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:205:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L205) *style:* **Variable and function names should be all lowercase.**
```r
        div_vec[numberAccepted] <- FDiv[[1]]
                ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:206:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L206) *style:* **Variable and function names should be all lowercase.**
```r
        opt_vec[numberAccepted] <- mean_optimum;
                ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:209:24:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L209) *style:* **Variable and function names should be all lowercase.**
```r
          next_weights[numberAccepted] = 1
                       ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:209:40:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L209) *style:* **Use <-, not =, for assignment.**
```r
          next_weights[numberAccepted] = 1
                                       ^
```
[R/ABC_SMC.R:211:24:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L211) *style:* **Variable and function names should be all lowercase.**
```r
          next_weights[numberAccepted] =
                       ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:211:40:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L211) *style:* **Use <-, not =, for assignment.**
```r
          next_weights[numberAccepted] =
                                       ^
```
[R/ABC_SMC.R:212:13:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L212) *style:* **Variable and function names should be all lowercase.**
```r
            calculateWeight(params, changed, sigma, disp_vals, filt_vals,
            ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:215:9:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L215) *style:* **Variable and function names should be all lowercase.**
```r
        numberAccepted <- numberAccepted + 1
        ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:215:27:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L215) *style:* **Variable and function names should be all lowercase.**
```r
        numberAccepted <- numberAccepted + 1
                          ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:216:13:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L216) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if ((numberAccepted) %% (numParticles / PRINT_FREQ) == 0) {
            ^
```
[R/ABC_SMC.R:216:14:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L216) *style:* **Variable and function names should be all lowercase.**
```r
        if ((numberAccepted) %% (numParticles / PRINT_FREQ) == 0) {
             ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:216:34:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L216) *style:* **Variable and function names should be all lowercase.**
```r
        if ((numberAccepted) %% (numParticles / PRINT_FREQ) == 0) {
                                 ^~~~~~~~~~~~
```
[R/ABC_SMC.R:222:21:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L222) *style:* **Put spaces around all infix operators.**
```r
      if (tried > (1/stopRate) && tried > 50)  {
                   ~^~
```
[R/ABC_SMC.R:222:22:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L222) *style:* **Variable and function names should be all lowercase.**
```r
      if (tried > (1/stopRate) && tried > 50)  {
                     ^~~~~~~~
```
[R/ABC_SMC.R:224:13:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L224) *style:* **Variable and function names should be all lowercase.**
```r
        if (numberAccepted / tried < stopRate) {
            ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:224:38:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L224) *style:* **Variable and function names should be all lowercase.**
```r
        if (numberAccepted / tried < stopRate) {
                                     ^~~~~~~~
```
[R/ABC_SMC.R:242:54:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L242) *style:* **Put spaces around all infix operators.**
```r
    file_name <- paste("particles_t=", t, ".txt", sep="", collapse = NULL)
                                                    ~^~
```
[R/ABC_SMC.R:245:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L245) *style:* **lines should not be more than 80 characters.**
```r
    cat(" ", mean(disp_vals), mean(filt_vals), mean(comp_vals), "\t", "accept rate = ",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:246:9:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L246) *style:* **Variable and function names should be all lowercase.**
```r
        numberAccepted / (tried-1), "\n")
        ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:246:32:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L246) *style:* **Put spaces around all infix operators.**
```r
        numberAccepted / (tried-1), "\n")
                              ~^~
```
[R/ABC_SMC.R:249:27:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L249) *style:* **Commas should always have a space after.**
```r
    next_weights <- rep(1,numParticles)
                          ^
```
[R/ABC_SMC.R:249:27:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L249) *style:* **Variable and function names should be all lowercase.**
```r
    next_weights <- rep(1,numParticles)
                          ^~~~~~~~~~~~
```
[R/ABC_SMC.R:250:20:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L250) *style:* **Variable and function names should be all lowercase.**
```r
    next_disp <- 1:numParticles
                   ^~~~~~~~~~~~
```
[R/ABC_SMC.R:251:20:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L251) *style:* **Variable and function names should be all lowercase.**
```r
    next_filt <- 1:numParticles
                   ^~~~~~~~~~~~
```
[R/ABC_SMC.R:252:20:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L252) *style:* **Variable and function names should be all lowercase.**
```r
    next_comp <- 1:numParticles
                   ^~~~~~~~~~~~
```
[R/ABC_SMC.R:262:61:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L262) *style:* **Put spaces around all infix operators.**
```r
    d <- read.table(paste("particles_t=", t - 1, ".txt", sep="",
                                                           ~^~
```
[R/ABC_SMC.R:266:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/ABC_SMC.R#L266) *style:* **lines should not be more than 80 characters.**
```r
           "Can't stop at iteration 1 - please set stop_at_iteration to 2 if you only want to generate from the prior")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:4:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L4) *style:* **Words within variable and function names should be separated by '_' rather than '.'.**
```r
generate.Artificial.Data <- function(n_species, n_traits, n_communities,
^~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:6:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L6) *style:* **Use two spaces to indent, never tabs.**
```r
	pool_richness <- n_species
^
```
[R/generateArtificialData.R:8:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L8) *style:* **Use two spaces to indent, never tabs.**
```r
	traits_pool <- matrix( round( rnorm(n = (pool_richness * n_traits),
^
```
[R/generateArtificialData.R:9:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L9) *style:* **Use two spaces to indent, never tabs.**
```r
	                                    mean = 0, sd = 1), 3),
^
```
[R/generateArtificialData.R:9:23:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L9) *style:* **Put spaces around all infix operators.**
```r
	pool_richness <- n_species
                     ~^~~
```
[R/generateArtificialData.R:10:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L10) *style:* **Use two spaces to indent, never tabs.**
```r
	                       ncol = n_traits, nrow = pool_richness)
^
```
[R/generateArtificialData.R:11:21:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L11) *style:* **Put spaces around all infix operators.**
```r
	traits_pool <- matrix( round( rnorm(n = (pool_richness * n_traits),
                   ~^~~
```
[R/generateArtificialData.R:11:47:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L11) *style:* **Put spaces around all infix operators.**
```r
	traits_pool <- matrix( round( rnorm(n = (pool_richness * n_traits),
                                             ~^~
```
[R/generateArtificialData.R:11:49:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L11) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	traits_pool <- matrix( round( rnorm(n = (pool_richness * n_traits),
                                                ^
```
[R/generateArtificialData.R:11:64:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L11) *style:* **Put spaces around all infix operators.**
```r
	traits_pool <- matrix( round( rnorm(n = (pool_richness * n_traits),
                                                              ~^~
```
[R/generateArtificialData.R:12:50:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L12) *style:* **Put spaces around all infix operators.**
```r
	                                    mean = 0, sd = 1), 3),
                                                ~^~
```
[R/generateArtificialData.R:12:58:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L12) *style:* **Put spaces around all infix operators.**
```r
	                                    mean = 0, sd = 1), 3),
                                                        ~^~
```
[R/generateArtificialData.R:13:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L13) *style:* **Use two spaces to indent, never tabs.**
```r
	for(i in 1:pool_richness) {
^
```
[R/generateArtificialData.R:13:37:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L13) *style:* **Put spaces around all infix operators.**
```r
	                       ncol = n_traits, nrow = pool_richness)
                                   ~^~
```
[R/generateArtificialData.R:13:54:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L13) *style:* **Put spaces around all infix operators.**
```r
	                       ncol = n_traits, nrow = pool_richness)
                                                    ~^~
```
[R/generateArtificialData.R:14:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L14) *style:* **Use two spaces to indent, never tabs.**
```r
	  column1[i] <- paste("species", i, sep = "")
^
```
[R/generateArtificialData.R:15:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L15) *style:* **Use two spaces to indent, never tabs.**
```r
	}
^
```
[R/generateArtificialData.R:16:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L16) *style:* **Use two spaces to indent, never tabs.**
```r
	row1 <- rep(NA, (n_traits + 1))
^
```
[R/generateArtificialData.R:16:12:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L16) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	for(i in 1:pool_richness) {
           ^
```
[R/generateArtificialData.R:17:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L17) *style:* **Use two spaces to indent, never tabs.**
```r
	for(i in 1:n_traits + 1) {
^
```
[R/generateArtificialData.R:17:22:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L17) *style:* **Put spaces around all infix operators.**
```r
	  column1[i] <- paste("species", i, sep = "")
                    ~^~~
```
[R/generateArtificialData.R:18:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L18) *style:* **Use two spaces to indent, never tabs.**
```r
	  row1[i] <- paste("trait", (i - 1), sep="")
^
```
[R/generateArtificialData.R:19:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L19) *style:* **Use two spaces to indent, never tabs.**
```r
	}
^
```
[R/generateArtificialData.R:19:14:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L19) *style:* **Put spaces around all infix operators.**
```r
	row1 <- rep(NA, (n_traits + 1))
            ~^~~
```
[R/generateArtificialData.R:19:25:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L19) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	row1 <- rep(NA, (n_traits + 1))
                        ^
```
[R/generateArtificialData.R:20:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L20) *style:* **Use two spaces to indent, never tabs.**
```r
	row1[1] <- "species"
^
```
[R/generateArtificialData.R:20:12:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L20) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	for(i in 1:n_traits + 1) {
           ^
```
[R/generateArtificialData.R:21:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L21) *style:* **Use two spaces to indent, never tabs.**
```r
	columns <- matrix(cbind(column1, traits_pool), ncol = (n_traits + 1))
^
```
[R/generateArtificialData.R:21:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L21) *style:* **Put spaces around all infix operators.**
```r
	  row1[i] <- paste("trait", (i - 1), sep="")
                 ~^~~
```
[R/generateArtificialData.R:21:37:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L21) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	  row1[i] <- paste("trait", (i - 1), sep="")
                                    ^
```
[R/generateArtificialData.R:21:40:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L21) *style:* **Put spaces around all infix operators.**
```r
	  row1[i] <- paste("trait", (i - 1), sep="")
                                      ~^~
```
[R/generateArtificialData.R:22:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L22) *style:* **Use two spaces to indent, never tabs.**
```r
	traits_pool_df <- as.data.frame(columns)
^
```
[R/generateArtificialData.R:23:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L23) *style:* **Use two spaces to indent, never tabs.**
```r
	names(traits_pool_df) <- row1
^
```
[R/generateArtificialData.R:23:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L23) *style:* **Put spaces around all infix operators.**
```r
	row1[1] <- "species"
               ~^~~
```
[R/generateArtificialData.R:24:17:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L24) *style:* **Put spaces around all infix operators.**
```r
	columns <- matrix(cbind(column1, traits_pool), ncol = (n_traits + 1))
               ~^~~
```
[R/generateArtificialData.R:24:61:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L24) *style:* **Put spaces around all infix operators.**
```r
	columns <- matrix(cbind(column1, traits_pool), ncol = (n_traits + 1))
                                                           ~^~
```
[R/generateArtificialData.R:24:63:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L24) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	columns <- matrix(cbind(column1, traits_pool), ncol = (n_traits + 1))
                                                              ^
```
[R/generateArtificialData.R:25:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L25) *style:* **Use two spaces to indent, never tabs.**
```r
	comm_spec_matrix <- matrix(rep(0, (n_communities * pool_richness)),
^
```
[R/generateArtificialData.R:25:24:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L25) *style:* **Put spaces around all infix operators.**
```r
	traits_pool_df <- as.data.frame(columns)
                      ~^~~
```
[R/generateArtificialData.R:26:31:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L26) *style:* **Put spaces around all infix operators.**
```r
	names(traits_pool_df) <- row1
                             ~^~~
```
[R/generateArtificialData.R:28:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L28) *style:* **Use two spaces to indent, never tabs.**
```r
	occurence <- 10^rnorm(pool_richness, mean = 0, sd = occurence_distribution)
^
```
[R/generateArtificialData.R:28:26:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L28) *style:* **Put spaces around all infix operators.**
```r
	comm_spec_matrix <- matrix(rep(0, (n_communities * pool_richness)),
                        ~^~~
```
[R/generateArtificialData.R:28:43:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L28) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	comm_spec_matrix <- matrix(rep(0, (n_communities * pool_richness)),
                                          ^
```
[R/generateArtificialData.R:28:58:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L28) *style:* **Put spaces around all infix operators.**
```r
	comm_spec_matrix <- matrix(rep(0, (n_communities * pool_richness)),
                                                        ~^~
```
[R/generateArtificialData.R:30:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L30) *style:* **Use two spaces to indent, never tabs.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
^
```
[R/generateArtificialData.R:31:19:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L31) *style:* **Put spaces around all infix operators.**
```r
	occurence <- 10^rnorm(pool_richness, mean = 0, sd = occurence_distribution)
                 ~^~~
```
[R/generateArtificialData.R:31:24:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L31) *style:* **Put spaces around all infix operators.**
```r
	occurence <- 10^rnorm(pool_richness, mean = 0, sd = occurence_distribution)
                      ~^~
```
[R/generateArtificialData.R:31:51:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L31) *style:* **Put spaces around all infix operators.**
```r
	occurence <- 10^rnorm(pool_richness, mean = 0, sd = occurence_distribution)
                                                 ~^~
```
[R/generateArtificialData.R:31:59:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L31) *style:* **Put spaces around all infix operators.**
```r
	occurence <- 10^rnorm(pool_richness, mean = 0, sd = occurence_distribution)
                                                         ~^~
```
[R/generateArtificialData.R:32:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L32) *style:* **Use two spaces to indent, never tabs.**
```r
	richness_values[which(richness_values > pool_richness)] <- pool_richness
^
```
[R/generateArtificialData.R:33:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Use two spaces to indent, never tabs.**
```r
	richness_values[which(richness_values < 0)] <- 0
^
```
[R/generateArtificialData.R:33:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **lines should not be more than 80 characters.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:33:25:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Put spaces around all infix operators.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                       ~^~~
```
[R/generateArtificialData.R:33:34:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                 ^
```
[R/generateArtificialData.R:33:61:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Put spaces around all infix operators.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                                           ~^~
```
[R/generateArtificialData.R:33:69:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Put spaces around all infix operators.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                                                    ^~
```
[R/generateArtificialData.R:33:74:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Put spaces around all infix operators.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                                                        ~^~
```
[R/generateArtificialData.R:33:76:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                                                           ^
```
[R/generateArtificialData.R:33:89:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L33) *style:* **Put spaces around all infix operators.**
```r
	richness_values <- round((rnorm(n_communities, mean = 0, sd = 1) * (sd_richness * pool_richness) +
                                                                                ~^~
```
[R/generateArtificialData.R:34:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L34) *style:* **Use two spaces to indent, never tabs.**
```r
	for(i in 1:n_communities){
^
```
[R/generateArtificialData.R:35:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L35) *style:* **Use two spaces to indent, never tabs.**
```r
	  if(mechanism_random == T){
^
```
[R/generateArtificialData.R:35:47:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L35) *style:* **Put spaces around all infix operators.**
```r
	richness_values[which(richness_values > pool_richness)] <- pool_richness
                                             ~^~
```
[R/generateArtificialData.R:35:65:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L35) *style:* **Put spaces around all infix operators.**
```r
	richness_values[which(richness_values > pool_richness)] <- pool_richness
                                                               ~^~~
```
[R/generateArtificialData.R:36:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L36) *style:* **Use two spaces to indent, never tabs.**
```r
	    present_species <- sample(c(1:pool_richness), richness_values[i],
^
```
[R/generateArtificialData.R:36:47:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L36) *style:* **Put spaces around all infix operators.**
```r
	richness_values[which(richness_values < 0)] <- 0
                                             ~^
```
[R/generateArtificialData.R:37:12:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L37) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	for(i in 1:n_communities){
           ^
```
[R/generateArtificialData.R:38:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L38) *style:* **Use two spaces to indent, never tabs.**
```r
	  }else{
^
```
[R/generateArtificialData.R:38:13:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L38) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	  if(mechanism_random == T){
            ^
```
[R/generateArtificialData.R:39:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L39) *style:* **Use two spaces to indent, never tabs.**
```r
	    opt_traits <- rnorm(n_traits, mean = 0, sd = 1)
^
```
[R/generateArtificialData.R:39:29:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L39) *style:* **Put spaces around all infix operators.**
```r
	    present_species <- sample(c(1:pool_richness), richness_values[i],
                           ~^~~
```
[R/generateArtificialData.R:40:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L40) *style:* **Use two spaces to indent, never tabs.**
```r
	    opt_traits_matrix <- c()
^
```
[R/generateArtificialData.R:41:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L41) *style:* **Use two spaces to indent, never tabs.**
```r
	    for(j in 1:n_traits){
^
```
[R/generateArtificialData.R:42:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L42) *style:* **Use two spaces to indent, never tabs.**
```r
	      for(k in 1:pool_richness){
^
```
[R/generateArtificialData.R:42:24:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L42) *style:* **Put spaces around all infix operators.**
```r
	    opt_traits <- rnorm(n_traits, mean = 0, sd = 1)
                      ~^~~
```
[R/generateArtificialData.R:42:48:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L42) *style:* **Put spaces around all infix operators.**
```r
	    opt_traits <- rnorm(n_traits, mean = 0, sd = 1)
                                              ~^~
```
[R/generateArtificialData.R:43:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L43) *style:* **Use two spaces to indent, never tabs.**
```r
		      l <- (j - 1) * pool_richness + k
^~
```
[R/generateArtificialData.R:44:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L44) *style:* **Use two spaces to indent, never tabs.**
```r
		      opt_traits_matrix[l] <- opt_traits[j]
^~
```
[R/generateArtificialData.R:44:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L44) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	    for(j in 1:n_traits){
               ^
```
[R/generateArtificialData.R:45:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L45) *style:* **Use two spaces to indent, never tabs.**
```r
	      }
^
```
[R/generateArtificialData.R:45:18:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L45) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	      for(k in 1:pool_richness){
                 ^
```
[R/generateArtificialData.R:46:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L46) *style:* **Use two spaces to indent, never tabs.**
```r
	    }
^
```
[R/generateArtificialData.R:46:25:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L46) *style:* **Put spaces around all infix operators.**
```r
		      l <- (j - 1) * pool_richness + k
                       ~^~~
```
[R/generateArtificialData.R:46:28:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L46) *style:* **Place a space before left parenthesis, except in a function call.**
```r
		      l <- (j - 1) * pool_richness + k
                           ^
```
[R/generateArtificialData.R:46:31:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L46) *style:* **Put spaces around all infix operators.**
```r
		      l <- (j - 1) * pool_richness + k
                             ~^~
```
[R/generateArtificialData.R:46:36:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L46) *style:* **Put spaces around all infix operators.**
```r
		      l <- (j - 1) * pool_richness + k
                                  ~^
```
[R/generateArtificialData.R:47:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L47) *style:* **Use two spaces to indent, never tabs.**
```r
	    opt_traits_matrix <- matrix(opt_traits_matrix, ncol = n_traits)
^
```
[R/generateArtificialData.R:47:44:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L47) *style:* **Put spaces around all infix operators.**
```r
		      opt_traits_matrix[l] <- opt_traits[j]
                                          ~^~~
```
[R/generateArtificialData.R:48:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L48) *style:* **Use two spaces to indent, never tabs.**
```r
	    traits_distances <- abs(traits_pool - opt_traits_matrix)
^
```
[R/generateArtificialData.R:49:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L49) *style:* **Use two spaces to indent, never tabs.**
```r
	    trait_distances_onedimen <- c()
^
```
[R/generateArtificialData.R:50:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L50) *style:* **Use two spaces to indent, never tabs.**
```r
	    for(m in 1:pool_richness){
^
```
[R/generateArtificialData.R:50:31:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L50) *style:* **Put spaces around all infix operators.**
```r
	    opt_traits_matrix <- matrix(opt_traits_matrix, ncol = n_traits)
                             ~^~~
```
[R/generateArtificialData.R:50:65:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L50) *style:* **Put spaces around all infix operators.**
```r
	    opt_traits_matrix <- matrix(opt_traits_matrix, ncol = n_traits)
                                                               ~^~
```
[R/generateArtificialData.R:51:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L51) *style:* **Use two spaces to indent, never tabs.**
```r
	      trait_distances_onedimen[m] <- sqrt(sum(traits_distances[m, ] * traits_distances[m, ]))
^
```
[R/generateArtificialData.R:51:30:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L51) *style:* **Put spaces around all infix operators.**
```r
	    traits_distances <- abs(traits_pool - opt_traits_matrix)
                            ~^~~
```
[R/generateArtificialData.R:51:49:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L51) *style:* **Put spaces around all infix operators.**
```r
	    traits_distances <- abs(traits_pool - opt_traits_matrix)
                                               ~^~
```
[R/generateArtificialData.R:52:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L52) *style:* **Use two spaces to indent, never tabs.**
```r
	    }
^
```
[R/generateArtificialData.R:53:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L53) *style:* **Use two spaces to indent, never tabs.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
^
```
[R/generateArtificialData.R:53:16:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L53) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	    for(m in 1:pool_richness){
               ^
```
[R/generateArtificialData.R:54:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L54) *style:* **Use two spaces to indent, never tabs.**
```r
	    present_species <- sample(c(1:pool_richness), richness_values[i],
^
```
[R/generateArtificialData.R:54:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L54) *style:* **lines should not be more than 80 characters.**
```r
	      trait_distances_onedimen[m] <- sqrt(sum(traits_distances[m, ] * traits_distances[m, ]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:54:43:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L54) *style:* **Put spaces around all infix operators.**
```r
	      trait_distances_onedimen[m] <- sqrt(sum(traits_distances[m, ] * traits_distances[m, ]))
                                         ~^~~
```
[R/generateArtificialData.R:54:77:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L54) *style:* **Put spaces around all infix operators.**
```r
	      trait_distances_onedimen[m] <- sqrt(sum(traits_distances[m, ] * traits_distances[m, ]))
                                                                           ~^~
```
[R/generateArtificialData.R:56:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L56) *style:* **lines should not be more than 80 characters.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:56:27:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L56) *style:* **Put spaces around all infix operators.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
                         ~^~~
```
[R/generateArtificialData.R:56:31:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L56) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
                              ^
```
[R/generateArtificialData.R:56:57:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L56) *style:* **Put spaces around all infix operators.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
                                                       ~^~
```
[R/generateArtificialData.R:56:90:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L56) *style:* **Put spaces around all infix operators.**
```r
	    inv_distances <- -(trait_distances_onedimen - max(trait_distances_onedimen)) + 10^-99
                                                                                ~^~
```
[R/generateArtificialData.R:57:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L57) *style:* **Use two spaces to indent, never tabs.**
```r
	  comm_spec_matrix[i, c(present_species)] <- 1
^
```
[R/generateArtificialData.R:57:29:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L57) *style:* **Put spaces around all infix operators.**
```r
	    present_species <- sample(c(1:pool_richness), richness_values[i],
                           ~^~~
```
[R/generateArtificialData.R:58:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L58) *style:* **Use two spaces to indent, never tabs.**
```r
	}
^
```
[R/generateArtificialData.R:59:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L59) *style:* **Use two spaces to indent, never tabs.**
```r
	comm_spec_matrix
^
```
[R/generateArtificialData.R:60:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L60) *style:* **Use two spaces to indent, never tabs.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) traits_pool_df <-
^
```
[R/generateArtificialData.R:62:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L62) *style:* **Use two spaces to indent, never tabs.**
```r
	row1 <- c(column1[-c(which(colSums(comm_spec_matrix) == 0))])
^
```
[R/generateArtificialData.R:63:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L63) *style:* **Use two spaces to indent, never tabs.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) comm_spec_matrix <-
^
```
[R/generateArtificialData.R:63:11:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L63) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) traits_pool_df <-
          ^
```
[R/generateArtificialData.R:63:58:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L63) *style:* **Put spaces around all infix operators.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) traits_pool_df <-
                                                        ~^~~
```
[R/generateArtificialData.R:65:14:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L65) *style:* **Put spaces around all infix operators.**
```r
	row1 <- c(column1[-c(which(colSums(comm_spec_matrix) == 0))])
            ~^~~
```
[R/generateArtificialData.R:65:62:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L65) *style:* **Put spaces around all infix operators.**
```r
	row1 <- c(column1[-c(which(colSums(comm_spec_matrix) == 0))])
                                                            ~^~~
```
[R/generateArtificialData.R:66:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L66) *style:* **Use two spaces to indent, never tabs.**
```r
	comm_spec_matrix <- as.data.frame(cbind(comm_spec_matrix, rep("", n_communities)))
^
```
[R/generateArtificialData.R:66:11:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L66) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) comm_spec_matrix <-
          ^
```
[R/generateArtificialData.R:66:58:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L66) *style:* **Put spaces around all infix operators.**
```r
	if(length(which(colSums(comm_spec_matrix) == 0)) != 0) comm_spec_matrix <-
                                                        ~^~~
```
[R/generateArtificialData.R:67:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L67) *style:* **Use two spaces to indent, never tabs.**
```r
	names(comm_spec_matrix) <- row1
^
```
[R/generateArtificialData.R:69:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L69) *style:* **Use two spaces to indent, never tabs.**
```r
	plots <- as.data.frame(matrix(as.numeric(as.matrix(comm_spec_matrix[, -ncol(comm_spec_matrix)])),
^
```
[R/generateArtificialData.R:69:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L69) *style:* **lines should not be more than 80 characters.**
```r
	comm_spec_matrix <- as.data.frame(cbind(comm_spec_matrix, rep("", n_communities)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/generateArtificialData.R:69:26:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L69) *style:* **Put spaces around all infix operators.**
```r
	comm_spec_matrix <- as.data.frame(cbind(comm_spec_matrix, rep("", n_communities)))
                        ~^~~
```
[R/generateArtificialData.R:70:33:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L70) *style:* **Put spaces around all infix operators.**
```r
	names(comm_spec_matrix) <- row1
                               ~^~~
```
[R/generateArtificialData.R:72:1:](https://github.com/thijsjanzen/STEPCAM/blob/3397674888e9ff85e578f207325d1a60f8a3ca4f/R/generateArtificialData.R#L72) *style:* **Use two spaces to indent, never tabs.**
```r
	names(plots) <- traits_pool_df[, 1]
^
```


why change the second section of code? is identical! this doesnt work for me, sorry!


I removed the All Testing (commented out in the code) and similar merged events because they included model type of events such as "connected" and "firestarted". These types of event could occur during student building and aren't explicitly events that tell us that the student is conducting a test.

The current merged events include:
- User testing with voltmeter (dragging voltmeter probes)
- User testing with non contact ammeter (dragging ammeter probes)
- User testing with series ammeter (adding component)
- User all testing actions (merged events from three groups above)
- instruments detect change (anytime the voltmeter or ammeter changes value)
- all resistor editor events (@fratamico, do happen to now what the difference is between user.resistorEditor and user.resistivity events?)
- resistor dragging events
- Building type actions (was a previous preset, except I remove the "add series ammeter" component since that's not really building.)


I meant to also write "... as well as a test of the client, which are testServer and testClient".


Exciting! Can't wait to see more!


Just came up with it while trying to think of a username in 1337 for something years and years ago. The handle just kind of stuck around. But there is some significance in being an extremist which is something I’ve been called many times. Not necessarily because of any specific ideological or political belief, it relates more or less to how I seem to have a tendency to get completely obsessed with my interests and hold myself to ridiculous standards in pursuing them…to an extreme. Idk I think it might come off as elitist but I’m just very very passionate about what I’m passionate about and I think that the world is plagued by mediocrity.

> On Sep 20, 2016, at 2:47 PM, Mark Carpenter <notifications@github.com> wrote:
>
> I meant to ask.... what's the story behind your github username?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <https://github.com/3x7r3m157/bloccit/commit/708028e3d22b7ebafe705dc80ece1e746eab2726#commitcomment-19102851>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJhNPtYLtirciGVCDwtxHixgT3MsgX_Lks5qsDhvgaJpZM4KCD9t>.
>


Hi @yorikvanhavre
I read today your post about pipe tool in Arch and... look at the new workbench in Flamingos!
I should rename it to "pypeTools" or "p.t. II" because I committed after you :-)
It is not complete yet but I'm going to write a short tutorial to show the basics. It also has a philosophy a bit different from frameTools.
I'm courious to see how you made the insertion of curves because I struggled a while on it.
If you have comments for better integration of new objects "FeaturePython" with your job I'll be pleased to include them.


Can you push your example csharp file. Also does the cmake work for it? Basically how should I compile I was doing it differently before the merge.


True, I tested it unsuccessfully with a `loaders` parameter and assumed an array wouldn't work in `loader`, but was wrong. Commit inc 😉


Fixed in f993cdd18fd4f3b1277eade2384bf9fea9dac3a0.


We dropped this file for the other plugins


THATS THE PLAN! Do you have other incentives for this project!!!!

On Tue, Sep 20, 2016 at 8:52 PM, dan-mannion <notifications@github.com>
wrote:

> OH MA GOD WE'RE BUILDING A BRAIN
>
> [image: alt text]
> <https://camo.githubusercontent.com/9f36c43818f7c11cc8b6851511000ffd9adf9b7e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6c6f777265732e636172746f6f6e73746f636b2e636f6d2f736f6369616c2d6973737565732d636f6d70757465725f636869702d676f7665726e6d656e745f696e746572666572656e63652d676f7665726e6d656e74732d627261696e5f636f6e74726f6c732d696d706c616e74732d726d616e31343933375f6c6f772e6a7067>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/dan-mannion/y4proj/commit/77600b48882d3643284a83a3b4a85974fae75d3e#commitcomment-19102927>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AVNOBeA5-XvR2BwM_Q8woo2Jd_GVpNpOks5qsDmQgaJpZM4KCEXS>
> .
>


所有的元素尽量直接列在后面。


@frol I think they are pushed. Its only the scanner that gives false positive. It has been reported and I expect it to be fixed tomorrow. `openssl-1.0.2h-r4` has the fix.

````
ncopa-desktop:~$ docker run --rm -it alpine:3.4 apk version libssl1.0
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
Installed:                                Available:
libssl1.0-1.0.2h-r4                     ?
````


Почему нет модификатора доступа?


Build flashed, GSM on I9505 it's fine on multi-device.


try setting this to `position:static;` , that way the hamburger menu will be absolutely positioned relative to the `header`


try setting `top:0em` so it goes to the top of the `header` element


ASIHP-validation1 (shenb) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (2373 of 2373 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.svg)


Fixed in 0f184d8542a123ac6199250bc36375f3ccd0d058.


This addition broke `make install` for me, probably related to `--disable-docs`.


update to gate with e prefix


И вообще зачем эта штука здесь объявляется, если она используется только в методе inputFile() ?


@TheOfficialFloW, could you share your modified appmgr.h ?.. or pull it on vitasdk?
http://image.prntscr.com/image/aca4ff5b0dbd4a3190bf37c7682df1dc.png


Things like 'character_set_client' are MySQL variable names. Translating those only creates confusion. Just leave them as-is. At least then people can Google for them and find meaningful info.

http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_character_set_client


Good Job @timabbott :D


@otg-chris Please, look at the parent commit.


I would get rid of the  following from your `.hero-links` rule
```
top: 50%;
 transform: translateY(-50%);
```


Is there a test we could add that would have triggered this?


On 20/09/16 16:34, Pete Cooper wrote:
> Add missing charset-related strings
>
> Shown in verbose/high detail diagnostics.
>
> @Bloke / @bloatware / @vanmelick -- some clarification/confirmation on
> whether these descriptions are appropriate/accurate would be
> appreciated. I've used best guess to get *something* in there instead
> of a blank string.

Things like 'character_set_client' are MySQL variable names. Translating
those only creates confusion. Just leave them as-is. At least then
people can Google for them and find meaningful info.

http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_character_set_client

Regards,
--Ruud


А зачем два раза читаешь из файла одно и тоже? Здесь


И здесь


@gsaponaro @mbrunettini

Tomorrow I'm going to test the modifications in [**`feature/cluster-with-ssh-options`**](https://github.com/robotology/icub-main/commit/5ab2b2fe8ddc47097a6cb9af08c659d941517e3f) that should allow user to enable **`-X`** option on a **per node basis**.

This could represent a final solution to the problem.


ASIHP-validation1 (shenb) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg)


haha OK :)


I need to address the absence of `realpath` on Ubuntu trusty properly and then I'll merge this.


Строки так не создавай. Используй String str = "";


Looks like this also fixed a merge artifact (still piping the script to `sh`).


The style addition show here should be added to the original product.css file:

/common/common-mce/styles/css/v2/products.css


Why did you disable battery stats on lollipop? The BATTERY_STATS permission is already given to SystemUI


Holy cow! Anyone who complains that Perl looks like RS-232 line noise had better not try to explain how makefile syntax is any better. Good job finding the unintended alteration to that statement, @floam.


Hi akfish - we're relatively new to this, but this change seems to have broken our builds.

Prior to this change, the "handler" property on server.route() had its type properly found by TS as well as those of request and reply.  With this change, on "request" and "reply" in this line we get "implicitly any" errors:

> handler: (request, reply) => { console.log("foobar"); },

Removing the four lines containing this code fixes this and lets us build again:

> <T>(request: Request, reply: IStrictReply<T>): void;

We can also fix it by explicitly setting the type of request and reply to Hapi.Request and Hapi.IReply but that seems like it should be unnecessary.

Can you comment on this?


Don't use `0px`, use `0`. It's syntactically more correct.


Hey, I wasnt trying to make an argument at all. I just prefer battery cause I dont wanna have a cable over there, period.
About measuring the average power (or current) consumption. It is not trivial. Yeah sure I can measure battery discharge, that's what I did. Say 7 days it took to discharge the battery from fully charged. What's the average power consumption in Watts? No idea, cause I don't know the battery capacity.


А зачем здесь присваивать str новый стрингбуффер, если ты потом выводишь этот str? Сразу можно выводить то, что перевернет StringBuffer.
А, и если numberRows будет 1000, у тебя будут 1000 объектов StringBuffer находиться в куче. А эт че-то не очень. Лучше юзать один StringBuffer, запихивать туда i-ую строку, переворачивать ее, выводить и потом чистить StringBuffer для следующей строки.


info: @sijskes sp is interesting to locate the thread ... the mem aria is defined   on task create


Yeah, we could add the debugging commands from #1803 as a test.


Thanks for merging in my features.

The next set will likely be more enemies.


В приципе, в этом случае можно не создавать экземпляр класса, а использовать метод как static


i see this in rc.shutdown:

	 3) #PDEV1.
	  asktosave_func
	  if [ $? -eq 0 ]; then
		echo "$(printf "$(gettext 'Saving session to %s...')" "$PDEV1")" >/dev/console
		/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
	  fi
	  ;;

is this pupmode deprecated or something?


Вот этот метод как static


Also, the Phase 2 checks are probably not banning yet, just don't hit the bot and you'll be okay for now.


Stalling resync is a good point (although I don't think it's indefintely, sooner or later one of the non-malicious packets would arrive at the right time and become the packet we synchronize with).

> [when not out of sync,] authenticated packets will reset decap_fail and thus cancel out the resync overhead
True.  It's also a good argument for `resync_threshold` being rather large!

>Does that make sense?


Use current location rather than co_ordinates?


Just change hack to hacky or just ignore it, it can still be merged


Here I'm just trying to correct the simplified parameters but I might try some more tunings if this works. Anyway, I would like to change the role of PSQT...


Not needed?


I will leave a nasty red X next to the PR's, it might keep @ST-Apps from merging the PR completely ;-)


Okay the pom.xml change seems to be needed for [some reason](https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html) i guess...

I still really dont like discrepancies between two machines...
I will commit over your changes after introducing some sorting in the urm plugin (sigh, the git history will be a mess...)


Ah, sounds reasonable. I can just as well make that improvement later.


Ok, understandable.


Probably not.


Also fails on 35 (5*7), 49 (7*7), 65 (5*13), 85 (5*17), 91 (7*13), 95 (5*19), 115 (5*23), etc. Basically anything with two or more prime factors greater than 5.


The style addition show here should be added to the original atg-cart.css file:

/common/common-mce/styles/css/v2/atg-cart.css


I suppose this was important :D


rather than use result of action, specifically modify the relevant var in the current location object, then write the current location object details to the game world objects.


So exciting chrome canary(M55) finally enable TCO without flag?
 I made a small test on chrome canary with all flag reset to default. But still see the stack grows. Am I missing something?


For super users this still returns null. Looking into where to pull this for them. @leocavalcante


I think you can simplify code to GetCasterGuid(). Ofc it will be non zero for GO casts. But as I look in related code it must work fine in this case also.


I am trying to compile the project but it won't.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\BloodArsenal\build.gradle' line: 39

* What went wrong:
A problem occurred evaluating root project 'BloodArsenal'.
> repository not found: C:\BloodArsenal


Agree, its weird. I am still in love with the idea that the complexity of API calls is predictable though. The cost of `decapsulate` is constant and `resync` is `n * decapsulate`. The cost of the previous `decapsulate` is variable. Might be a bit esoteric of me to prefer the former, but the simplicity of both `lib.ipsec` and `apps.ipse.espc` (I think its still simple, before it was a really thin wrapper) make me root for this API.

For instance, this line https://github.com/snabbco/snabb/commit/1b084281848b57ac320c8a4cef92b17610a77b44#diff-43eed07c0c5cb316e7ea2726a3e45b10R178 allocates because it calls `ffi.new` which will trigger the GC in the data plane. Took me really long to notice.^^

It would be cooler to have a simpler API, obviously.


I couldn't understand why this was necessary so I loaded it up in a browser and turned it off and nothing changed. What is this supposed to do?


Oh. That's too bad :( @karakum want to attempt fixing that?


all the necessary steps


Create action class which calls relevant action methods, instead of using this method?


Die Suche nach den Snippets setzt natürlich voraus, dass das eigene vim analog zu meinem konfiguriert ist. Meine Konfiguration befindet sich in dem entsprechenden Repository.


@jrmartin question: why do we have scripts in the value field? I thought it was gonna be like the value field in a dropdown (an integer or string to identify the option, to be used or not depending if the controls is being used like a dropdown), nothing to do with executable stuff? Granted, theoretically nothing stops the user from putting a piece of javascript there and define a click handler that runs it like you did :)


Will do, but probably not worth a separate commit itself. I'll try to remember it fo the next time i need to change something around here.


The byte-compiler complains about these variables:

```
git-commit.el:631:36:Warning: reference to free variable `font-lock-beg'
git-commit.el:632:36:Warning: reference to free variable `font-lock-end'
git-commit.el:633:52:Warning: assignment to free variable `font-lock-beg'
git-commit.el:634:38:Warning: assignment to free variable `font-lock-end'
```


Have the typing been moved to DT yet? Because this last release removed them and now I'm not sure where to find them?


these var names are a bit verbose - leads to very long line


MakeWebKitWork (kbenne) - x86_64-MacOS-10.10-clang: Build Failed

![Build Badge](http://img.shields.io/badge/build%20status-failing-red.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-NA-red.svg)


Did you download the zip instead of cloning the project?


get rid of no action result?


@aeickho thnks. interesting. not used at the moment in this specific call. i left the code commented.


TaskCluster-GitHub: https://tools.taskcluster.net/task-graph-inspector/#MwXUdGbnRdKSu4H7-SvCng


possible to refactor if?


@chicoxyzzy I don't see TCO in Chrome 55 on OS X and Windows. That looks like #790


Hey. Do you have a time to create pull request to main repo?
P.S.
Евгений, если не трудно, попроси их смержить если ты доделал. Поверь эта штука очень нужная. Спасибо!


@bcamper I add this to solve temporally the problem... but with out this POIs don't show, claims can't find `components/textures.yaml`


I think it would be clearer to have the `ng-show` just on the `<span>` because that's the only bit that changes based on type, eg:

```
          <div ng-show="selected.doc.type === 'clinic'" class="col-sm-6">
            <h4>
              <i class="fa fa-user"></i>
              <span ng-show="selected.doc.type !== 'clinic'" translate>People</span>
              <span ng-show="selected.doc.type === 'clinic'" translate>clinic.field.children</span>
            </h4>
          </div>
```


Good job!


        SpellAuraHolder* GetSpellAuraHolder(uint32 spellid, ObjectGuid casterGUID) const;
?


Printing description should not be handled as puts code here, can it be included in current location class?


@samdark, previous version just need to swap arguments, like;
```php
616:            if (isset($output, $output[1]) && strpos($output[1], 'CON') !== false) {
617:                return $size = [(int) preg_replace('~\D~', '', $output[4]), (int) preg_replace('~\D~', '', $output[3])];
618:            }
```


This is a direct backport from Wrath. Needs to be optimized there too.


squash to one player prompt method?


Fuckin


Yes, that would work.


Just out of curiosity, are you *sure* the fib example which was working was a fully-built debug build?  Because I can imagine it would have worked if some setting somewhere was release...as the other functions are inline.

Just seems physically impossible to find the Panic_Value_Debug library routine by name if there's no name set up!


This is the same styles as the class above - just comma separate the class names?


instead of action result, update current location object using action methods, then pass back to the the_world object to update?


Orange looks cool btw


Nice!


Minor: the project uses 2 spaces for indentation, not tabs.


fixBranchTransition (mitchute) - x86_64-MacOS-10.9-clang: OK (2333 of 2333 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.svg)


Add print description method for location, item and character


You shouldn't directly change (or delete) translations or they will be reverted in the next POE export. These have to be done through POE and exported which shows up as a separate commit. For more info: https://github.com/medic/medic-docs/blob/master/md/dev/translations.md#modifying-any-existing-translation-values


@IanMeyers  readLine (rl) is not available here other than what is mocked out and the idea with the file-based setup is to not have any prompts. I'll submit a patch shortly.


Maybe this block and the one at line 171 could be factorized in a private method like `setAlbumsSortPref()`?


Secondly I'm not sure this should be titlecase. Why not "Head of household"?

I've tried to work this out before and as far as I can tell there is no "correct" usage of titlecase in English grammar, so I try to avoid it everywhere.


There is no guarantee that ```std::weak_ptr<Connection> conn``` is not empty. This is exactly the case when a node has no attached connections.
```
if (auto sharedConn = conn.lock())
  deleteConnection(sharedConn);
```


113836013-Swimming-Pool-Evaporation-and-Cover-Issues (mjwitte) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1768 of 1768 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.svg) ![Coverage Badge](http://img.shields.io/badge/coverage%20status-71.14%25-green.svg)


Weird... It's reported as 100% pass by CI. Maybe the tests are flawed... https://travis-ci.org/atesgoral/hrm-solutions/builds/157759626#L652


After the fix above we can uncomment this


Returning to timecops days?!


Are you referring to the `expect("can't eval len")`? Any problems that could cause would exist before this commit, too, since `eval_operand_to_primval` works just as well for `Lvalue`s (it gets a `Pointer` and calls `read_primval`).

But I see your point. The `len` or `index` operands could presumably evaluate to dangling `Pointer`s with the right abuse of unsafe code...


Unfortunately had to redo some of it to be compatible with iOS 7 and 8 :-(. Well at least it works now for all devices


I forgot to implement the destructor of NodeGraphicsObject -- my fault:

NodeGraphicsObject::
~NodeGraphicsObject()
{
  _scene.removeItem(this);
}

With that and with my comments on github it seems to work.

On Tue, Sep 20, 2016 at 6:21 PM, MigFerreira <notifications@github.com>
wrote:

> Thanks for the explanation.
> weak/shared pointers are new to me.
>
> Not to be troublesome but if you find any additional errors or bad
> practices don't hesitate to point them out.
>
> Regards,
> Miguel
>
>
> Sent from Mailbird [http://www.getmailbird.com/?
> utm_source=Mailbird&utm_medium=email&utm_campaign=
> sent-from-mailbird]
> On 20/09/2016 16:58:03, paceholder <notifications@github.com> wrote:
> Just for your information.
> This is a tricky C++ thing. The function lock() returns a temporary object
> std::shared<Node>.
> You can copy it to a local variable
> std::shared_ptr<Node> node = ngo->node().lock();
> In this case the inner counter in node gets increment and everything works
> fine.
> Temporary object is destroyed (with decrementing the counter).
> Alternatively, you can bind it to const reference
> std::shared_ptr<Node> const & node = ngo->node().lock();
> C++ guarantees that temporary object bound to the const ref will exist
> till the const ref goes out of scope.
> However binding a temporary object to the non-const reference is an error:
> std::shared_ptr<Node>& node = ngo->node().lock();
> After the temporary object is bound to the reference it is destroyed.
> Reference remains in an undefined state. It references a destroyed object.
> See also: http://stackoverflow.com/questions/11560339/returning-
> temporary-object-and-binding-to-const-reference [http://stackoverflow.com/
> questions/11560339/returning-temporary-object-and-binding-
> to-const-reference]
> I will check a bit later why the code throws a segmentation fault.
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub [https://github.com/
> MigFerreira/nodeeditor/commit/9ebda26996a5a9a0b98f7b20abc06b
> 58706df80b#commitcomment-19098765], or mute the thread [
> https://github.com/notifications/unsubscribe-auth/AAdn-
> PrBz9kGSZ4g066ALNyf1tV10fpPks5qsAKGgaJpZM4KBzmP].
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/MigFerreira/nodeeditor/commit/9ebda26996a5a9a0b98f7b20abc06b58706df80b#commitcomment-19099211>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AATtiHHDlXNdSdlIisPEukXd-oVOcUrUks5qsAf1gaJpZM4KBzmP>
> .
>


could add relevant action methods to this class, called by action methods. then you don't have to pass data around as much.
def talk_to_location_character
def look_at location_item
def take_location_item/def add_to_inventory
def drop inventory_item/def add_to_location
def move.
methods sit in classes affected by player action, but are called by the resolve_action method.


lol, no clue why that got in there


ASIHP-validation1 (shenb) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (1193 of 1193 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.svg) ![Coverage Badge](http://img.shields.io/badge/coverage%20status-36.11%25-green.svg)


it dont work'


non mi piace avviso


Whoops error in comit message, d6feeae not 6dfeeae !


Also allows usings inside of namespaces.


👍  thanks for implementing this, glad i checked forks before i dove in!


Of course :)
I've thought it would have been more fair to ask to the author before changing it.


Tuğba selamlar
Sistemle ilgili nedense yapıp bırakmışsın, neden destek vermiyorsun ki? yada düzgünce bilgi vermiyorsun, sistem nedense hiç bir şekilde çalışmadı. eline sağlık.


That looks reasonable. I didn't think I'd seen anyone unexpected values, but if it's supposed to be a bit-field , the I should definitely be seeing some. I'll verify, and update/PR if needed.
Thanks for extracting this code out by the way, good idea.


I noticed that Qt always sets a GraphicsObject to ```selected == true``` as soon as we click onto it -- did not know about that. Thus, this line always switches the state from selected to unselected. I need to think how to deal with that.

I would also add below the call for re-drawing the graphics object:
```update();```


"DaddyWarbucks" -- This made me laugh.


# Sam-Phiri
## This is a markdown file
### Row Labels	Estimated Total	Actual Total	Variance Total	Prior Year Total	Prior Year Variance Total
#### Personnel	$177,946 	$174,534 	$3,412 	$181,136 	$6,602
#### Office	$90,128 	$84,812 	$5,316 	$87,431 	$2,619
#### Salespeople	$87,818 	$89,722 	($1,904)	$93,705 	$3,983
#### Operating	$373,382 	$369,050 	$4,332 	$347,452 	($21,598)
#### Advertising	$87,259 	$91,738 	($4,479)	$95,865 	$4,127
#### Delivery Costs	$96,141 	$81,995 	$14,146 	$80,426 	($1,569)
#### Legal and Auditing	$82,747 	$93,837 	($11,090)	$85,083 	($8,754)
#### Office supplies	$98,722 	$95,877 	$2,845 	$77,345 	($18,532)
#### Utilities	$8,513 	$5,603 	$2,910 	$8,733 	$3,130
#### Totals	$551,328 	$543,584 	$7,744 	$528,588 	($14,996)


You have caused a dependency to Java 8 here. Could you stick with Java 7 please because Java 7 is the current minimum requirement for Talend.


Oh that ffi.new was actually a stopgap I forgot to remove when I didn't know the right place to own a temporary array for that purpose -- it should be a member of `esp_v6_decrypt` that is allocated only once. Duh.

As for the predictable complexity point, I can agree with.  At least for realtime systems that would sure be useful.


Good catch, is this described somewhere in a datasheet (that we have to fallback to single read if multi read fails)? What about write?


может commandClicked ? чтобы было понятно, что это обработчик клика на комманду


@mibby yes, because CS would auto update and "fix" sign and also handle players with long usernames (16 chars). But in your case the UUID would still have old username (in CS user database), the issue gets even worse once another user is trying to take over old username with new UUID.


You need to specify a string as the second required parameter for the options, otherwise all of these will default to OFF.
https://cmake.org/cmake/help/v3.0/command/option.html
```
OPTION(BUILD_STATIC "Build a static library" OFF)
OPTION(BUILD_EXECUTABLES "Build the libjpeg executables" ON)
OPTION(BUILD_TESTS "Build the tests" ON)
```


potentially replaced with a .move method and anyother gameworld methods - teleport?
character_move?


@zloirock @mko-io it was enabled without a flag before 55.0.2866 which was released today. I've noticed that it stopped passing tests after update but realised to not provide a new PR yet.


No.  Thanks for the good catch.  I now checked in a correct version.

This is only a problem on develop, right?


Here you could also do

If (!informing) return;

That would reducertainly indentation.  ;)


для понятности стоит вынести event.target в переменную.
```js
var commandElement = event.target,
    commandName     = commandElement.textContent;

bot.sendCommand(commandName);

```


We know that PSQT is a 'measure' of imperfection for SF play. Maybe one idea could be to try
New PSQT = 0.95 * Old PSQT from time to time to see whether an evaluation improves.


Wondering when next release will come with this commit?

We faced this issue and spent a lot of time to find out the root cause. I am really looking forward to the next release and can't wait for applying to my production.


Обрати внимание, что выражение `user.compare(one)` выполняется 2 раза подряд. Здесь ок, но если операция занимает значимое количество времени, лучше сохранить значение в переменную и затем сравнивать, присваивать


глобальная переменная?


это тоже глобальная?


Sorry I was half asleep when writting that... I hope it's a bit more readable now: https://github.com/dmulloy2/ChestShop-3/issues/8#issuecomment-248432695 :)


Lol


Maybe fetch the languages with `glob(DIR.'*.xml')`? This is much nicer. ^^


и не совсем понятно: слева message (одно) , а справа Commands (много)


Setup staging server per:
1)Managing Multiple Environments for an App at
https://devcenter.heroku.com/articles/multiple-environments
2) Staging & Production Environments on Heroku at
http://www.ralphonrails.com/rails/heroku/2014/02/04/multiple-environments-on-heroku.html

I think i did the following:

1)  An alternative way to create a staging application is to fork an existing application.
heroku is git remote for production server. qa-miado.git will be name of git repository for  heroku:staging.
  a) heroku fork --from heroku --to staging
     git remote add staging https://git.heroku.com/qa-miado.git
  b) Point godaddy subdomain to staging server.
      qa.miado.net --> https://qa-miado.herokuapp.com/
2) Create staging Rails environment setting on heroku:
  a) heroku config:set RACK_ENV=staging RAILS_ENV=staging --remote staging
  b) Customize the staging server as needed.
      heroku config:add SLACK_CLIENT_ID='xxxxxx' --remote staging
      heroku config:add SLACK_CLIENT_SECRET='xxxxx' --remote staging
3) Create staging environment in Rails sources. Same db, etc. as for production BUT i created a qa Slack command via the Slack dev console. Called QA-Miado, Slack slash command is /qado. Url points to https://qa-miado.herokuapp.com
     clone app/config/environments/production.rb to staging.rb
     clone database.yml production section for staging section.
     same cloning for secrets.yml
     add staging section to application.yml with QA-Miado token info.
    commit code changes to github via git push origin Create-QA-server
    push to staging server:
      git push staging Create-QA-server:master
    handy commands to checkout the staging server:
       git remote -v
       heroku logs --remote staging
       heroku run bash --remote staging


а selfMessage из какого скоупа?


this change looks wrong? unless the aforementioned MESOS issue has been resolved...


Fixes #9


upgrade your vim to at least 7.4.104


название — «Подсветить команды», а делает она что-то другое: создает элементы команд


а зачем строго задавать?


took this bit out cos duplicate


It's a feature


клик здесь не нужен


Ignore this - I worked out what it does!


Эту строку удалить


Huh, why not register a single block with the `if` in it?


good one.. But please always reformat the code.. Somehow makes it so much more readable.. For instance ``int totalPrice = 0;`` instead of ``int totalPrice=0;``


give better name.. For instance ``oneUnitOfAShoudlCostX``


и чем это отличается от `createCmdObject` ?


you can totally loose this method. Dont need this @After annotation..


This breaks the following feature describe in the doc.:

> If a slide gets added or removed, you should call this otherwise things'll probably break.
> ```
> var slider = $('.my-slider').unslider();
>
> // I don't like this last slide, let's get rid of it
> slider.find('li:last').remove();
>
> // Let's recalculate Unslider so it knows what's going on
> slider.unslider('calculateSlides');
> ```


The SystemUI doesn't have the BATTERY_STATS permission below N and for some reason the GravityBox hook to grant the permission doesn't work on L.


better variable names ``productQTYMap`` is bad.. How about ``productQuantityMap``  or even ``cart``


awdwd


I don't like these macros `TASK_PERIOD_MS` and `TASK_PERIOD_HZ` - they obscure what is going on. I'd rather just see the raw number. It's not often you need to look at this code, but when you do you want to see what is actually happening.


I've avoided these interfaces for VUnit since they aren't available with the cheaper licenses. At least they didn't used to be. Do you know the latest status?


We still need this event listener to keep consistent with the Origami spec components should be able to be created from an event that is fired.


Yep, the same here... 'fluctuating' is a good word for it :) but I'm actually motivated to work on this project again. So keep me posted of what your plans are and I'll do the same. However, you will probably not hear from me for a while since I'm going on vacation ;)

Let me
I'll be on vacation for 2 weeks+ now


develop (mjwitte) - x86_64-MacOS-10.9-clang: OK (1764 of 1764 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.svg) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.svg)


better variable names ``itemQuantity``. Dont shy from having slightly bigger variable names.. They help readability.


What is the reason for the unused `{ location }` param?


Be aware of **static imports**. You could have used the static import feature here..


its high time this block of code should have been refactored. Multiple if / else is bad.. I hope you have refactored it. But it should perhaps been done; sooner rather than later..


Good question! We can remove it as it is unneeded at this time. However,
typically we use the location values as part of the API call. I left it
there as I thought it would be useful for  people when implementing, and to
be aware that it's there.

On Wed, 21 Sep 2016 07:12 John Rodler <notifications@github.com> wrote:

> What is the reason for the unused { location } param?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/reactGo/reactGo/commit/19ef47380d86e6a9e7485b817f8b99073c1f4890#commitcomment-19104167>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADnMbRmQEf7GoC7Tt2EVagZXtgWCvX0Uks5qsExNgaJpZM4KCJeM>
> .
>


format code.. Having spaces helps readability

``for (Item item:ItemList) {``

``for (Item item : ItemList) {``