[R/bd_loglik_choosepar.R:1:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Lines should not be more than 80 characters.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik_choosepar.R:1:21:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Use <-, not =, for assignment.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                    ^
```
[R/bd_loglik_choosepar.R:1:42:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                         ^
```
[R/bd_loglik_choosepar.R:1:52:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                   ^
```
[R/bd_loglik_choosepar.R:1:62:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                             ^
```
[R/bd_loglik_choosepar.R:1:72:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                                       ^
```
[R/bd_loglik_choosepar.R:1:78:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                                             ^
```
[R/bd_loglik_choosepar.R:1:83:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                                                ^
```
[R/bd_loglik_choosepar.R:1:95:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L1) *style:* **Commas should always have a space after.**
```r
bd_loglik_choosepar = function(trparsopt,trparsfix,idparsopt,idparsfix,pars2,brts,missnumspec,methode)
                                                                                ^
```
[R/bd_loglik_choosepar.R:2:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L2) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/bd_loglik_choosepar.R:3:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L3) *style:* **Use <-, not =, for assignment.**
```r
   trpars1 = rep(0,4)
           ^
```
[R/bd_loglik_choosepar.R:3:20:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L3) *style:* **Commas should always have a space after.**
```r
   trpars1 = rep(0,4)
                   ^
```
[R/bd_loglik_choosepar.R:4:23:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L4) *style:* **Use <-, not =, for assignment.**
```r
   trpars1[idparsopt] = trparsopt
                      ^
```
[R/bd_loglik_choosepar.R:5:6:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L5) *style:* **Place a space before left parenthesis, except in a function call.**
```r
   if(length(idparsfix) != 0)
     ^
```
[R/bd_loglik_choosepar.R:6:4:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L6) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
   {
   ^
```
[R/bd_loglik_choosepar.R:7:26:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L7) *style:* **Use <-, not =, for assignment.**
```r
      trpars1[idparsfix] = trparsfix
                         ^
```
[R/bd_loglik_choosepar.R:9:6:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L9) *style:* **Place a space before left parenthesis, except in a function call.**
```r
   if(max(trpars1) > 1 | min(trpars1) < 0)
     ^
```
[R/bd_loglik_choosepar.R:10:4:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L10) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
   {
   ^
```
[R/bd_loglik_choosepar.R:11:14:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L11) *style:* **Use <-, not =, for assignment.**
```r
      loglik = -Inf
             ^
```
[R/bd_loglik_choosepar.R:13:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L13) *style:* **Use <-, not =, for assignment.**
```r
      pars1 = trpars1/(1 - trpars1)
            ^
```
[R/bd_loglik_choosepar.R:13:22:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L13) *style:* **Put spaces around all infix operators.**
```r
      pars1 = trpars1/(1 - trpars1)
                    ~^~
```
[R/bd_loglik_choosepar.R:13:23:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L13) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      pars1 = trpars1/(1 - trpars1)
                      ^
```
[R/bd_loglik_choosepar.R:14:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *style:* **Lines should not be more than 80 characters.**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik_choosepar.R:14:14:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *style:* **Use <-, not =, for assignment.**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
             ^
```
[R/bd_loglik_choosepar.R:14:16:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *warning:* **no visible global function definition for ‘bd_loglik’**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
               ^~~~~~~~~
```
[R/bd_loglik_choosepar.R:14:40:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *style:* **Commas should always have a space after.**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
                                       ^
```
[R/bd_loglik_choosepar.R:14:59:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *style:* **Commas should always have a space after.**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
                                                          ^
```
[R/bd_loglik_choosepar.R:14:71:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L14) *style:* **Commas should always have a space after.**
```r
      loglik = bd_loglik(pars1 = pars1,pars2 = pars2[1:6],brts = brts,missnumspec = missnumspec, methode = methode)
                                                                      ^
```
[R/bd_loglik_choosepar.R:15:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L15) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(is.nan(loglik) || is.na(loglik))
        ^
```
[R/bd_loglik_choosepar.R:16:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L16) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/bd_loglik_choosepar.R:17:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L17) *style:* **Lines should not be more than 80 characters.**
```r
         cat("There are parameter values used which cause numerical problems.\n")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik_choosepar.R:18:17:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik_choosepar.R#L18) *style:* **Use <-, not =, for assignment.**
```r
         loglik = -Inf
                ^
```
[R/bd_loglik.R:41:80:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L41) *style:* **Trailing whitespace is superfluous.**
```r
#' \cr \cr \code{pars2[4]} sets whether the parameters and likelihood should be
                                                                               ^
```
[R/bd_loglik.R:59:68:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L59) *style:* **Trailing whitespace is superfluous.**
```r
#' bd_loglik(pars1 = c(0.5,0.1), pars2 = c(0,1,1,0,2), brts = 1:10,
                                                                   ^
```
[R/bd_loglik.R:66:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L66) *style:* **Lines should not be more than 80 characters.**
```r
  # - pars1[3] = la1 = parameter in exponential decay of speciation rate, OR K in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:66:82:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L66) *style:* **Trailing whitespace is superfluous.**
```r
  # - pars1[3] = la1 = parameter in exponential decay of speciation rate, OR K in
                                                                                ^
```
[R/bd_loglik.R:70:62:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L70) *style:* **Trailing whitespace is superfluous.**
```r
  # - pars1[5] = T0 = age at which lambda is lambda0 (default
                                                             ^
```
[R/bd_loglik.R:76:73:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L76) *style:* **Trailing whitespace is superfluous.**
```r
  # . tdmodel == 2: stepwise decline following diversity-dependence when
                                                                        ^
```
[R/bd_loglik.R:77:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L77) *style:* **Commented code should be removed.**
```r
  #   extinction = 0
      ^~~~~~~~~~~~~~
```
[R/bd_loglik.R:78:80:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L78) *style:* **Trailing whitespace is superfluous.**
```r
  # . tdmodel == 3: decline in speciation rate following deterministic logistic
                                                                               ^
```
[R/bd_loglik.R:80:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L80) *style:* **Lines should not be more than 80 characters.**
```r
  # . tdmodel == 4...8: change in speciation/extinction rate following ddmodel =
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:80:81:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L80) *style:* **Trailing whitespace is superfluous.**
```r
  # . tdmodel == 4...8: change in speciation/extinction rate following ddmodel =
                                                                                ^
```
[R/bd_loglik.R:82:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L82) *style:* **Lines should not be more than 80 characters.**
```r
  # - pars2[2] = cond = conditioning on age (0), non-extinction of the clade and
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:82:81:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L82) *style:* **Trailing whitespace is superfluous.**
```r
  # - pars2[2] = cond = conditioning on age (0), non-extinction of the clade and
                                                                                ^
```
[R/bd_loglik.R:86:79:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L86) *style:* **Trailing whitespace is superfluous.**
```r
  # - pars2[5] = likelihood is for a tree with crown age (2) or stem age (1) -
                                                                              ^
```
[R/bd_loglik.R:89:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L89) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:105:74:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L105) *style:* **Trailing whitespace is superfluous.**
```r
      rtt <- mu0 / mu1 * (exp(-mu1 * t1) - exp(-mu1 * tau)) - la0 / la1 *
                                                                         ^
```
[R/bd_loglik.R:110:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L110) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:111:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L111) *style:* **Variable or function name should be snake_case.**
```r
  PtTint <- function(x, t1, pars){
  ^~~~~~
```
[R/bd_loglik.R:112:5:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L112) *style:* **Variable or function name should be snake_case.**
```r
    PtTint <- pars[2] * exp(-pars[4] * x) * exp(rhotaut(x, t1, pars))
    ^~~~~~
```
[R/bd_loglik.R:115:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L115) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:117:54:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L117) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    ff <- 1 / pars[3] + (1 / 2 - 1 / pars[3]) * exp(-(pars[1] - pars[2]) * t1)
                                                     ^
```
[R/bd_loglik.R:120:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L120) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:125:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L125) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:126:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L126) *style:* **Variable or function name should be snake_case.**
```r
  intPtTint2 <- function(t1, T, pars){
  ^~~~~~~~~~
```
[R/bd_loglik.R:127:5:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L127) *style:* **Variable or function name should be snake_case.**
```r
    intPtTint2 <- pars[2] / ff(t1,pars) *
    ^~~~~~~~~~
```
[R/bd_loglik.R:127:35:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L127) *style:* **Commas should always have a space after.**
```r
    intPtTint2 <- pars[2] / ff(t1,pars) *
                                  ^
```
[R/bd_loglik.R:127:42:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L127) *style:* **Trailing whitespace is superfluous.**
```r
    intPtTint2 <- pars[2] / ff(t1,pars) *
                                         ^
```
[R/bd_loglik.R:128:8:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L128) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
      ( (T - t1) / pars[3] + (ff(t1, pars) - ff(T, pars)) /
       ^
```
[R/bd_loglik.R:128:60:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L128) *style:* **Trailing whitespace is superfluous.**
```r
      ( (T - t1) / pars[3] + (ff(t1, pars) - ff(T, pars)) /
                                                           ^
```
[R/bd_loglik.R:129:30:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L129) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
          (pars[1] - pars[2]) )
                             ^
```
[R/bd_loglik.R:132:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L132) *style:* **Trailing whitespace is superfluous.**
```r

^~
```
[R/bd_loglik.R:148:16:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L148) *style:* **Use <-, not =, for assignment.**
```r
      pars2[6] = Inf
               ^
```
[R/bd_loglik.R:150:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L150) *style:* **Trailing whitespace is superfluous.**
```r

^~~~
```
[R/bd_loglik.R:153:73:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L153) *style:* **Trailing whitespace is superfluous.**
```r
        "Stem age and conditioning on extant taxa only have not yet been
                                                                        ^
```
[R/bd_loglik.R:158:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L158) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
    } else {
           ^
```
[R/bd_loglik.R:158:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L158) *style:* **Trailing whitespace is superfluous.**
```r
    } else {
            ^~~~~~~~
```
[R/bd_loglik.R:164:10:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L164) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      for(i in 2:length(brts2)) {
         ^
```
[R/bd_loglik.R:172:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L172) *style:* **Variable or function name should be snake_case.**
```r
      TT <- brts[1]
      ^~
```
[R/bd_loglik.R:174:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L174) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:175:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L175) *style:* **Variable or function name should be snake_case.**
```r
      S <- length(brts)
      ^
```
[R/bd_loglik.R:176:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L176) *style:* **Variable or function name should be snake_case.**
```r
      N <- S + m
      ^
```
[R/bd_loglik.R:178:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L178) *style:* **Variable or function name should be snake_case.**
```r
      PtT <- rep(0, S)
      ^~~
```
[R/bd_loglik.R:180:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L180) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:181:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L181) *warning:* **local variable ‘abstol’ assigned but may not be used**
```r
      abstol <- 1e-16
      ^~~~~~
```
[R/bd_loglik.R:182:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L182) *warning:* **local variable ‘reltol’ assigned but may not be used**
```r
      reltol <- 1e-10
      ^~~~~~
```
[R/bd_loglik.R:183:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L183) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:184:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L184) *style:* **Variable or function name should be snake_case.**
```r
      T0 <- TT
      ^~
```
[R/bd_loglik.R:189:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L189) *style:* **Variable or function name should be snake_case.**
```r
        K <- pars1[3]
        ^
```
[R/bd_loglik.R:192:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L192) *style:* **Variable or function name should be snake_case.**
```r
          T0 <- pars1[5]
          ^~
```
[R/bd_loglik.R:193:10:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L193) *style:* **Trailing whitespace is superfluous.**
```r
        }
         ^
```
[R/bd_loglik.R:196:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L196) *style:* **Variable or function name should be snake_case.**
```r
        K <- Inf
        ^
```
[R/bd_loglik.R:198:31:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L198) *style:* **Commas should always have a space after.**
```r
        pars1 <- c(pars1, c(0,0))
                              ^
```
[R/bd_loglik.R:200:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L200) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:201:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L201) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(tdmodel == 1){
        ^
```
[R/bd_loglik.R:205:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L205) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:207:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L207) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:208:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L208) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(tdmodel == 0 | (tdmodel == 1 & la1 == 0 & mu1 == 0))
        ^
```
[R/bd_loglik.R:209:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L209) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/bd_loglik.R:210:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L210) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(abs(la0 - mu0) < 1E-10){
          ^
```
[R/bd_loglik.R:212:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L212) *style:* **Variable or function name should be snake_case.**
```r
          PtT <- 1 / (1 + lamu * (TT - t))
          ^~~
```
[R/bd_loglik.R:215:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L215) *style:* **Variable or function name should be snake_case.**
```r
          PtT <- (la0 - mu0) / (la0 - mu0 * exp(-(la0 - mu0) * (TT - t)))
          ^~~
```
[R/bd_loglik.R:215:50:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L215) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          PtT <- (la0 - mu0) / (la0 - mu0 * exp(-(la0 - mu0) * (TT - t)))
                                                 ^
```
[R/bd_loglik.R:216:29:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L216) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      ux <- la0 * (1 - exp(-(la0 - mu0) * (TT - t))) /
                            ^
```
[R/bd_loglik.R:217:27:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L217) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        (la0 - mu0 * exp(-(la0 - mu0) * (TT - t)))
                          ^
```
[R/bd_loglik.R:221:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L221) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(i in 1:S){
           ^
```
[R/bd_loglik.R:223:46:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L223) *style:* **Trailing whitespace is superfluous.**
```r
            PtTint, lower = t[i], upper = TT,
                                             ^
```
[R/bd_loglik.R:225:20:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L225) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          )$value)^(-1)
                   ^
```
[R/bd_loglik.R:233:22:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L233) *style:* **Commas should always have a space after.**
```r
        la <- pmax(0,la0 * (1 - (2:S) / K))
                     ^
```
[R/bd_loglik.R:234:33:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L234) *style:* **Commas should always have a space after.**
```r
        dx <- c(abs(diff(brts)),brts[S])[2:S]
                                ^
```
[R/bd_loglik.R:235:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L235) *style:* **Commented code should be removed.**
```r
        # mpfr(la, precBits = 500)
          ^~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:236:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L236) *style:* **Commented code should be removed.**
```r
        # mpfr(dx, precBits = 500)
          ^~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:238:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L238) *style:* **Variable or function name should be snake_case.**
```r
        PtT <- rep(1,S)
        ^~~
```
[R/bd_loglik.R:238:22:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L238) *style:* **Commas should always have a space after.**
```r
        PtT <- rep(1,S)
                     ^
```
[R/bd_loglik.R:239:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L239) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(i in 2:S){
           ^
```
[R/bd_loglik.R:244:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L244) *style:* **Variable or function name should be snake_case.**
```r
        PtT <- 1 / (1 + intPtTint2(t, TT, pars1))
        ^~~
```
[R/bd_loglik.R:247:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L247) *style:* **Variable or function name should be snake_case.**
```r
        Kprime <- la0 / (la0 - mu0) * K
        ^~~~~~
```
[R/bd_loglik.R:250:32:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L250) *style:* **Trailing whitespace is superfluous.**
```r
          ceiling(Kprime) < N |
                               ^
```
[R/bd_loglik.R:251:39:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L251) *style:* **Trailing whitespace is superfluous.**
```r
          K >= 0.9 * round(pars2[6]) |
                                      ^
```
[R/bd_loglik.R:252:18:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L252) *style:* **Trailing whitespace is superfluous.**
```r
          K < 1 |
                 ^
```
[R/bd_loglik.R:253:22:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L253) *style:* **Trailing whitespace is superfluous.**
```r
          la0 < mu0 |
                     ^
```
[R/bd_loglik.R:264:25:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L264) *style:* **Trailing whitespace is superfluous.**
```r
        latd[1] <- mu0 +
                        ^
```
[R/bd_loglik.R:266:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L266) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(k in 2:np){
           ^
```
[R/bd_loglik.R:270:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L270) *style:* **Lines should not be more than 80 characters.**
```r
          #y2 = deSolve::ode(variables, c(t1, t2), td_loglik_rhs, c(pars1[1:min(4, length(pars1))], tdmodel - 3, lx), rtol = 1e-10, atol = 1e-16, method = methode)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:270:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L270) *style:* **Commented code should be removed.**
```r
          #y2 = deSolve::ode(variables, c(t1, t2), td_loglik_rhs, c(pars1[1:min(4, length(pars1))], tdmodel - 3, lx), rtol = 1e-10, atol = 1e-16, method = methode)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:287:19:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L287) *style:* **Only use double-quotes.**
```r
              cat('NA or NaN issues encountered.\n')
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:292:15:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L292) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            if(verbose) cat('Probabilities smaller than 0 encountered\n')
              ^
```
[R/bd_loglik.R:292:29:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L292) *style:* **Only use double-quotes.**
```r
            if(verbose) cat('Probabilities smaller than 0 encountered\n')
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:294:35:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L294) *style:* **Commas should always have a space after.**
```r
            variables <- rep(-Inf,length(variables))
                                  ^
```
[R/bd_loglik.R:295:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L295) *style:* **Trailing whitespace is superfluous.**
```r
          }
           ^
```
[R/bd_loglik.R:296:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L296) *style:* **Commented code should be removed.**
```r
          #variables2 = y2[2, 2:(lx + k)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:298:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L298) *style:* **Trailing whitespace is superfluous.**
```r
          #{
            ^
```
[R/bd_loglik.R:299:15:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L299) *style:* **Commented code should be removed.**
```r
          #   print(variables2 - variables)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:300:15:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L300) *style:* **Commented code should be removed.**
```r
          #   unequal <- which(variables != variables2)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:301:14:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L301) *style:* **Commented code should be removed.**
```r
          #  if(length(unequal) > 0) stop('Stop here')
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:305:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L305) *style:* **Variable or function name should be snake_case.**
```r
          dEN_dt <- (la0 - mu0) * expn[k] - expn2 * (la0 - mu0) / K
          ^~~~~~
```
[R/bd_loglik.R:308:40:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L308) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
        if (sum(variables[1:lx]) < 0.99 ) {
                                       ^
```
[R/bd_loglik.R:309:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L309) *style:* **Commented code should be removed.**
```r
          #print(lx)
           ^~~~~~~~~
```
[R/bd_loglik.R:310:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L310) *style:* **Commented code should be removed.**
```r
          #print(sum(variables[1:lx]))
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:311:15:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L311) *style:* **Only use double-quotes.**
```r
          cat('Leaking probabilities detected.')
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:315:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L315) *style:* **Variable or function name should be snake_case.**
```r
        PtT <- 1 / (1 + sig)
        ^~~
```
[R/bd_loglik.R:318:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L318) *style:* **Variable or function name should be snake_case.**
```r
          PtT <- c(PtT[1], PtT)
          ^~~
```
[R/bd_loglik.R:322:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L322) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:324:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L324) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(tdmodel == 0) {
          ^
```
[R/bd_loglik.R:326:34:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L326) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
        } else if (tdmodel == 1) {
                                 ^
```
[R/bd_loglik.R:326:35:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L326) *style:* **Trailing whitespace is superfluous.**
```r
        } else if (tdmodel == 1) {
                                  ^
```
[R/bd_loglik.R:330:18:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L330) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        } else if(tdmodel == 3) {
                 ^
```
[R/bd_loglik.R:332:18:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L332) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        } else if(tdmodel == 4) {
                 ^
```
[R/bd_loglik.R:336:64:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L336) *style:* **Trailing whitespace is superfluous.**
```r
          loglik <- loglik + sum(log(lavec[soc:length(lavec)]))
                                                               ^
```
[R/bd_loglik.R:339:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L339) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:341:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L341) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(cond == 1) {
        ^
```
[R/bd_loglik.R:342:14:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L342) *style:* **Use <-, not =, for assignment.**
```r
        logp = soc * log(PtT[1])
             ^
```
[R/bd_loglik.R:344:9:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L344) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(cond == 2 | cond == 3) {
        ^
```
[R/bd_loglik.R:345:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L345) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(tdmodel == 2) {
          ^
```
[R/bd_loglik.R:347:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L347) *style:* **Variable or function name should be snake_case.**
```r
          K2 <- K
          ^~
```
[R/bd_loglik.R:348:39:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L348) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
          if (floor(K) == ceiling(K)) {
                                      ^
```
[R/bd_loglik.R:348:40:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L348) *style:* **Trailing whitespace is superfluous.**
```r
          if (floor(K) == ceiling(K)) {
                                       ^
```
[R/bd_loglik.R:349:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L349) *style:* **Variable or function name should be snake_case.**
```r
            K2 <- K + eps
            ^~
```
[R/bd_loglik.R:350:52:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L350) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
          } else if (floor(K + eps) == ceiling(K)) {
                                                   ^
```
[R/bd_loglik.R:350:53:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L350) *style:* **Trailing whitespace is superfluous.**
```r
          } else if (floor(K + eps) == ceiling(K)) {
                                                    ^
```
[R/bd_loglik.R:351:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L351) *style:* **Variable or function name should be snake_case.**
```r
            K2 <- K - eps
            ^~
```
[R/bd_loglik.R:353:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L353) *style:* **Variable or function name should be snake_case.**
```r
            K2 <- K + eps
            ^~
```
[R/bd_loglik.R:363:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L363) *style:* **Commented code should be removed.**
```r
          #pB = max(50,round(3/la0))
           ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:364:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L364) *style:* **Commented code should be removed.**
```r
          #s = mpfr(s, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:364:38:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L364) *style:* **Trailing whitespace is superfluous.**
```r
          #s = mpfr(s, precBits = pB)
                                     ^~~~~~
```
[R/bd_loglik.R:365:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L365) *style:* **Commented code should be removed.**
```r
          #sgnsdiff = mpfr(sgnsdiff, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:366:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L366) *style:* **Commented code should be removed.**
```r
          #logsdiff = mpfr(logsdiff, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:367:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L367) *style:* **Commented code should be removed.**
```r
          #sgnsdiff2 = mpfr(sgnsdiff2, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:368:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L368) *style:* **Commented code should be removed.**
```r
          #logsdiff2 = mpfr(logsdiff2, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:369:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L369) *style:* **Commented code should be removed.**
```r
          #logsdiff3 = mpfr(logsdiff3, precBits = pB)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:371:26:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L371) *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:N) {
                         ^
```
[R/bd_loglik.R:371:27:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L371) *style:* **Trailing whitespace is superfluous.**
```r
          for (i in 1:N) {
                          ^
```
[R/bd_loglik.R:372:45:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L372) *style:* **Commas should always have a space after.**
```r
            sgnsdiff[i] <- prod(sign(s[-c(1,i)] - s[i]))
                                            ^
```
[R/bd_loglik.R:373:47:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L373) *style:* **Commas should always have a space after.**
```r
            logsdiff[i] <- sum(log(abs(s[-c(1,i)] - s[i])))
                                              ^
```
[R/bd_loglik.R:376:50:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L376) *style:* **Put spaces around all infix operators.**
```r
            logsdiff3[i] <- -sum(log(abs(1 - s[i]/s[-c(1,i,N)]))) -
                                                ~^~
```
[R/bd_loglik.R:376:58:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L376) *style:* **Commas should always have a space after.**
```r
            logsdiff3[i] <- -sum(log(abs(1 - s[i]/s[-c(1,i,N)]))) -
                                                         ^
```
[R/bd_loglik.R:376:60:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L376) *style:* **Commas should always have a space after.**
```r
            logsdiff3[i] <- -sum(log(abs(1 - s[i]/s[-c(1,i,N)]))) -
                                                           ^
```
[R/bd_loglik.R:376:68:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L376) *style:* **Trailing whitespace is superfluous.**
```r
            logsdiff3[i] <- -sum(log(abs(1 - s[i]/s[-c(1,i,N)]))) -
                                                                   ^
```
[R/bd_loglik.R:381:77:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L381) *style:* **Trailing whitespace is superfluous.**
```r
            #         logp <- sum(log(s[2:(N-1)])) + log(sum(sgnsdiff[2:N] *
                                                                            ^
```
[R/bd_loglik.R:383:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L383) *style:* **Lines should not be more than 80 characters.**
```r
            #         logp <- log(sum(sgnsdiff[2:N] * exp(sum(log(s[2:(N-1)])) -
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:383:81:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L383) *style:* **Trailing whitespace is superfluous.**
```r
            #         logp <- log(sum(sgnsdiff[2:N] * exp(sum(log(s[2:(N-1)])) -
                                                                                ^
```
[R/bd_loglik.R:387:35:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L387) *style:* **Put spaces around all infix operators.**
```r
            logp <- sum(log(s[1:(N-1)])) +
                                 ~^~
```
[R/bd_loglik.R:387:43:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L387) *style:* **Trailing whitespace is superfluous.**
```r
            logp <- sum(log(s[1:(N-1)])) +
                                          ^
```
[R/bd_loglik.R:392:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L392) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          if(cond == 2) {
            ^
```
[R/bd_loglik.R:393:70:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L393) *style:* **Trailing whitespace is superfluous.**
```r
            logp <- (soc == 2) * log(S + m - 1) + soc * log(PtT[1]) +
                                                                     ^
```
[R/bd_loglik.R:396:57:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L396) *style:* **Trailing whitespace is superfluous.**
```r
            logp <- log(PtT[1]) - log(S + missnumspec) -
                                                        ^
```
[R/bd_loglik.R:401:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L401) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:403:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L403) *style:* **Trailing whitespace is superfluous.**
```r

^~~~~~
```
[R/bd_loglik.R:405:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L405) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(tdmodel == 2) {
          ^
```
[R/bd_loglik.R:407:60:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L407) *style:* **Trailing whitespace is superfluous.**
```r
            "Missing species in diversity-dependence models
                                                           ^
```
[R/bd_loglik.R:412:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L412) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(cond == 3) {
          ^
```
[R/bd_loglik.R:413:27:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L413) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          x <- (1 - ux[1]^((0:m)+1)) / (1 - ux[1])
                          ^
```
[R/bd_loglik.R:413:33:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L413) *style:* **Put spaces around all infix operators.**
```r
          x <- (1 - ux[1]^((0:m)+1)) / (1 - ux[1])
                               ~^~
```
[R/bd_loglik.R:415:36:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L415) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          x <- (1:(m + 1)) * ux[1]^(0:m)
                                   ^
```
[R/bd_loglik.R:417:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L417) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(j in 2:S) {
           ^
```
[R/bd_loglik.R:418:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L418) *style:* **Lines should not be more than 80 characters.**
```r
          #x = convolve(x,rev((1:(m + 1)) * ux[j]^(0:m)),type = 'open')[1:(m + 1)]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:418:12:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L418) *style:* **Commented code should be removed.**
```r
          #x = convolve(x,rev((1:(m + 1)) * ux[j]^(0:m)),type = 'open')[1:(m + 1)]
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:419:16:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L419) *warning:* **no visible global function definition for ‘conv’, Did you mean 'cond'?**
```r
          x <- conv(x, (1:(m + 1)) * ux[j]^(0:m))[1:(m+1)]
               ^~~~
```
[R/bd_loglik.R:419:44:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L419) *style:* **Place a space before left parenthesis, except in a function call.**
```r
          x <- conv(x, (1:(m + 1)) * ux[j]^(0:m))[1:(m+1)]
                                           ^
```
[R/bd_loglik.R:419:55:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L419) *style:* **Put spaces around all infix operators.**
```r
          x <- conv(x, (1:(m + 1)) * ux[j]^(0:m))[1:(m+1)]
                                                     ~^~
```
[R/bd_loglik.R:421:59:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L421) *style:* **Trailing whitespace is superfluous.**
```r
        loglik <- loglik + lgamma(S + 1) + lgamma(m + 1) -
                                                          ^
```
[R/bd_loglik.R:423:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L423) *style:* **Lines should not be more than 80 characters.**
```r
        #loglik = loglik - log(S + m + 1) + log(S + 1) + log(S + m - 1) - log(S - 1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:423:10:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L423) *style:* **Commented code should be removed.**
```r
        #loglik = loglik - log(S + m + 1) + log(S + 1) + log(S + m - 1) - log(S - 1)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:426:11:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L426) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        if(tdmodel == 0) {
          ^
```
[R/bd_loglik.R:427:25:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L427) *style:* **Only use double-quotes.**
```r
          s1 <- sprintf('Parameters: %f %f', pars1[1], pars1[2])
                        ^~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:430:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L430) *style:* **Only use double-quotes.**
```r
            'Parameters: %f %f %f %f', pars1[1], pars1[2], pars1[3], pars1[4]
            ^~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:433:25:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L433) *style:* **Only use double-quotes.**
```r
          s1 <- sprintf('Parameters: %f %f %f', pars1[1], pars1[2], pars1[3])
                        ^~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_loglik.R:435:23:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_loglik.R#L435) *style:* **Only use double-quotes.**
```r
        s2 <- sprintf(', Loglikelihood: %f', loglik)
                      ^~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:3:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L3) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/bd_ML.R:8:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L8) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/bd_ML.R:14:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L14) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/bd_ML.R:40:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L40) *style:* **Lines should not be more than 80 characters.**
```r
#' tdmodel == 4 : decline in speciation rate such that the expected number of species matches with
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:48:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L48) *style:* **Lines should not be more than 80 characters.**
```r
#' cond == 3 : conditioning on the total number of extant taxa (including missing species)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:63:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L63) *style:* **Lines should not be more than 80 characters.**
```r
#' do as many cycles as needed to meet the tolerance set for the target function.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:67:19:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L67) *style:* **Trailing whitespace is superfluous.**
```r
#' loglik function
                  ^
```
[R/bd_ML.R:87:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L87) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/bd_ML.R:88:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L88) *style:* **Lines should not be more than 80 characters.**
```r
#' cat("Estimating parameters for a set of branching times brts with the default settings:")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:91:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L91) *style:* **Trailing whitespace is superfluous.**
```r
#'
  ^
```
[R/bd_ML.R:93:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L93) *style:* **Variable or function name should be snake_case.**
```r
bd_ML = function(brts,
^~~~~
```
[R/bd_ML.R:93:7:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L93) *style:* **Use <-, not =, for assignment.**
```r
bd_ML = function(brts,
      ^
```
[R/bd_ML.R:94:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L94) *style:* **Lines should not be more than 80 characters.**
```r
    initparsopt = c(0.1,0.05 * (tdmodel <= 1) + 10 * (length(brts) + missnumspec) * (tdmodel > 1)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:94:25:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L94) *style:* **Commas should always have a space after.**
```r
    initparsopt = c(0.1,0.05 * (tdmodel <= 1) + 10 * (length(brts) + missnumspec) * (tdmodel > 1)),
                        ^
```
[R/bd_ML.R:95:21:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L95) *style:* **Commas should always have a space after.**
```r
    idparsopt = c(1,2 + (tdmodel > 1)),
                    ^
```
[R/bd_ML.R:96:52:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L96) *style:* **Commas should always have a space after.**
```r
    idparsfix = (1:4)[-idparsopt], parsfix = rep(0,4)[idparsfix],
                                                   ^
```
[R/bd_ML.R:105:19:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L105) *style:* **Only use double-quotes.**
```r
    optimmethod = 'subplex',
                  ^~~~~~~~~
```
[R/bd_ML.R:107:15:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L107) *style:* **Only use double-quotes.**
```r
    methode = 'lsoda',
              ^~~~~~~
```
[R/bd_ML.R:109:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L109) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/bd_ML.R:110:4:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L110) *style:* **Commented code should be removed.**
```r
  #options(warn = -1)
   ^~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:111:8:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L111) *style:* **Use <-, not =, for assignment.**
```r
  brts = sort(abs(as.numeric(brts)),decreasing = TRUE)
       ^
```
[R/bd_ML.R:111:37:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L111) *style:* **Commas should always have a space after.**
```r
  brts = sort(abs(as.numeric(brts)),decreasing = TRUE)
                                    ^
```
[R/bd_ML.R:112:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L112) *style:* **Lines should not be more than 80 characters.**
```r
  out2 = invisible(data.frame(lambda0 = -1,mu0 = -1,lambda1 = -1, mu1 = -1, loglik = -1, df = -1, conv = -1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:112:8:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L112) *style:* **Use <-, not =, for assignment.**
```r
  out2 = invisible(data.frame(lambda0 = -1,mu0 = -1,lambda1 = -1, mu1 = -1, loglik = -1, df = -1, conv = -1))
       ^
```
[R/bd_ML.R:112:44:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L112) *style:* **Commas should always have a space after.**
```r
  out2 = invisible(data.frame(lambda0 = -1,mu0 = -1,lambda1 = -1, mu1 = -1, loglik = -1, df = -1, conv = -1))
                                           ^
```
[R/bd_ML.R:112:53:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L112) *style:* **Commas should always have a space after.**
```r
  out2 = invisible(data.frame(lambda0 = -1,mu0 = -1,lambda1 = -1, mu1 = -1, loglik = -1, df = -1, conv = -1))
                                                    ^
```
[R/bd_ML.R:113:5:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L113) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(is.numeric(brts) == FALSE)
    ^
```
[R/bd_ML.R:114:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L114) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[R/bd_ML.R:118:10:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L118) *style:* **Use <-, not =, for assignment.**
```r
  idpars = sort(c(idparsopt,idparsfix))
         ^
```
[R/bd_ML.R:118:29:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L118) *style:* **Commas should always have a space after.**
```r
  idpars = sort(c(idparsopt,idparsfix))
                            ^
```
[R/bd_ML.R:119:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L119) *style:* **Lines should not be more than 80 characters.**
```r
  if((prod(idpars == (1:4)) != 1) || (length(initparsopt) != length(idparsopt)) || (length(parsfix) != length(idparsfix)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:119:5:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L119) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if((prod(idpars == (1:4)) != 1) || (length(initparsopt) != length(idparsopt)) || (length(parsfix) != length(idparsfix)))
    ^
```
[R/bd_ML.R:120:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L120) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[R/bd_ML.R:124:5:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L124) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(tdmodel == 0 & length(initparsopt) > 2)
    ^
```
[R/bd_ML.R:125:3:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L125) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
  {
  ^
```
[R/bd_ML.R:126:1:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L126) *style:* **Lines should not be more than 80 characters.**
```r
     cat("tdmodel = 0 only accepts a constant speciation rate and extinction rate.\n")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/bd_ML.R:129:13:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L129) *style:* **Use <-, not =, for assignment.**
```r
  namepars1 = c("lambda0","mu0","lambda1","mu1")
            ^
```
[R/bd_ML.R:129:27:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L129) *style:* **Commas should always have a space after.**
```r
  namepars1 = c("lambda0","mu0","lambda1","mu1")
                          ^
```
[R/bd_ML.R:129:33:](https://github.com/rsetienne/DDD/blob/9da556253a1b0a895f92c9ca157cf246c716cf63/R/bd_ML.R#L129) *style:* **Commas should always have a space after.**
```r
  namepars1 = c("lambda0","mu0","lambda1","mu1")


no te vayas a cansar bro


some device don't need this, some old binary don't call service as vendor.*** so things don't work, quark is too old pre vendor era.


this is deprecated since nougat ig


Successfully aliased the URL <https://node-friends-app-ro7aqanfq.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


If you use this validation only once, do you really need a modifier for it?


>
>
> литералы повторяющийся например 4, пишут как константы
> const auto coeff_four = 4;
> Ну и вообще в выражения осбоенно в формулах литералы пишут как константные переменные

Только зачем? Писать отдельную строчку в коде где ты просто говоришь что это четвёрка. Мне кажется что это только усложняет чтение кода.


Посмотри в уроке как использовать этот хук


so?


👌 epic


Are you sure the OS env-variable is only set on Windows? (I cannot test macOS and FreeBSD here)
This might then lead to `uname` never being executed and potentially to also different library names for these systems.


epic


Successfully aliased the URL <https://node-friends-app-1qsas9631.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


a


Now could not deploy this pull request since the `now.json` file does not contain valid JSON.

	Click here to see the contents of `now.json`

{this-is-not-json}

For more information on now.json visit https://zeit.co/docs/features/configuration#now.json.


Why did you rollback `kotlin_version` from `1.3.30` to `1.3.0`?
`kotlin_version` was just update in this commit: https://github.com/moezbhatti/qksms/commit/bc9b67d71a9cb7681d8d45d27d758d5478016a1f

Also, the Gradle build is failing when `kotlin_version` is `1.3.0` with latest android gradle plugin.


Deployment failed with the following error:

~~~
You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore):
~~~


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-without-alias-cxczcdnoz.now.sh> to the following alias.

* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-with-alias-bwod0bfmx.now.sh> to the following aliases.

* https://github-e2e-production-with-v2-alias.now.sh
* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v1-with-alias-clpksnnkel.now.sh> to the following alias.

* https://github-e2e-production-with-v1-alias.now.sh


@grahamc Ah, yes, I was concerned this could become a problem :o Thanks for the feedback :)

I made a trade-off here because if we would read the config from `/etc/sway/config` instead of the Nix store it wouldn't work on non NixOS systems by default and I thought this could be desirable as well (and I copied the file to `/etc` so that running `cp /etc/sway/config ~/.config/sway/` works on NixOS).

If I think of this again it might be best to patch Sway to try `/etc/sway/config` first and fallback to the Nix store (that would be a trivial one-liner). Would you be ok with this?


Successfully aliased the URL <https://simple-now-app-6n2q8fx9t.zeit.sh> to the following aliases.

* https://simple-now-app.zeit.sh
* https://simple-now-app-git-master.zeit.sh


@mkitchingh This stopped working for me in the last couple weeks.  Is it me, or everyone?


Successfully aliased the URL <https://node-friends-app-dn6gfp6bo.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


It does  `fn delete_state_entries(&self, addresses: &[String]) -> Result<Vec<String>, ContextError> ` .  Neither interface makes any guarantees as to input or output


Oh and i also switched the copper to a petunia look.


>
>
> можно использовать bool

Любой другой ответ кроме 0 будет преобразован к 1 в таком случае


This was supposed to be `LOCK_KEY_SPELL`, but I take it it didn't build for you, since TC is missing this lock type implementation, so you replaced it with first-best thing you could find? Anyway, I will submit another issue with information necessary to implement it and we can get it fixed there.


it's not about new or old device, the flag itself doesn't exist


>
>
> я бы структурировал это if немного более читаемым способом
> if () {
> } else if () {
> }
>
> `if(coefficient1` == 0) OneRootSearch(coefficient2, freeTerm);`
> такой if пишут чащее так
> if (условие) return;
> но стараються меньше писать в одну строку
> чаще их стараються выделять блоками, т.е. более читаемым способом

Вроде как Done


Hi @Kevoulee, just checking if this is the correct version I should work on. Please let me know - thanks.


Сделать табуляцию меньше, на 2-ку в саблайме


>  нужный return, так как выходом void фу

Done


Successfully aliased the URL <https://node-friends-app-b2moi7zo2.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Is already present from the first issue with:
node_modules/
.vscode/
yarn.lock
In the root, no more folders/files are non-relevant. You can find more info about monorepo/workspace in https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/


Hi there!!!
Is there any option or function that we can build.. ?
textarea field with html + tags of wagtail (eg. {% %} or any logic )
while we ouput this textarea value it should run as wall wagtail logic?
Let me know if you did not get my question...

Thanks


Successfully aliased the URL <https://fenewsorg-m0ew6w4ut.now.sh> to the following aliases.

* https://fenews.org
* https://fenewsorg-git-master.fe-news.now.sh


>
>
> как и в придыдущем коментарии

Done Done


k


Successfully aliased the URL <https://blog-onumd8jya.now.sh> to the following aliases.

* https://www.ahonn.me
* https://blog-git-master.ahonn.now.sh


1. `receiver` is already party of the `key` so why store it again inside the struct? When the receiver calls `claimOrder`, they are passed as `msg.sender` to generate the key that leads to the Order, so storing the `receiver` is redundant here.
2. You don't need to store `status`:
    a. When you `createOrder`, you can check if (Order.creator == 0) then this mapping slot is empty (hasn't been used yet)
    b. When you `claimOrder`, you just claim the funds, clear everything except `creator`, so next time someone tries to use this slot; you deny them.
    c. When you `cancelOrder`, you do the same as in point `b`.

Remember to always store as less data as possilbe...all that costs gas, especially in storage.


>
>
> в основном деление проверяют на ноль, т.к. поведение программы не определено при делении на ноль может вывести inf а может и бросить exception

Ранее в коде проверку на 0 уже делал


-Mon algo comportait un oubli (le nombre de victoire de J1 et J2 n'était pas remit à zéro )
-On peut maintenant voir explicitement les heuristiques qui s'affrontent, et le vainqueur


Successfully aliased the URL <https://node-friends-app-mrkf3xlms.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


delete space


3剪枝


What?


Successfully aliased the URL <https://node-friends-app-jhf1fwawo.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Unfortunately, it's not that simple. While it builds and does not throw errors when loaded, it also doesn't work either. The older version works fine and by marking the manifest for 2019,  2017 users are not auto updated.


>
>
> blocsNum = blocsNum+1 -> blocsNum += 1

Done


The motivation for this change are users which try to put a non-full JID into the method and wonder why the result is empty


> старайтесь привыкнуть к стилю преинкримента и декр

Done


Where is status of response?
example res.status(200).send(todos)


>
>
> void в качестве параметра функции писать это старый С подход

Done


Now could not deploy this pull request since the `now.json` file does not contain valid JSON.

	Click here to see the contents of `now.json`

{this-is-not-json}

For more information on now.json visit https://zeit.co/docs/features/configuration#now.json.


Deployment failed with the following error:

~~~
You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore):
~~~


I think your function here needs to access the order the same way it creates one, meaning I would have 2 parameters:
1. Receiver
2. Plain password
3. Then I generate the puzzle to access that order
4. Then I check that the creator is msg.sender (which you already do)


Checkmarx scan results 25 Apr 2019 13:10 UTC +00:00

High
Medium
Low
Info

New
0
3
4
0

Recurrent
0
0
0
0

Fixed
0
0
0
0

 Open Viewer
Included commits

Commit ID	Owner

50a28cad29a54c47c0437f92dfb3ead8be75a3cb	@niklud


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-with-alias-7ntv0tkoa.now.sh> to the following aliases.

* https://github-e2e-production-with-v2-alias.now.sh
* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-without-alias-aagfkcw1q.now.sh> to the following alias.

* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v1-with-alias-ywzxjltwsr.now.sh> to the following alias.

* https://github-e2e-production-with-v1-alias.now.sh


Successfully aliased the URL <https://node-friends-app-jx1uh0g1r.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Successfully aliased the URL <https://simple-now-app-ejy0h0z2s.zeit.sh> to the following aliases.

* https://simple-now-app.zeit.sh
* https://simple-now-app-git-master.zeit.sh


>
>
> используйте constexpr вместо #define

Done


Successfully aliased the URL <https://node-friends-app-73bm0gpo4.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Successfully aliased the URL <https://mini-commerce-d8jvo6n8x.now.sh> to the following alias.

* https://mini-commerce-git-master.andrewprt.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v1-with-alias-wmgrbyknxb.now.sh> to the following alias.

* https://github-e2e-production-with-v1-alias.now.sh


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-with-alias-7n3uy6k78.now.sh> to the following aliases.

* https://github-e2e-production-with-v2-alias.now.sh
* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


# Specs execution successful
:scroll: [View logs](http://bamboo.comnull)
### Plans updated

Bamboo specs have been successfully imported and the following plans have been updated.

Project | Plan | Build
---|---|---
[Test](http://bamboo.com/browse/TEST) | [Comment test](http://bamboo.com/browse/TEST-CTEST)  | :white_check_mark: [\#1](http://bamboo.com/browse/TEST-CTEST-1)
[New project](http://bamboo.com/browse/NEW) | [Disabled plan](http://bamboo.com/browse/NEW-DISABLED) **disabled** | :white_check_mark: [\#1](http://bamboo.com/browse/NEW-DISABLED-1)

### Deployments updated

Bamboo specs have been successfully imported and the following deployment projects have been updated.

|Deployment project |
----|
[Deployment test](http://bamboo.com/deploy/viewDeploymentProjectVersions.action?id=2162689)|


Successfully aliased the URL <https://github-e2e-tests-production-alias-v2-without-alias-5a3a3mku5.now.sh> to the following alias.

* https://github-e2e-tests-product-git-master.zeit-github-test-production1.now.sh


> метку получите поток недочитавших символов. т.е. надо делать типа какого то сброса пот

Странно, у меня всё работает


Successfully aliased the URL <https://node-friends-app-8k021ip31.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Successfully aliased the URL <https://node-friends-app-6lmz6iqj1.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


use module.exports = {
    index: Function,
    new: Function,
    ...
}
instead of repeated 'exports'


I can see in your `createOrder` function that you don't allow reusing puzzles....BUT think of the following scenario:
1. Everything is public in Ethereum including your deployed contract
2. I'm a developer that saw your contract and liked it so I copied it and deployed my version of it
3. People start using my remittance app
4. My app uses your code so no one can reuse puzzles
5. Someone in my app used `puzzle` (adel1234) which can be resolved with `password` (hello_there_987)
6. A malicious person knows that my app uses the exact same code that your app uses (i.e. we have the exact same `generatePuzzle` function)
7. Now someone comes in your app and they try to use `puzzle` (adel1234) which hasn't been used there before
8. The malicious person sees that transaction and they already know (from my app transactions) that adel1234 can be resolved with (hello_there_987), so the call `claimOrder` and withdraw the funds
9. Now you are protected in your code because you added `msg.sender` as part of the hash in `claimOrder` (so only the shop owner can call `claimOrder`) but if you didn't have that?
10. So you need a way to make the resulting hash unique on a contract level, so even if someone copies your code and they pass the same values to `generatePuzzle`; the resulting hash would be different between different contracts...can you think of a way?


>
>
> если ввести число 43 или больше, то у вас будет неправильное поведение программы, т.е. вы при переходе на метку получите поток недочитавших символов. т.е. надо делать типа какого то сброса потока

Тут не понял немного


Successfully aliased the URL <https://node-friends-app-crv7nzza7.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Successfully aliased the URL <https://blog-ecddi62sn.now.sh> to the following aliases.

* https://www.ahonn.me
* https://blog-git-master.ahonn.now.sh


good work


Done in:

https://review.discourse.org/t/dev-do-not-use-find-each-for-avatars-clean-task/3043


Why does this improve the image quality?


>
>
> это круто что вы сделали это спомощью строки, я бы тоже так сделал) но я хотел чтобы вы получали с экрана не строку, а число, его разложили на цифры используя оператор %.

Я добавлю закомментированию версию в коммите с меткой Done commit в бренчь


In order to fix the bugs of the previous commit 6ccb45, the edited files are ReadSolarModel.cc and ReadSolarModel.h and I worked on the versions from the previous-to-previous commit eb3834f. Therefore, some new functions introduced (but commented out) for computing the number densities, absorption coefficients etc. are missing in this current commit. The features do not affect the code at this point of time and will be freshly introduced again in future commits.


Successfully aliased the URL <https://node-friends-app-gt737xq90.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Maybe add a check here that you have at least 7 accounts available?


That seems like a great idea! Another suggestion is to change this to a `lib.mkDefault`, as right now for me to put it at `/etc/sway/config` I have to use `mkForce` (which should have been a hint that this wouldn't work ... ;) ) Thank you for the module. Sway is so much easier to set up than I had anticipated!


In order to fix the bugs of the previous commit 6ccb45e, the edited files are src/ReadSolarModel.cc and src/ReadSolarModel.h and I worked on the versions from the previous-to-previous commit eb3834f. Therefore, some new functions introduced (but commented out) for computing the number densities, absorption coefficients etc. are missing in this current commit. The features do not affect the code at this point of time and will be freshly introduced again in future commits.


Idk why)


>

> `sfrg`


Também há mudanças gerais no código (estéticas, tempos e tipos de variável) para melhor desempenho


HVAD?


error


Hey,

I don't fully understand your question. But I'll try to answer anyway.

TextareaField with HTML in it: you can use models.TextareaField in your model, and `fieldname|safe` in your template to render the HTML.

And for adding Tags to pages, that's the next video to come out (hopefully today or tomorrow) so keep an eye out for that one. The docs also cover adding tags https://docs.wagtail.io/en/v2.5/reference/pages/model_recipes.html#tagging

I _hope_ this helped! And in the future questions like this might be better to ask in the Wagtail Slack Community (https://wagtail-slack.now.sh/)

- Kalob


-------
- [ ]
```
android.useDeprecatedNdk
```


```
'ffmpeg4android_lib'`
> `` `
```


The test scenario description doesn't match what you're testing:
Description: should forbid to claim order with invalid password
Testing: wrong sender


oitrhothnbkm,fgh


Successfully aliased the URL <https://node-friends-app-5min70g7n.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Successfully aliased the URL <https://myengagement-ciomjxrgib.now.sh> to the following alias.

* https://myengagement.svc.na.thaniel.uk


Tutorial: https://learnwagtail.com/tutorials/routable-pages/

Video: https://www.youtube.com/watch?v=W2oHKiAYl3U


Can you add a test scenario to check the balances of the order creator and receiver before and after claiming the order? You must have done the same in Splitter where you take transaction cost in consideration.


Tutorial: https://learnwagtail.com/tutorials/adding-modifying-and-removing-sitemap-entries/

Video: https://www.youtube.com/watch?v=vGN66xS0ay8


Tutorial: https://learnwagtail.com/tutorials/using-snippetchooserpanel-select-multiple-blog-authors-snippets-orderables/

Video: https://www.youtube.com/watch?v=AZuyqG11hcE


No. See #78.


merge


Successfully aliased the URL <https://node-friends-app-g4z14k2nb.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Tutorial: https://learnwagtail.com/course/setting-django-shell-shell-plus-and-ipython/

YouTube Video: https://www.youtube.com/watch?v=ehYgC34Kl48


Successfully aliased the URL <https://rmustme-cko80ftjx.now.sh> to the following aliases.

* https://rmust.me
* https://rmustme-git-master.rulikkk.now.sh


Would it not be better to make it a raw string and drop flake comment?
`r"^-{5}BEGIN (RSA|DSA|EC|OPENSSH) PRIVATE KEY-{5}\s*$"`
https://lintlyci.github.io/Flake8Rules/rules/W605.html


Try to call a function when it's paused.


In the last commit? Becouse in the last commit I have added the shop owner address in the key calculation. If a malicious send the same codeHash1 and codeHash2, they have an address different, so the calculated key is wrong. No race conditions, in this commit,  or not?


Successfully aliased the URL <https://node-friends-app-dkvcdvrr3.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


`firstAncestorOrThisOfType()` does not test for non-null, but `firstAncestorOrThisOfTypeAsserted()` checks if the pointer is present, and triggers ASSERT if not. So when we know that the pointer always will be available, we can skip testing for non-null in application code.


I would always rely on your contract hash function in your tests instead of this, you never know what are the internals of generating the hash; they might end up being different for the same passed parameters.


Successfully aliased the URL <https://node-friends-app-byfheyhxt.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Ok, cool; no big deal :slightly_smiling_face:


These two often go together in conditionals. Is there an abstraction we can create to represent them?


> `firstAncestorOrThisOfType()` does not test for non-null, but `firstAncestorOrThisOfTypeAsserted()` checks if the pointer is present, and triggers ASSERT if not.

Oh, I see—my mistake. I didn't notice that we were calling a different function. Thanks a lot for the information and sorry for the confusion!


Yes I saw it, I was just adding to my explanation :slightly_smiling_face:


What is the advantage of using MockedPolyResponse over simple Promise.Resolve ?


Successfully aliased the URL <https://node-friends-app-ok0nmf3t1.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


# Specs execution successful
:scroll: [View logs](http://bamboo.comnull)
### Plans updated

Bamboo specs have been successfully imported and the following plans have been updated.

Project | Plan | Build
---|---|---
[Test](http://bamboo.com/browse/TEST) | [Comment test](http://bamboo.com/browse/TEST-CTEST)  | :white_check_mark: [\#1](http://bamboo.com/browse/TEST-CTEST-1)
[New project](http://bamboo.com/browse/NEW) | [Disabled plan](http://bamboo.com/browse/NEW-DISABLED) **disabled** | :white_check_mark: [\#1](http://bamboo.com/browse/NEW-DISABLED-1)

### Deployments updated

Bamboo specs have been successfully imported and the following deployment projects have been updated.

|Deployment project |
----|
[Deployment test](http://bamboo.com/deploy/viewDeploymentProjectVersions.action?id=2162689)|


Is there a more intention-revealing name for this function that describes how it is different than `gp_inject_fault`?


Successfully aliased the URL <https://blog-az577dby0.now.sh> to the following aliases.

* https://www.ahonn.me
* https://blog-git-master.ahonn.now.sh


Nice naming improvement.


<!DOCTYPE html>

Padded Text fields:

<form>

First Name

<input type="text" id="fname"
name="fname">
Last Name
<input type="text" id="lname"
name="lname">

</form>

 Bordered Text Fields

<form>

First Name
<input type="text1" id="fname"
name="fname">
Last Name
<input type="text1" id="lname"
name="lname">

</form>

Text Fields with icon/image

<form>

<input type="text2" name="search"
placeholder="Search..">

</form>

 Animated Text Field

<form>

  <input type="text3" name="search"
placeholder="Search..">

</form>


what's this


initial


Code for making the car move in a straight path for certain time created. Changes required for different velocities, and adding other mechanisms


>
>
> это круто что вы сделали это спомощью строки, я бы тоже так сделал) но я хотел чтобы вы получали с экрана не строку, а число, его разложили на цифры используя оператор %.

Добавлю коммитом файл через %


The below algorithm is part of the mathematical expression to get x y from index number


Successfully aliased the URL <https://nextjs-9vwcg8p0h.now.sh> to the following alias.

* https://nextjs-git-master.misfits.now.sh


@stephanreichel  Hier war ein komma zu viel


Successfully aliased the URL <https://node-friends-app-p85elmj8i.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


@dorothyfu  whats the scaling for?


The code below is the mathematical process of "rotating" the tetrimino from upwards rotation to the desired rotation.


Successfully aliased the URL <https://bracket-3mi1xvlmv.now.sh> to the following aliases.

* https://blame.hockey
* https://bracket-git-master.tollmanz.now.sh


Successfully aliased the URL <https://node-friends-app-7mqyq7vsf.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


@alxhub : `NgModule.${arrayName}s`  produces weird messages e.g.

```
Value at position 0 in the NgModule.importss of HttpClientTestingModule is not a reference
```

Perhaps it should be ``NgModule.${arrayName} property`?


@dorothyfu  These should not have been committed


Same here @dorothyfu


Successfully aliased the URL <https://node-friends-app-5d0ggbpzl.now.sh> to the following aliases.

* https://node-friends-app.now.sh
* https://node-friends-app-git-master.ivandimanov.now.sh


Also it might benefit to include the file path as well.


ありがとうございます。
Prettierとvscodeプラグインを導入して保存のたびに整形されるようにしました。


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

Created multidev environment [ci-2](https://dashboard.pantheon.io/sites/ca6bc4ce-44e4-40dd-a195-ccec533ec16b#ci-2) for nehgs-calendar-sandbox.


张瑞


wrong!


key should not be posted publicly


Successfully aliased the URL <https://now-builder-s3-c9kzj1b4o.now.sh> to the following alias.

* https://now-builder-s3-git-master.pckil.now.sh


I don't think this token should be public or am I wrong?


Hi! Basically for each post there's a `@data-ft` that contains some useful info that I wasn't extracting before. The post_id can be retrieved from url but it can be cumbersome (the link changes for photos, videos etc.) it's much more reliable to extract the precise field.
The entire @data-ft returns a JSON that needs to be parsed, that is why I needed to add an output processor `id_strip` in items.py.
Also the timestamp present in @data-ft is used to return the "date" column in a similar fashion, using a parsing function that translates the timestamp to a proper date. This is much better from the original parse_date which instead tries to yield a datetime format starting from the text() date attribute in each post which has a lot of different formats.
Hope this helps :)


<details>

<summary>Submitting the task to Taskcluster failed. Details</summary>

Client ID project/taskcluster/tc-github/production-2 does not have sufficient scopes and is missing the following scopes:

```
{
  "AllOf": [
    "hooks:modify-hook:project-relman/bugbug",
    "assume:hook-id:project-relman/bugbug"
  ]
}
```

This request requires the client to satisfy the following scope expression:

```
{
  "AllOf": [
    "hooks:modify-hook:project-relman/bugbug",
    "assume:hook-id:project-relman/bugbug",
    "queue:route:statuses",
    {
      "AnyOf": [
        {
          "AllOf": [
            "queue:scheduler-id:taskcluster-github",
            {
              "AnyOf": [
                "queue:create-task:highest:aws-provisioner-v1/github-worker",
                "queue:create-task:very-high:aws-provisioner-v1/github-worker",
                "queue:create-task:high:aws-provisioner-v1/github-worker",
                "queue:create-task:medium:aws-provisioner-v1/github-worker",
                "queue:create-task:low:aws-provisioner-v1/github-worker",
                "queue:create-task:very-low:aws-provisioner-v1/github-worker",
                "queue:create-task:lowest:aws-provisioner-v1/github-worker"
              ]
            }
          ]
        },
        {
          "AnyOf": [
            "queue:create-task:aws-provisioner-v1/github-worker",
            {
              "AllOf": [
                "queue:define-task:aws-provisioner-v1/github-worker",
                "queue:task-group-id:taskcluster-github/SKZSID6vQrqtg_zm6BkmuA",
                "queue:schedule-task:taskcluster-github/SKZSID6vQrqtg_zm6BkmuA/PeLok37PTXmgSt5bd3oXXQ"
              ]
            }
          ]
        }
      ]
    }
  ]
}
```

---

* method:     createTask
* errorCode:  InsufficientScopes
* statusCode: 403
* time:       2019-04-25T13:45:44.671Z

</details>


>
>
> а зачем переменная `k`?

Удалил

>
>
> зачем после каждой итерации выполнять деление на 2? может лучше вынести это в одну переменную и потом делать сравнения. Ну целочисленное деление несильно дорогая операция, но ее можно вынести вне цикла. Хотя множество компиляторов и делают оптимизауцию за вас вынося `num/2` наружу цикла

Вынес

>
>
> привыкайте делать итерацию цикла, преинкриментом ++t, для приметивных типов это мелочь, но для составных типов это критически важно. Для вас лучше это как привычка

Done

>
>
> счетчик цикла лучше делать беззнаковыми. Постараюсь объяснить, например размер контейнера это всегда беззнаковая величина, и если ваш счетчик знаковый, то вы получите вечный цикл, т.к. размеры знаковых и безнаковых разные, и при увеличении счетчика, когда он получит переполнение вы будет циклически инкриментировать счетчик

Done


>please do add a comment about "%1$s"

Oh yes, of course. Thank you for catching that


>
>
> мне кажеться коментарии надо как то выровнять

Done


>
>
> ну ваша программа падает, по крайней мере у меня на домашнем компе и на рабочем. Проблема банальная целочисленное деление на ноль, при num%t, когда t == 0

Fixed


One of these changes broke compilation on Debian. I'm looking into it.


thanks, used your code to fix the mapping of Content-Type between HttpRequestBase and HttpRequestMessage. The "text/xml; charset=utf-8" used to be parsed into "text/plain"...


Everything can be XSS'd. You just have to find it(usually an extremly difficult task).
Watch [this video](https://www.youtube.com/watch?v=lG7U3fuNw3A) for an awesome explanation on it.


Successfully aliased the URL <https://callumflackdesign-59r0qi4fi.now.sh> to the following aliases.

* https://callumflack.design
* https://callumflackdesign-git-master.callum.now.sh


> какого размера ваше число будет

Done


rm aclocal.m4


Hi,

I'm doing my final year project as POS (Point of Sales) transaction
analysis system and your repo related to my problem domain.
Really appreciate if you could give relevant columns to populate a dataset
which could use with your repository. No need to have real one or wouldn't
mind can I have a sample.

Best Regards,

On Wed, Apr 24, 2019 at 2:08 PM Gábor Stikkel <notifications@github.com>
wrote:

> Hi, sorry I don't have it.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/stikoson/MerchantTransactions/commit/c3d384c83b38788e5e22308605e10f55298b260a#commitcomment-33288504>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AH2RY3ZJZFKMXJ5WR6PUEOTPSAMAXANCNFSM4HHXEWXQ>
> .
>


It is a fair concern, but in this case this is not my plain token, AppVeyor allows us to [encrypt the token](https://www.appveyor.com/docs/how-to/secure-files/#decrypting-files-during-an-appveyor-build).
That's what you are seeing here.

But this makes me curious, how did you happen to see this?
Stalking for keys, or genuinely interested in the project? :)


dhdf


初始为设定a取值。现在可以正常执行。


ATTENTION! Be careful in using this method. According to [list_objects docs](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.list_objects):
> Returns some or all (up to 1000) of the objects in a bucket.


testt