[R/ABC_SMC.R:2:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L2) *style:* **Use two spaces to indent, never tabs.**
```r
	sum <- 0;
^
```
[R/ABC_SMC.R:3:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L3) *style:* **Use two spaces to indent, never tabs.**
```r
	vals <- c();
^
```
[R/ABC_SMC.R:4:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L4) *style:* **Use two spaces to indent, never tabs.**
```r
	for(i in 1:length(P))
^
```
[R/ABC_SMC.R:7:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L7) *style:* **Use two spaces to indent, never tabs.**
```r
	    diff2 <- log(current[2]) - log(P[[i]][2]);
^
```
[R/ABC_SMC.R:24:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **lines should not be more than 80 characters.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:24:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
^~~~~~~~~~~~
```
[R/ABC_SMC.R:24:31:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                              ^
```
[R/ABC_SMC.R:24:42:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                         ^
```
[R/ABC_SMC.R:24:42:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                         ^~~~~~~
```
[R/ABC_SMC.R:24:50:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                 ^
```
[R/ABC_SMC.R:24:50:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                 ^~~~~~~~~~~
```
[R/ABC_SMC.R:24:62:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                             ^
```
[R/ABC_SMC.R:24:72:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                       ^
```
[R/ABC_SMC.R:24:83:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                                ^
```
[R/ABC_SMC.R:24:83:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                                ^~~~~~~~~~~~
```
[R/ABC_SMC.R:24:96:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                                ^
```
[R/ABC_SMC.R:24:107:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Commas should always have a space after.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                                ^
```
[R/ABC_SMC.R:24:107:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L24) *style:* **Variable and function names should be all lowercase.**
```r
ABC_SMC_nLTT <- function(tree,statistics,simFunc,initEpsilon,PRIOR_GEN,PRIOR_DENS,numParticles,sigma=0.05,stopRate=1e-5) {
                                                                                ^~~~~~~~
```
[R/ABC_SMC.R:32:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L32) *style:* **Use two spaces to indent, never tabs.**
```r

^
```
[R/ABC_SMC.R:32:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L32) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:34:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L34) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:35:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L35) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:36:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L36) *style:* **lines should not be more than 80 characters.**
```r
  #generate a matrix with epsilon values, we assume that the SMC algorithm converges within 50 iterations
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:37:25:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L37) *style:* **Put spaces around all infix operators.**
```r
  epsilon <- matrix(nrow=50,ncol=length(initEpsilon));
                       ~^~
```
[R/ABC_SMC.R:37:29:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L37) *style:* **Commas should always have a space after.**
```r
  epsilon <- matrix(nrow=50,ncol=length(initEpsilon));
                            ^
```
[R/ABC_SMC.R:37:33:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L37) *style:* **Put spaces around all infix operators.**
```r
  epsilon <- matrix(nrow=50,ncol=length(initEpsilon));
                               ~^~
```
[R/ABC_SMC.R:37:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L37) *style:* **Variable and function names should be all lowercase.**
```r
  epsilon <- matrix(nrow=50,ncol=length(initEpsilon));
                                        ^~~~~~~~~~~
```
[R/ABC_SMC.R:38:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L38) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(j in 1:length(initEpsilon)) {
     ^
```
[R/ABC_SMC.R:38:21:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L38) *style:* **Variable and function names should be all lowercase.**
```r
  for(j in 1:length(initEpsilon)) {
                    ^~~~~~~~~~~
```
[R/ABC_SMC.R:39:7:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L39) *style:* **Place a space before left parenthesis, except in a function call.**
```r
   for(i in 1:50) {
      ^
```
[R/ABC_SMC.R:40:15:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L40) *style:* **Commas should always have a space after.**
```r
    epsilon[i,j] <- initEpsilon[j] * exp(-0.5 * (i-1));
              ^
```
[R/ABC_SMC.R:40:21:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L40) *style:* **Variable and function names should be all lowercase.**
```r
    epsilon[i,j] <- initEpsilon[j] * exp(-0.5 * (i-1));
                    ^~~~~~~~~~~
```
[R/ABC_SMC.R:40:51:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L40) *style:* **Put spaces around all infix operators.**
```r
    epsilon[i,j] <- initEpsilon[j] * exp(-0.5 * (i-1));
                                                 ~^~
```
[R/ABC_SMC.R:43:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L43) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:45:3:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L45) *style:* **Variable and function names should be all lowercase.**
```r
  newWeights <- c();
  ^~~~~~~~~~
```
[R/ABC_SMC.R:46:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L46) *style:* **Use two spaces to indent, never tabs.**
```r
	   if(i == 1) { #in this initial step, generate parameters from the prior
^
```
[R/ABC_SMC.R:46:3:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L46) *style:* **Variable and function names should be all lowercase.**
```r
  newParams <- list(c(1:length(parameters)));
  ^~~~~~~~~
```
[R/ABC_SMC.R:47:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L47) *style:* **Use two spaces to indent, never tabs.**
```r
		  parameters <- PRIOR_GEN();
^~
```
[R/ABC_SMC.R:47:3:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L47) *style:* **Variable and function names should be all lowercase.**
```r
  previousWeights <- c();
  ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:48:3:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L48) *style:* **Variable and function names should be all lowercase.**
```r
  previousParams  <- list(c(1:length(parameters)));
  ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:49:16:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L49) *style:* **Variable and function names should be all lowercase.**
```r
  indices <- 1:numParticles;
               ^~~~~~~~~~~~
```
[R/ABC_SMC.R:51:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L51) *style:* **Use two spaces to indent, never tabs.**
```r
		for(p_index in 1:length(parameters)) {
^~
```
[R/ABC_SMC.R:51:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L51) *style:* **lines should not be more than 80 characters.**
```r
  for( i in 1:50 ) { #convergence is expected within 50 iterations, usually convergence occurs within 10 iterations
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:51:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L51) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for( i in 1:50 ) { #convergence is expected within 50 iterations, usually convergence occurs within 10 iterations
     ^
```
[R/ABC_SMC.R:51:20:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L51) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  for( i in 1:50 ) { #convergence is expected within 50 iterations, usually convergence occurs within 10 iterations
                   ^
```
[R/ABC_SMC.R:51:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L51) *style:* **Use two spaces to indent, never tabs.**
```r
		for(p_index in 1:length(parameters)) {
                                        ^
```
[R/ABC_SMC.R:52:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L52) *style:* **Use two spaces to indent, never tabs.**
```r
			parameters[p_index] <- previousParams[[index]][p_index];
^~~
```
[R/ABC_SMC.R:52:50:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L52) *style:* **Commas should always have a space after.**
```r
    cat("\nGenerating Particles for iteration\t",i,"\n")
                                                 ^
```
[R/ABC_SMC.R:52:52:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L52) *style:* **Commas should always have a space after.**
```r
    cat("\nGenerating Particles for iteration\t",i,"\n")
                                                   ^
```
[R/ABC_SMC.R:53:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L53) *style:* **Use two spaces to indent, never tabs.**
```r
		}
^~
```
[R/ABC_SMC.R:54:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L54) *style:* **Use two spaces to indent, never tabs.**
```r
	if ((i)%%((iterations-burnin)/PRINT_FREQ) == 0) {
^
```
[R/ABC_SMC.R:55:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L55) *style:* **Trailing whitespace is superfluous.**
```r

^
```
[R/ABC_SMC.R:58:5:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L58) *style:* **Variable and function names should be all lowercase.**
```r
    numberAccepted <- 0;
    ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:61:7:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L61) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(i > 1) { #replace all vectors
      ^
```
[R/ABC_SMC.R:61:15:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L61) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    if(i > 1) { #replace all vectors
              ^
```
[R/ABC_SMC.R:62:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L62) *style:* **lines should not be more than 80 characters.**
```r
     previousWeights <- newWeights / sum(newWeights); #normalize the weights and store them as previous weights.\
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:62:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L62) *style:* **Variable and function names should be all lowercase.**
```r
     previousWeights <- newWeights / sum(newWeights); #normalize the weights and store them as previous weights.\
     ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:62:25:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L62) *style:* **Variable and function names should be all lowercase.**
```r
     previousWeights <- newWeights / sum(newWeights); #normalize the weights and store them as previous weights.\
                        ^~~~~~~~~~
```
[R/ABC_SMC.R:62:42:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L62) *style:* **Variable and function names should be all lowercase.**
```r
     previousWeights <- newWeights / sum(newWeights); #normalize the weights and store them as previous weights.\
                                         ^~~~~~~~~~
```
[R/ABC_SMC.R:63:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L63) *style:* **Variable and function names should be all lowercase.**
```r
     newWeights <- c(); #remove all currently stored weights
     ^~~~~~~~~~
```
[R/ABC_SMC.R:64:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L64) *style:* **Variable and function names should be all lowercase.**
```r
     previousParams <- newParams; #store found params
     ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:64:24:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L64) *style:* **Variable and function names should be all lowercase.**
```r
     previousParams <- newParams; #store found params
                       ^~~~~~~~~
```
[R/ABC_SMC.R:65:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L65) *style:* **Use two spaces to indent, never tabs.**
```r

^~
```
[R/ABC_SMC.R:65:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L65) *style:* **Variable and function names should be all lowercase.**
```r
     newParams <- list(c(1:length(parameters))); #clear new params
     ^~~~~~~~~
```
[R/ABC_SMC.R:67:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L67) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~~
```
[R/ABC_SMC.R:68:10:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L68) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    while(numberAccepted < numParticles) {
         ^
```
[R/ABC_SMC.R:68:11:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L68) *style:* **Variable and function names should be all lowercase.**
```r
    while(numberAccepted < numParticles) {
          ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:68:28:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L68) *style:* **Variable and function names should be all lowercase.**
```r
    while(numberAccepted < numParticles) {
                           ^~~~~~~~~~~~
```
[R/ABC_SMC.R:69:14:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L69) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	   if(i == 1) { #in this initial step, generate parameters from the prior
             ^
```
[R/ABC_SMC.R:69:17:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L69) *style:* **Put spaces around all infix operators.**
```r
	   if(i == 1) { #in this initial step, generate parameters from the prior
               ~^~~
```
[R/ABC_SMC.R:69:23:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L69) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
	   if(i == 1) { #in this initial step, generate parameters from the prior
                      ^
```
[R/ABC_SMC.R:70:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L70) *style:* **Use two spaces to indent, never tabs.**
```r

^~
```
[R/ABC_SMC.R:70:30:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L70) *style:* **Put spaces around all infix operators.**
```r
		  parameters <- PRIOR_GEN();
                            ~^~~
```
[R/ABC_SMC.R:71:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L71) *style:* **lines should not be more than 80 characters.**
```r
      } else { #if not in the initial step, generate parameters from the weighted previous distribution:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:71:14:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L71) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      } else { #if not in the initial step, generate parameters from the weighted previous distribution:
             ^
```
[R/ABC_SMC.R:72:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L72) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~~~
```
[R/ABC_SMC.R:73:26:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Put spaces around all infix operators.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                        ~^~
```
[R/ABC_SMC.R:73:35:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Commas should always have a space after.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                  ^
```
[R/ABC_SMC.R:73:39:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Put spaces around all infix operators.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                     ~^~
```
[R/ABC_SMC.R:73:42:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Commas should always have a space after.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                         ^
```
[R/ABC_SMC.R:73:49:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Put spaces around all infix operators.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                               ~^~
```
[R/ABC_SMC.R:73:55:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Commas should always have a space after.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                                      ^
```
[R/ABC_SMC.R:73:59:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Put spaces around all infix operators.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                                         ~^~
```
[R/ABC_SMC.R:73:60:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L73) *style:* **Variable and function names should be all lowercase.**
```r
        index <- sample(x=indices,size=1,replace=TRUE,prob=previousWeights);
                                                           ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:74:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L74) *style:* **Trailing whitespace is superfluous.**
```r
		for(p_index in 1:length(parameters)) {
                                        ^
```
[R/ABC_SMC.R:75:45:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L75) *style:* **Put spaces around all infix operators.**
```r
			parameters[p_index] <- previousParams[[index]][p_index];
                                           ~^~~
```
[R/ABC_SMC.R:75:48:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L75) *style:* **Variable and function names should be all lowercase.**
```r
			parameters[p_index] <- previousParams[[index]][p_index];
                                               ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:78:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L78) *style:* **lines should not be more than 80 characters.**
```r
        toChange <- sample(1:length(parameters),1);  #only perturb one parameter, to avoid extremely low acceptance rates due to simultaneous perturbation
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:78:9:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L78) *style:* **Variable and function names should be all lowercase.**
```r
        toChange <- sample(1:length(parameters),1);  #only perturb one parameter, to avoid extremely low acceptance rates due to simultaneous perturbation
        ^~~~~~~~
```
[R/ABC_SMC.R:78:49:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L78) *style:* **Commas should always have a space after.**
```r
        toChange <- sample(1:length(parameters),1);  #only perturb one parameter, to avoid extremely low acceptance rates due to simultaneous perturbation
                                                ^
```
[R/ABC_SMC.R:79:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L79) *style:* **lines should not be more than 80 characters.**
```r
        eta <- log(parameters[toChange]) + rnorm(1,0,sigma); # perturb the parameter a little bit, on log scale, so parameter doesn't go < 0.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:79:31:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L79) *style:* **Variable and function names should be all lowercase.**
```r
        eta <- log(parameters[toChange]) + rnorm(1,0,sigma); # perturb the parameter a little bit, on log scale, so parameter doesn't go < 0.
                              ^~~~~~~~
```
[R/ABC_SMC.R:79:52:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L79) *style:* **Commas should always have a space after.**
```r
        eta <- log(parameters[toChange]) + rnorm(1,0,sigma); # perturb the parameter a little bit, on log scale, so parameter doesn't go < 0.
                                                   ^
```
[R/ABC_SMC.R:79:54:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L79) *style:* **Commas should always have a space after.**
```r
        eta <- log(parameters[toChange]) + rnorm(1,0,sigma); # perturb the parameter a little bit, on log scale, so parameter doesn't go < 0.
                                                     ^
```
[R/ABC_SMC.R:80:20:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L80) *style:* **Variable and function names should be all lowercase.**
```r
        parameters[toChange] <- exp(eta)
                   ^~~~~~~~
```
[R/ABC_SMC.R:80:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L80) *style:* **Trailing whitespace is superfluous.**
```r
        parameters[toChange] <- exp(eta)
                                        ^
```
[R/ABC_SMC.R:81:7:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L81) *style:* **Trailing whitespace is superfluous.**
```r
     }
      ^~
```
[R/ABC_SMC.R:82:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L82) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:83:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L83) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~
```
[R/ABC_SMC.R:84:8:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L84) *style:* **Place a space before left parenthesis, except in a function call.**
```r
     if(PRIOR_DENS(parameters) > 0) #reject if outside the prior
       ^
```
[R/ABC_SMC.R:84:65:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L84) *style:* **Trailing whitespace is superfluous.**
```r
     if(PRIOR_DENS(parameters) > 0) #reject if outside the prior
                                                                ^
```
[R/ABC_SMC.R:85:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L85) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
     {
     ^
```
[R/ABC_SMC.R:86:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L86) *style:* **lines should not be more than 80 characters.**
```r
        new_tree <- simFunc(parameters); #simulate a new tree, given the proposed parameters
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:86:21:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L86) *style:* **Variable and function names should be all lowercase.**
```r
        new_tree <- simFunc(parameters); #simulate a new tree, given the proposed parameters
                    ^~~~~~~
```
[R/ABC_SMC.R:88:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L88) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~
```
[R/ABC_SMC.R:89:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L89) *style:* **Use two spaces to indent, never tabs.**
```r
		}
^~
```
[R/ABC_SMC.R:89:12:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L89) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(k in 1:length(statistics)) {
           ^
```
[R/ABC_SMC.R:90:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L90) *style:* **Use two spaces to indent, never tabs.**
```r
	 }
^
```
[R/ABC_SMC.R:91:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L91) *style:* **Use two spaces to indent, never tabs.**
```r

^
```
[R/ABC_SMC.R:91:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L91) *style:* **lines should not be more than 80 characters.**
```r
          if(is.na(stats[k])) stats[k] <- Inf;     #calculate the summary statistics for the simulated tree
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:91:13:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L91) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          if(is.na(stats[k])) stats[k] <- Inf;     #calculate the summary statistics for the simulated tree
            ^
```
[R/ABC_SMC.R:93:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L93) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/ABC_SMC.R:94:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L94) *style:* **lines should not be more than 80 characters.**
```r
        for (k in 1:length(statistics)) {    #check if the summary statistics are sufficiently close to the observed summary statistics
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:94:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L94) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
        for (k in 1:length(statistics)) {    #check if the summary statistics are sufficiently close to the observed summary statistics
                                        ^
```
[R/ABC_SMC.R:95:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L95) *style:* **Use two spaces to indent, never tabs.**
```r
			output <- c();
^~~
```
[R/ABC_SMC.R:95:28:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L95) *style:* **Put spaces around all infix operators.**
```r
          if ( abs(stats[k]-obs_statistics[k]) > epsilon[i,k] ) {
                          ~^~
```
[R/ABC_SMC.R:95:60:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L95) *style:* **Commas should always have a space after.**
```r
          if ( abs(stats[k]-obs_statistics[k]) > epsilon[i,k] ) {
                                                           ^
```
[R/ABC_SMC.R:96:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L96) *style:* **Use two spaces to indent, never tabs.**
```r
			for(k in 1:length(parameters)) {
^~~
```
[R/ABC_SMC.R:97:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L97) *style:* **Use two spaces to indent, never tabs.**
```r
			  add <- c();
^~~
```
[R/ABC_SMC.R:97:15:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L97) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            if(i == 1) accept <- TRUE  #the first step always accepts
              ^
```
[R/ABC_SMC.R:98:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L98) *style:* **Use two spaces to indent, never tabs.**
```r
			  for(m in 1:length(previousParams[[k]])) {
^~~
```
[R/ABC_SMC.R:99:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L99) *style:* **Use two spaces to indent, never tabs.**
```r
					add <- c(add,previousParams[[k]][m]);
^~~~~
```
[R/ABC_SMC.R:100:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L100) *style:* **Use two spaces to indent, never tabs.**
```r
			  }
^~~
```
[R/ABC_SMC.R:101:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L101) *style:* **Use two spaces to indent, never tabs.**
```r
			  output <- rbind(output,add);
^~~
```
[R/ABC_SMC.R:102:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L102) *style:* **Use two spaces to indent, never tabs.**
```r
			}
^~~
```
[R/ABC_SMC.R:103:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L103) *style:* **Use two spaces to indent, never tabs.**
```r
			return( output);
^~~
```
[R/ABC_SMC.R:103:11:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L103) *style:* **Variable and function names should be all lowercase.**
```r
          numberAccepted <- numberAccepted + 1
          ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:103:20:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L103) *style:* **Use two spaces to indent, never tabs.**
```r
			return( output);
                   ^
```
[R/ABC_SMC.R:103:29:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L103) *style:* **Variable and function names should be all lowercase.**
```r
          numberAccepted <- numberAccepted + 1
                            ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:104:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L104) *style:* **Use two spaces to indent, never tabs.**
```r

^~~
```
[R/ABC_SMC.R:104:11:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L104) *style:* **Variable and function names should be all lowercase.**
```r
          newParams[[numberAccepted]] <- parameters;
          ^~~~~~~~~
```
[R/ABC_SMC.R:104:22:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L104) *style:* **Variable and function names should be all lowercase.**
```r
          newParams[[numberAccepted]] <- parameters;
                     ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:105:27:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L105) *style:* **Use <-, not =, for assignment.**
```r
          weight_accepted = 1;
                          ^
```
[R/ABC_SMC.R:106:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **lines should not be more than 80 characters.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:106:13:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
            ^
```
[R/ABC_SMC.R:106:38:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Use <-, not =, for assignment.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                     ^
```
[R/ABC_SMC.R:106:40:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Variable and function names should be all lowercase.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                       ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:106:40:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *warning:* **no visible global function definition for ‘calculateWeight’**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                       ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:106:56:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Variable and function names should be all lowercase.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                       ^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:106:72:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Commas should always have a space after.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                                       ^
```
[R/ABC_SMC.R:106:72:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Variable and function names should be all lowercase.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                                       ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:106:87:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Commas should always have a space after.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                                                ^
```
[R/ABC_SMC.R:106:98:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Commas should always have a space after.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                                                ^
```
[R/ABC_SMC.R:106:104:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L106) *style:* **Commas should always have a space after.**
```r
          if( i > 1) weight_accepted = calculateWeight(previousWeights,previousParams,parameters,sigma,PRIOR_DENS); #calculate the weight
                                                                                ^
```
[R/ABC_SMC.R:107:11:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L107) *style:* **Variable and function names should be all lowercase.**
```r
          newWeights[numberAccepted] = weight_accepted;
          ^~~~~~~~~~
```
[R/ABC_SMC.R:107:22:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L107) *style:* **Variable and function names should be all lowercase.**
```r
          newWeights[numberAccepted] = weight_accepted;
                     ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:107:38:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L107) *style:* **Use <-, not =, for assignment.**
```r
          newWeights[numberAccepted] = weight_accepted;
                                     ^
```
[R/ABC_SMC.R:108:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L108) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~~~~~
```
[R/ABC_SMC.R:109:15:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
              ^
```
[R/ABC_SMC.R:109:16:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Variable and function names should be all lowercase.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
               ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:109:31:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Put spaces around all infix operators.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
                             ~^~~
```
[R/ABC_SMC.R:109:33:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
                                ^
```
[R/ABC_SMC.R:109:34:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Variable and function names should be all lowercase.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
                                 ^~~~~~~~~~~~
```
[R/ABC_SMC.R:109:46:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L109) *style:* **Put spaces around all infix operators.**
```r
          if ((numberAccepted)%%(numParticles/PRINT_FREQ) == 0) {
                                            ~^~
```
[R/ABC_SMC.R:110:52:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L110) *style:* **Trailing whitespace is superfluous.**
```r
                        cat("**"); flush.console();
                                                   ^
```
[R/ABC_SMC.R:114:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L114) *style:* **Use two spaces to indent, never tabs.**
```r
	for(m in 1:length(previousParams[[k]])) {
^
```
[R/ABC_SMC.R:114:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L114) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~
```
[R/ABC_SMC.R:115:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L115) *style:* **Use two spaces to indent, never tabs.**
```r
		add <- c(add,previousParams[[k]][m]);
^~
```
[R/ABC_SMC.R:116:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Use two spaces to indent, never tabs.**
```r
	}
^
```
[R/ABC_SMC.R:116:9:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(tried > (1/stopRate)) {
        ^
```
[R/ABC_SMC.R:116:20:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Put spaces around all infix operators.**
```r
      if(tried > (1/stopRate)) {
                  ~^~
```
[R/ABC_SMC.R:116:21:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Variable and function names should be all lowercase.**
```r
      if(tried > (1/stopRate)) {
                    ^~~~~~~~
```
[R/ABC_SMC.R:116:32:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      if(tried > (1/stopRate)) {
                               ^
```
[R/ABC_SMC.R:116:33:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L116) *style:* **Trailing whitespace is superfluous.**
```r
      if(tried > (1/stopRate)) {
                                ^
```
[R/ABC_SMC.R:117:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L117) *style:* **Use two spaces to indent, never tabs.**
```r
	output <- rbind(output,add);
^
```
[R/ABC_SMC.R:117:11:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L117) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if((numberAccepted / tried) < stopRate) {
          ^
```
[R/ABC_SMC.R:117:12:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L117) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if((numberAccepted / tried) < stopRate) {
           ^
```
[R/ABC_SMC.R:117:13:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L117) *style:* **Variable and function names should be all lowercase.**
```r
        if((numberAccepted / tried) < stopRate) {
            ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:117:39:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L117) *style:* **Variable and function names should be all lowercase.**
```r
        if((numberAccepted / tried) < stopRate) {
                                      ^~~~~~~~
```
[R/ABC_SMC.R:119:19:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L119) *style:* **Use two spaces to indent, never tabs.**
```r
  return( output);
                  ^
```
[R/ABC_SMC.R:119:28:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L119) *style:* **Place a space before left parenthesis, except in a function call.**
```r
			for(k in 1:length(parameters)) {
                           ^
```
[R/ABC_SMC.R:121:30:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L121) *style:* **Place a space before left parenthesis, except in a function call.**
```r
			  for(m in 1:length(previousParams[[k]])) {
                             ^
```
[R/ABC_SMC.R:121:45:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L121) *style:* **Variable and function names should be all lowercase.**
```r
			  for(m in 1:length(previousParams[[k]])) {
                                            ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:122:54:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L122) *style:* **Variable and function names should be all lowercase.**
```r
					add <- c(add,previousParams[[k]][m]);
                                                     ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:124:34:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L124) *style:* **Put spaces around all infix operators.**
```r
			  output <- rbind(output,add);
                                ~^~~
```
[R/ABC_SMC.R:126:20:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L126) *style:* **Trailing whitespace is superfluous.**
```r
			return( output);
                   ^
```
[R/ABC_SMC.R:127:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L127) *style:* **Trailing whitespace is superfluous.**
```r

^~~
```
[R/ABC_SMC.R:132:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L132) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:133:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L133) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/ABC_SMC.R:135:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L135) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(k in 1:length(parameters)) {
     ^
```
[R/ABC_SMC.R:137:12:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L137) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	for(m in 1:length(previousParams[[k]])) {
           ^
```
[R/ABC_SMC.R:137:27:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L137) *style:* **Variable and function names should be all lowercase.**
```r
	for(m in 1:length(previousParams[[k]])) {
                          ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:138:21:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L138) *style:* **Put spaces around all infix operators.**
```r
		add <- c(add,previousParams[[k]][m]);
                   ~^~~
```
[R/ABC_SMC.R:138:30:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L138) *style:* **Variable and function names should be all lowercase.**
```r
		add <- c(add,previousParams[[k]][m]);
                             ^~~~~~~~~~~~~~
```
[R/ABC_SMC.R:140:16:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L140) *style:* **Put spaces around all infix operators.**
```r
	output <- rbind(output,add);
              ~^~~
```
[R/ABC_SMC.R:142:19:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L142) *style:* **Trailing whitespace is superfluous.**
```r
  return( output);
                  ^
```
[R/ABC_SMC.R:165:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L165) *style:* **Variable and function names should be all lowercase.**
```r
calculateWeight <- function(W,P,current,S,PRIOR_DENS) {
^~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:165:31:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L165) *style:* **Commas should always have a space after.**
```r
calculateWeight <- function(W,P,current,S,PRIOR_DENS) {
                              ^
```
[R/ABC_SMC.R:165:33:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L165) *style:* **Commas should always have a space after.**
```r
calculateWeight <- function(W,P,current,S,PRIOR_DENS) {
                                ^
```
[R/ABC_SMC.R:165:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L165) *style:* **Commas should always have a space after.**
```r
calculateWeight <- function(W,P,current,S,PRIOR_DENS) {
                                        ^
```
[R/ABC_SMC.R:165:43:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L165) *style:* **Commas should always have a space after.**
```r
calculateWeight <- function(W,P,current,S,PRIOR_DENS) {
                                          ^
```
[R/ABC_SMC.R:167:14:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L167) *style:* **Put spaces around all infix operators.**
```r
	vals <- c();
            ~^~~
```
[R/ABC_SMC.R:168:12:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L168) *style:* **Place a space before left parenthesis, except in a function call.**
```r
	for(i in 1:length(P))
           ^
```
[R/ABC_SMC.R:169:5:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L169) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    {
    ^
```
[R/ABC_SMC.R:169:6:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L169) *style:* **Trailing whitespace is superfluous.**
```r
    {
     ^
```
[R/ABC_SMC.R:171:19:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L171) *style:* **Put spaces around all infix operators.**
```r
	    diff2 <- log(current[2]) - log(P[[i]][2]);
                 ~^~~
```
[R/ABC_SMC.R:171:38:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L171) *style:* **Put spaces around all infix operators.**
```r
	    diff2 <- log(current[2]) - log(P[[i]][2]);
                                    ~^~
```
[R/ABC_SMC.R:172:37:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Commas should always have a space after.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                    ^
```
[R/ABC_SMC.R:172:41:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Put spaces around all infix operators.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                       ~^~
```
[R/ABC_SMC.R:172:44:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Commas should always have a space after.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                           ^
```
[R/ABC_SMC.R:172:46:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Put spaces around all infix operators.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                            ~^~
```
[R/ABC_SMC.R:172:64:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Commas should always have a space after.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                                               ^
```
[R/ABC_SMC.R:172:68:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Put spaces around all infix operators.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                                                  ~^~
```
[R/ABC_SMC.R:172:71:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Commas should always have a space after.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                                                      ^
```
[R/ABC_SMC.R:172:73:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Put spaces around all infix operators.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                                                       ~^~
```
[R/ABC_SMC.R:172:77:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L172) *style:* **Trailing whitespace is superfluous.**
```r
      vals[i] <- W[i] * dnorm(diff1,mean=0,sd=S) * dnorm(diff2,mean=0,sd=S);
                                                                            ^~~
```
[R/ABC_SMC.R:174:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L174) *style:* **Trailing whitespace is superfluous.**
```r

^~~
```
[R/ABC_SMC.R:176:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L176) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/ABC_SMC.R:202:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **lines should not be more than 80 characters.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:202:1:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Variable and function names should be all lowercase.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
^~~~~~~~~
```
[R/ABC_SMC.R:202:27:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                          ^
```
[R/ABC_SMC.R:202:27:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Variable and function names should be all lowercase.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                          ^~~~~~~~~~~~~~~~~~
```
[R/ABC_SMC.R:202:46:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                             ^
```
[R/ABC_SMC.R:202:57:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                        ^
```
[R/ABC_SMC.R:202:57:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Variable and function names should be all lowercase.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                        ^~~~~~~~~~~~~
```
[R/ABC_SMC.R:202:71:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                                      ^
```
[R/ABC_SMC.R:202:82:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                                                ^
```
[R/ABC_SMC.R:202:105:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Put spaces around all infix operators.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                                                ~^~
```
[R/ABC_SMC.R:202:109:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                                                ^
```
[R/ABC_SMC.R:202:120:](https://github.com/richelbilderbeek/nLTT/blob/fc69ca2f6e29473427db05c7dc34859d96cb0e62/R/ABC_SMC.R#L202) *style:* **Commas should always have a space after.**
```r
MCMC_nLTT <- function(phy,likelihoodFunction,parameters,logTransforms,iterations,burnin=round(iterations/3),thinning=1,sigma=1) {
                                                                                ^
```


Мне - вряд ли,
но ведь по функционалу неофициальный вроде не должен уступать официальному?  :)


@rozzzly hahaha
Well, I've a kind of comedian part time job while coding.
Thanks for the gif, you also made me laugh! :-)


There were recursive calls inside the type_size_vec4 that we are not modifying although we changed the method. IMHO we should do:
@@ -595,11 +595,11 @@ type_size_xvec4(const struct glsl_type *type, bool as_vec4)
       }
    case GLSL_TYPE_ARRAY:
       assert(type->length > 0);
-      return type_size_vec4(type->fields.array) * type->length;
+      return type_size_xvec4(type->fields.array, as_vec4) * type->length;
    case GLSL_TYPE_STRUCT:
       size = 0;
       for (i = 0; i < type->length; i++) {
-        size += type_size_vec4(type->fields.structure[i].type);
+        size += type_size_xvec4(type->fields.structure[i].type, as_vec4);
       }
       return size;
    case GLSL_TYPE_SUBROUTINE:

Otherwise, we will be returning an incorrect size for arrays and structs


The problem you mentioned won't happen. Timer routine will only check BA stream which is established and packet counts will only be checked after one second.


MMMMMMM


is "#general" supposed to be '#general'? single quotes?


@odersky, heads up - this seems to break the following test: `tests/pos-scala2/i1059.scala`

```
[error] tests/pos-scala2/i1059.scala:5: error: The syntax `x @ _*' is no longer supported; use `x : _*' instead
[error]     case List(_, _, _, _ @ _*)     =>   0
[error]                        ^
[error] tests/pos-scala2/i1059.scala:6: error: The syntax `_*' is no longer supported; use `x : _*' instead
[error]     case List(_, _, _*)            =>   1
[error]                     ^
[error] tests/pos-scala2/i1059.scala:5: error: scrutinee is incompatible with pattern type, needs to be a subclass of `Int`
[error]     case List(_, _, _, _ @ _*)     =>   0
[error]                          ^
[error] tests/pos-scala2/i1059.scala:7: error: scrutinee is incompatible with pattern type, needs to be a subclass of `Int`
[error]     case List(_, _: _*)            =>   2
[error]                   ^
[error] four errors found
```

The test should only generate 2 errors. So the last two are reported erroneously. Having some form of check for if `wtp` is a varargs type should resolve this...?