[R/calc_K.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the average number of junctions after an infinite number of generations, provided information on the initial heterozygosity, population size and the number of generations.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calc_K.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calc_K.R:11:20:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L11) *style:* **Variable or function name should be snake_case.**
```r
calc_k <- function(N = Inf,
                   ^
```
[R/calc_K.R:12:20:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L12) *style:* **Variable or function name should be snake_case.**
```r
                   R = Inf,
                   ^
```
[R/calc_K.R:13:20:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L13) *style:* **Variable or function name should be snake_case.**
```r
                   H_0 = 0.5,
                   ^~~
```
[R/calc_K.R:16:3:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L16) *style:* **Variable or function name should be snake_case.**
```r
  K <- H_0 * C * 2 * N * R / (2 * N * C + R)
  ^
```
[R/calc_K.R:19:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L19) *style:* **Variable or function name should be snake_case.**
```r
    K <- H_0 * R
    ^
```
[R/calc_K.R:23:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L23) *style:* **Variable or function name should be snake_case.**
```r
    K <- H_0 * C * 2 * N
    ^
```
[R/calc_K.R:27:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calc_K.R#L27) *style:* **Variable or function name should be snake_case.**
```r
    K <- Inf
    ^
```
[R/calculate_error.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the error in the estimate of the onset of hybridisation, following Equations 3 & 4 in the Supplementary information of Janzen et al. 2018.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_error.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_error.R:9:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L9) *style:* **Lines should not be more than 80 characters.**
```r
#' @param relative Boolean flag, if TRUE: return the relative error, if FALSE: return error in generations
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_error.R:15:24:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L15) *style:* **Variable or function name should be snake_case.**
```r
time_error <- function(J = NA,
                       ^
```
[R/calculate_error.R:16:24:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L16) *style:* **Variable or function name should be snake_case.**
```r
                       N = Inf,
                       ^
```
[R/calculate_error.R:17:24:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L17) *style:* **Variable or function name should be snake_case.**
```r
                       R = Inf,
                       ^
```
[R/calculate_error.R:18:24:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L18) *style:* **Variable or function name should be snake_case.**
```r
                       H_0 = 0.5,
                       ^~~
```
[R/calculate_error.R:24:3:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L24) *style:* **Variable or function name should be snake_case.**
```r
  K <- junctions::calc_k(N, R, H_0, C)
  ^
```
[R/calculate_error.R:30:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L30) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
  if ( relative) return(  error)
      ^
```
[R/calculate_error.R:30:25:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L30) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
  if ( relative) return(  error)
                        ^
```
[R/calculate_error.R:31:26:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_error.R#L31) *style:* **Put spaces around all infix operators.**
```r
  if (!relative) return(t*error)
                        ~^~
```
[R/calculate_MAT.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Function that calculates the maximum time after hybridization after which the number of junctions can still be reliably used to estimate the onset of hybridization. This is following equation 15 in Janzen et al. 2018.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_MAT.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_MAT.R:12:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L12) *style:* **Variable or function name should be snake_case.**
```r
calculate_mat <- function(N = Inf,
                          ^
```
[R/calculate_MAT.R:13:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L13) *style:* **Variable or function name should be snake_case.**
```r
                          R = Inf,
                          ^
```
[R/calculate_MAT.R:14:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                          H_0 = 0.5,
                          ^~~
```
[R/calculate_MAT.R:20:3:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_MAT.R#L20) *style:* **Variable or function name should be snake_case.**
```r
  K <- junctions::calc_k(N, R, H_0, C)
  ^
```
[R/calculate_time.R:1:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L1) *style:* **Lines should not be more than 80 characters.**
```r
#' Estimate the time since the onset of hybridization, using the number of junctions
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_time.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Estimate the time since the onset of hybridization, following equation 14 in Janzen et al. 2018
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_time.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_time.R:11:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L11) *style:* **Lines should not be more than 80 characters.**
```r
#' estimate_time(J = J, N = 100, R = 1000, H_0 = 0.5, C = 1)  # should be 200 again
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/calculate_time.R:13:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L13) *style:* **Variable or function name should be snake_case.**
```r
estimate_time <- function(J = NA,
                          ^
```
[R/calculate_time.R:14:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                          N = Inf,
                          ^
```
[R/calculate_time.R:15:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L15) *style:* **Variable or function name should be snake_case.**
```r
                          R = Inf,
                          ^
```
[R/calculate_time.R:16:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L16) *style:* **Variable or function name should be snake_case.**
```r
                          H_0 = 0.5,
                          ^~~
```
[R/calculate_time.R:28:3:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/calculate_time.R#L28) *style:* **Variable or function name should be snake_case.**
```r
  K <- junctions::calc_k(N, R, H_0, C)
  ^
```
[R/estimate_time_markers.R:1:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L1) *style:* **Lines should not be more than 80 characters.**
```r
#' Estimate the time since the onset of hybridization, using the observed number of junctions, taking into account the distribution of markers
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_markers.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Estimate the time since the onset of hybridization, following equation 1 in Janzen et al. unpublished
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_markers.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param marker_distribution A vector containing the position of all markers in Morgan.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_markers.R:10:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L10) *style:* **Lines should not be more than 80 characters.**
```r
#' J <- number_of_junctions_markers(N = 100, H_0 = 0.5, t = 200, marker_distribution = markers)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_markers.R:16:35:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L16) *style:* **Variable or function name should be snake_case.**
```r
estimate_time_markers <- function(J = NA,
                                  ^
```
[R/estimate_time_markers.R:17:35:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L17) *style:* **Variable or function name should be snake_case.**
```r
                                  N = Inf,
                                  ^
```
[R/estimate_time_markers.R:18:35:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L18) *style:* **Variable or function name should be snake_case.**
```r
                                  H_0 = 0.5,
                                  ^~~
```
[R/estimate_time_markers.R:31:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L31) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(J > 1e4) {
    ^
```
[R/estimate_time_markers.R:35:63:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_markers.R#L35) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
  fitted <- stats::optimize(to_fit, interval = c(2, upper_lim) )
                                                              ^
```
[R/estimate_time_unphased.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculates the time since admixture, given unphased ancestry data.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_unphased.R:3:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L3) *style:* **Lines should not be more than 80 characters.**
```r
#' @param local_anc Local_anc can be provided as either matrix with two columns, where the first column represents ancestry on chromosome 1, and the second column represents ancestry on chromosome 2. Ancestry labels used should be [0, 1], where 0 indicates the first ancestor, and 1 indicates the second ancestor. Alternatively, the user can provide a vector indicating whether at the specific marker, the focal individual is homozygous for the first ancestor (0), homozygous for the second ancestor (1) or heterozygous (2).
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_unphased.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param max_t maximum time to be considered for maximum likelihood optimization. Too large values might cause the maximum likelihood algorithm to deviate from the global maximum.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_unphased.R:8:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L8) *style:* **Lines should not be more than 80 characters.**
```r
#' @param optim_pop_size If TRUE, population size is also optimized. Starting point of the optimizaton will then be on the given population size, and half the maximum time.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/estimate_time_unphased.R:21:19:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L21) *warning:* **no visible global function definition for ‘get_states’**
```r
  local_states <- get_states(local_anc)
                  ^~~~~~~~~~
```
[R/estimate_time_unphased.R:27:21:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L27) *warning:* **no visible global function definition for ‘single_state’**
```r
    seven_states <- single_state(local_time, N = pop_size, d = di)
                    ^~~~~~~~~~~~
```
[R/estimate_time_unphased.R:34:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L34) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(optim_pop_size == FALSE) {
    ^
```
[R/estimate_time_unphased.R:41:9:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L41) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(verbose) cat(t, -sum(local_probs), "\n")
        ^
```
[R/estimate_time_unphased.R:48:9:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L48) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(params[[1]] < 2) return(-Inf)
        ^
```
[R/estimate_time_unphased.R:49:9:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L49) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(params[[2]] < 2) return(-Inf)
        ^
```
[R/estimate_time_unphased.R:55:9:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L55) *style:* **Place a space before left parenthesis, except in a function call.**
```r
      if(verbose) cat("N",params[[1]],"t", params[[2]], -sum(local_probs), "\n")
        ^
```
[R/estimate_time_unphased.R:55:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L55) *style:* **Commas should always have a space after.**
```r
      if(verbose) cat("N",params[[1]],"t", params[[2]], -sum(local_probs), "\n")
                          ^
```
[R/estimate_time_unphased.R:55:39:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/estimate_time_unphased.R#L55) *style:* **Commas should always have a space after.**
```r
      if(verbose) cat("N",params[[1]],"t", params[[2]], -sum(local_probs), "\n")
                                      ^
```
[R/number_of_junctions_backcross.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_backcross.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the expected number of junctions after t generations, in a backcrossing mating scheme.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_backcross.R:4:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_backcross.R#L4) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_backcross.R:10:43:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_backcross.R#L10) *style:* **Variable or function name should be snake_case.**
```r
number_of_junctions_backcross <- function(H_0 = 0.5,
                                          ^~~
```
[R/number_of_junctions_backcross.R:13:29:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_backcross.R#L13) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  jt <- 2 * H_0 * t * C * 2^(-t)
                            ^
```
[R/number_of_junctions_di.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' Calculate the expected number of junctions between two markers separated by a given amount of recombination
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_di.R:3:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L3) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the expected number of junctions after t generations, provided information on the initial heterozygosity, population size, the number of generations since the onset of admixture and the distance between two markers.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_di.R:12:36:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L12) *style:* **Variable or function name should be snake_case.**
```r
number_of_junctions_di <- function(N = Inf,
                                   ^
```
[R/number_of_junctions_di.R:13:36:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L13) *style:* **Variable or function name should be snake_case.**
```r
                                   H_0 = 0.5,
                                   ^~~
```
[R/number_of_junctions_di.R:17:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L17) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(is.infinite(N)) local_k <- H_0
    ^
```
[R/number_of_junctions_di.R:19:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_di.R#L19) *style:* **Put spaces around all infix operators.**
```r
  local_j <- local_k - local_k * (1 - 1 / (2*N) - di)^t
                                           ~^~
```
[R/number_of_junctions_markers.R:1:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L1) *style:* **Lines should not be more than 80 characters.**
```r
#' Calculate the expected total number of junctions in a chromosome, given the distribution of markers
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_markers.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the expected number of junctions after t generations, provided information on the initial heterozygosity, population size, the number of generations since the onset of admixture and the distribution of markers.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_markers.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param marker_distribution A vector containing the position of all markers in Morgan.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions_markers.R:20:41:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L20) *style:* **Variable or function name should be snake_case.**
```r
number_of_junctions_markers <- function(N = Inf,
                                        ^
```
[R/number_of_junctions_markers.R:21:41:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L21) *style:* **Variable or function name should be snake_case.**
```r
                                        H_0 = 0.5,
                                        ^~~
```
[R/number_of_junctions_markers.R:25:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L25) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(length(marker_distribution) < 2) {
    ^
```
[R/number_of_junctions_markers.R:30:6:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L30) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(i in 2:length(marker_distribution)) {
     ^
```
[R/number_of_junctions_markers.R:31:57:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L31) *style:* **Put spaces around all infix operators.**
```r
    di <- marker_distribution[i] - marker_distribution[i-1]
                                                       ~^~
```
[R/number_of_junctions_markers.R:32:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions_markers.R#L32) *warning:* **no visible global function definition for ‘number_of_junctions_di’**
```r
    expected_junctions <- number_of_junctions_di(N, H_0, t, di)
                          ^~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculate the average number of junctions after t generations, provided information on the initial heterozygosity, population size and the number of generations.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param C Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/number_of_junctions.R:13:33:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L13) *style:* **Variable or function name should be snake_case.**
```r
number_of_junctions <- function(N = Inf,
                                ^
```
[R/number_of_junctions.R:14:33:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L14) *style:* **Variable or function name should be snake_case.**
```r
                                R = Inf,
                                ^
```
[R/number_of_junctions.R:15:33:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L15) *style:* **Variable or function name should be snake_case.**
```r
                                H_0 = 0.5,
                                ^~~
```
[R/number_of_junctions.R:28:3:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/number_of_junctions.R#L28) *style:* **Variable or function name should be snake_case.**
```r
  K <- junctions::calc_k(N, R, H_0, C)
  ^
```
[R/RcppExports.R:4:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L4) *style:* **Lines should not be more than 80 characters.**
```r
simulate_backcrossing_cpp <- function(pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:5:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L5) *style:* **Lines should not be more than 80 characters.**
```r
    .Call('_junctions_simulate_backcrossing_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:5:11:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L5) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_simulate_backcrossing_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:5:61:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L5) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_simulate_backcrossing_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
                                                            ^~~~~~~~~~~
```
[R/RcppExports.R:8:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L8) *style:* **Lines should not be more than 80 characters.**
```r
sim_fin_chrom <- function(pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:8:64:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L8) *style:* **Variable or function name should be snake_case.**
```r
sim_fin_chrom <- function(pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R) {
                                                               ^~~~~~~~~~~~~~
```
[R/RcppExports.R:8:86:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L8) *style:* **Variable or function name should be snake_case.**
```r
sim_fin_chrom <- function(pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R) {
                                                                                ^
```
[R/RcppExports.R:9:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L9) *style:* **Lines should not be more than 80 characters.**
```r
    .Call('_junctions_sim_fin_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:9:11:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L9) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_fin_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:9:49:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L9) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_fin_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, seed, R)
                                                ^~~~~~~~~~~
```
[R/RcppExports.R:12:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L12) *style:* **Lines should not be more than 80 characters.**
```r
sim_inf_chrom <- function(pop_size, freq_ancestor_1, run_time, size_in_Morgan, markers, seed) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:12:64:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L12) *style:* **Variable or function name should be snake_case.**
```r
sim_inf_chrom <- function(pop_size, freq_ancestor_1, run_time, size_in_Morgan, markers, seed) {
                                                               ^~~~~~~~~~~~~~
```
[R/RcppExports.R:13:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L13) *style:* **Lines should not be more than 80 characters.**
```r
    .Call('_junctions_sim_inf_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, markers, seed)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:13:11:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L13) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_inf_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, markers, seed)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:13:49:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L13) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_inf_chrom', PACKAGE = 'junctions', pop_size, freq_ancestor_1, run_time, size_in_Morgan, markers, seed)
                                                ^~~~~~~~~~~
```
[R/RcppExports.R:16:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L16) *style:* **Lines should not be more than 80 characters.**
```r
sim_phased_unphased_cpp <- function(pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:17:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L17) *style:* **Lines should not be more than 80 characters.**
```r
    .Call('_junctions_sim_phased_unphased_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:17:11:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L17) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_phased_unphased_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/RcppExports.R:17:59:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L17) *style:* **Only use double-quotes.**
```r
    .Call('_junctions_sim_phased_unphased_cpp', PACKAGE = 'junctions', pop_size, freq_ancestor_1, total_runtime, size_in_morgan, number_of_markers, time_points, seed)
                                                          ^~~~~~~~~~~
```
[R/RcppExports.R:19:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/RcppExports.R#L19) *style:* **Trailing blank lines are superfluous.**
```r

^
```
[R/sim_backcrossing.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_backcrossing.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param size_in_morgan Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_backcrossing.R:11:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_backcrossing.R#L11) *style:* **Lines should not be more than 80 characters.**
```r
#' recorded to be returned at the end of the simulation. If left at -1, ancestry is recorded at every generation (computationally heavy).
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_backcrossing.R:12:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_backcrossing.R#L12) *style:* **Lines should not be more than 80 characters.**
```r
#' @return List with five entries: average_junctions: average number of junctions over time, detected_junctions: average number of detected junctions, given the markers. markers: vector with the locations of the molecular markers, junction_distribution: distribution of junctions per time step average_heterozygosity: average heterozygosity.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_backcrossing.R:26:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_backcrossing.R#L26) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(length(time_points) == 1) {
    ^
```
[R/sim_backcrossing.R:27:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_backcrossing.R#L27) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(time_points == -1) {
      ^
```
[R/sim_fin_chrom.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_fin_chrom.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Individual based simulation of the accumulation of junctions for a chromosome with regularly distributed markers.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_fin_chrom.R:5:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_fin_chrom.R#L5) *style:* **Lines should not be more than 80 characters.**
```r
#' @param morgan Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_fin_chrom.R:9:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_fin_chrom.R#L9) *style:* **Lines should not be more than 80 characters.**
```r
#' @return \item{avgJunctions}{vector of the average number of junctions at time = [0, total_runtime]}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_fin_chrom.R:17:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_fin_chrom.R#L17) *style:* **Remove spaces before the left parenthesis in a function call.**
```r
sim_fin_chrom <- function (pop_size = 100,
                          ^
```
[R/sim_fin_chrom.R:22:28:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_fin_chrom.R#L22) *style:* **Variable or function name should be snake_case.**
```r
                           R = 100) {
                           ^
```
[R/sim_inf_chrom.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_inf_chrom.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Individual based simulation of the accumulation of junctions for a chromosome with an infinite number of recombination sites.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_inf_chrom.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_inf_chrom.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param morgan Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_inf_chrom.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_inf_chrom.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param markers The number of genetic markers superimposed on the chromosome. If markers is set to -1, no markers are superimposed (faster simulation)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_inf_chrom.R:9:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_inf_chrom.R#L9) *style:* **Lines should not be more than 80 characters.**
```r
#' @return \item{avgJunctions}{vector of the average number of junctions at time = [0, total_runtime]}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Individual based simulation of the accumulation of junctions, returning phased and unphased data. Ancestry on both chromosomes of 10 randomly sampled individuals per generations is returned.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:6:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
#' @param size_in_morgan Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:7:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L7) *style:* **Lines should not be more than 80 characters.**
```r
#' @param number_of_markers The number of genetic markers superimposed on the chromosome.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:8:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L8) *style:* **Lines should not be more than 80 characters.**
```r
#' @param time_points vector with time points at which local ancestry has to be recorded to be returned at the end of the simulation. If left at -1, ancestry is recorded at every generation (computationally heavy).
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:10:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L10) *style:* **Lines should not be more than 80 characters.**
```r
#' @return matrix with five columns: [time, individual, marker location, ancestry chromosome 1, ancestry chromosome 2]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/sim_phased_unphased.R:24:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L24) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(length(time_points) == 1) {
    ^
```
[R/sim_phased_unphased.R:25:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/sim_phased_unphased.R#L25) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(time_points == -1) {
      ^
```
[R/unphased_log_likelihood.R:2:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @description Calculates the log likelihood of observing the unphased data, given the population size, initial heterozygosity and time since admixture
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/unphased_log_likelihood.R:3:1:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L3) *style:* **Lines should not be more than 80 characters.**
```r
#' @param local_anc Local_anc can be provided as either matrix with two columns, where the first column represents ancestry on chromosome 1, and the second column represents ancestry on chromosome 2. Ancestry labels used should be [0, 1], where 0 indicates the first ancestor, and 1 indicates the second ancestor. Alternatively, the user can provide a vector indicating whether at the specific marker, the focal individual is homozygous for the first ancestor (0), homozygous for the second ancestor (1) or heterozygous (2).
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/unphased_log_likelihood.R:19:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L19) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(is.matrix(local_anc)) {
    ^
```
[R/unphased_log_likelihood.R:21:21:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L21) *warning:* **no visible global function definition for ‘get_states’**
```r
    local_states <- get_states(local_anc)
                    ^~~~~~~~~~
```
[R/unphased_log_likelihood.R:28:21:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L28) *warning:* **no visible global function definition for ‘single_state’**
```r
    seven_states <- single_state(t = local_time, N = local_pop_size, d = di)
                    ^~~~~~~~~~~~
```
[R/unphased_log_likelihood.R:35:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L35) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(length(t) == 1) {
    ^
```
[R/unphased_log_likelihood.R:46:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L46) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(length(t) > 1) {
    ^
```
[R/unphased_log_likelihood.R:48:8:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/unphased_log_likelihood.R#L48) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    for(i in seq_along(t)) {
       ^
```
[R/util.R:12:5:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L12) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  if(is.matrix(local_anc_matrix)) {
    ^
```
[R/util.R:13:50:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L13) *style:* **Commas should always have a space after.**
```r
    local_anc <- rep(2, length(local_anc_matrix[,1]))
                                                 ^
```
[R/util.R:14:39:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L14) *style:* **Commas should always have a space after.**
```r
    homo_0 <- which(local_anc_matrix[,1] == 0 &
                                      ^
```
[R/util.R:15:42:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L15) *style:* **Commas should always have a space after.**
```r
                      (local_anc_matrix[,1] == local_anc_matrix[,2]))
                                         ^
```
[R/util.R:15:66:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L15) *style:* **Commas should always have a space after.**
```r
                      (local_anc_matrix[,1] == local_anc_matrix[,2]))
                                                                 ^
```
[R/util.R:16:39:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L16) *style:* **Commas should always have a space after.**
```r
    homo_1 <- which(local_anc_matrix[,1] == 1 &
                                      ^
```
[R/util.R:17:42:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L17) *style:* **Commas should always have a space after.**
```r
                      (local_anc_matrix[,1] == local_anc_matrix[,2]))
                                         ^
```
[R/util.R:17:66:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L17) *style:* **Commas should always have a space after.**
```r
                      (local_anc_matrix[,1] == local_anc_matrix[,2]))
                                                                 ^
```
[R/util.R:22:10:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L22) *style:* **Do not place spaces around code in parentheses or square brackets.**
```r
  return( get_states_vector(local_anc))
         ^
```
[R/util.R:22:11:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L22) *warning:* **no visible global function definition for ‘get_states_vector’**
```r
  return( get_states_vector(local_anc))
          ^~~~~~~~~~~~~~~~~
```
[R/util.R:28:6:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L28) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  for(i in 2:length(local_anc)) {
     ^
```
[R/util.R:29:24:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L29) *style:* **Put spaces around all infix operators.**
```r
    left <- local_anc[i-1]
                      ~^~
```
[R/util.R:32:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L32) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 0 && right == 1) all_states[i-1] <- 1
      ^
```
[R/util.R:32:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L32) *style:* **Put spaces around all infix operators.**
```r
    if(left == 0 && right == 1) all_states[i-1] <- 1
                                           ~^~
```
[R/util.R:33:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L33) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 1 && right == 0) all_states[i-1] <- 2
      ^
```
[R/util.R:33:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L33) *style:* **Put spaces around all infix operators.**
```r
    if(left == 1 && right == 0) all_states[i-1] <- 2
                                           ~^~
```
[R/util.R:34:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L34) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 1 && right == 1) all_states[i-1] <- 3
      ^
```
[R/util.R:34:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L34) *style:* **Put spaces around all infix operators.**
```r
    if(left == 1 && right == 1) all_states[i-1] <- 3
                                           ~^~
```
[R/util.R:35:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L35) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 0 && right == 0) all_states[i-1] <- 4
      ^
```
[R/util.R:35:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L35) *style:* **Put spaces around all infix operators.**
```r
    if(left == 0 && right == 0) all_states[i-1] <- 4
                                           ~^~
```
[R/util.R:36:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L36) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 2 && right == 1) all_states[i-1] <- 5
      ^
```
[R/util.R:36:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L36) *style:* **Put spaces around all infix operators.**
```r
    if(left == 2 && right == 1) all_states[i-1] <- 5
                                           ~^~
```
[R/util.R:37:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L37) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 2 && right == 0) all_states[i-1] <- 6
      ^
```
[R/util.R:37:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L37) *style:* **Put spaces around all infix operators.**
```r
    if(left == 2 && right == 0) all_states[i-1] <- 6
                                           ~^~
```
[R/util.R:38:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L38) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 0 && right == 2) all_states[i-1] <- 7
      ^
```
[R/util.R:38:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L38) *style:* **Put spaces around all infix operators.**
```r
    if(left == 0 && right == 2) all_states[i-1] <- 7
                                           ~^~
```
[R/util.R:39:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L39) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 1 && right == 2) all_states[i-1] <- 8
      ^
```
[R/util.R:39:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L39) *style:* **Put spaces around all infix operators.**
```r
    if(left == 1 && right == 2) all_states[i-1] <- 8
                                           ~^~
```
[R/util.R:40:7:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L40) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    if(left == 2 && right == 2) all_states[i-1] <- 9
      ^
```
[R/util.R:40:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L40) *style:* **Put spaces around all infix operators.**
```r
    if(left == 2 && right == 2) all_states[i-1] <- 9
                                           ~^~
```
[R/util.R:47:29:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L47) *style:* **Variable or function name should be snake_case.**
```r
single_state <- function(t, N, d) {
                            ^
```
[R/util.R:48:28:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L48) *style:* **Commas should always have a space after.**
```r
  trans_matrix <- matrix(0,7,7)
                           ^
```
[R/util.R:48:30:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L48) *style:* **Commas should always have a space after.**
```r
  trans_matrix <- matrix(0,7,7)
                             ^
```
[R/util.R:49:28:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                           ^~
```
[R/util.R:49:30:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                            ~^~
```
[R/util.R:49:31:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                              ^
```
[R/util.R:49:33:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                               ~^~
```
[R/util.R:49:40:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                      ~^~
```
[R/util.R:49:43:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Commas should never have a space before.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                         ~^
```
[R/util.R:49:46:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                            ~^~
```
[R/util.R:49:60:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                                          ~^~
```
[R/util.R:49:61:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                                            ^
```
[R/util.R:49:63:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L49) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[1, ] <- c(1 -1/(2*N) - 2*d , 2*d, 0, 0, 0, 1/(2*N), 0)
                                                             ~^~
```
[R/util.R:50:27:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                         ~^~
```
[R/util.R:50:28:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                           ^
```
[R/util.R:50:30:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                            ~^~
```
[R/util.R:50:40:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                      ~^~
```
[R/util.R:50:42:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                        ~^~
```
[R/util.R:50:43:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                          ^
```
[R/util.R:50:45:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                           ~^~
```
[R/util.R:50:58:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                                        ~^~
```
[R/util.R:50:60:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Put spaces around all infix operators.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                                          ~^~
```
[R/util.R:50:61:](https://github.com/thijsjanzen/junctions/blob/3e5849cce378729c23c5a91b83b8fe6a4e53c527/R/util.R#L50) *style:* **Place a space before left parenthesis, except in a function call.**
```r
  trans_matrix[2, ] <- c(1/(2*N), 1 - 3*1/(2*N) - d, d, 2*1/(2*N), 0, 0, 0)
                                                            ^
```


See comment above.


Элэгсэгээр санал болгоход "таний"-ыг "таны" болговол зүгээр юм шиг байна.


@pyphilia, let's call this `OFFLINE_READY_IFRAME` to show that the reason why we want this is to have it "offline".


Cette image fait 15 Mo, il faut absolument la compresser


Hah, thanks. I'll fix that shortly.


@pyphilia, very nice commit! Exactly what I was thinking. Just a couple of minor comments. Thanks!


What's this repo? You're just hijacking our work with a rename? Remove this repo please!


;l;;


You are talking about the GUI, I am talking about the contract. The contract deals in its own units. The GUI does the job of presenting the information in which format is most comfortable or safe.


What's this repo? You're just hijacking our fork of dreamDroid with a rename? Remove this repo please!


Funny thing is I didn't even copy the URLs from there - I just forgot which project I was working on!


Typo: use proper camelCase `mainBaseUrl`


Go does not have uninitialized memory (and undefined behavior in general).
If a variable is not explicitly initialized, it's "zero initialized". So just leave `coverage := 0` as it was before.


Добавил проверку


It's generally better to use arguments that can be read, so for example `b` here is an element, so you should probably call this `baseElement` or something similar. Otherwise I have to infer what `b` is.


If `e` is an element, we generally use `el` or `elem` or `element`.


Добавил


I would call the argument `iframe` as `i` is usually an iterator.


Thank you @okiehsch.


Effectivement, avec une extension ça fonctionne mieux ... J'y penserais dès le départ la prochaine fois.
Merci de ta vigilance !


Minor naming improvement (feel free to take it or leave it):

`addSrcdocWithContentToIframe`
`addSrcdocWithContentToIframes`


@FloridaStream can I talk to u privately ?


чтобы удалить сам указатель.


` //{ src: baseUrl + '/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }`


nice catch


Minor naming improvement (feel free to take it or leave it):

replaceSrcWithSrcdocInIframe


Add code


Was this tested? Does this work? It doesn't make sense to compare *strings*, the variables at least would make more sense


@pyphilia, good commit! Left some minor comments in there.


This is older one will you update it


`motherless.com` broken by the same filter
https://forums.lanik.us/viewtopic.php?p=147387#p147387


I agree. @nbianca can you unconfuse this?


PR үүсгээрэй 👍

On Thu, May 9, 2019, 19:56 Jagaa <notifications@github.com> wrote:

> Элэгсэгээр санал болгоход "таний"-ыг "таны" болговол зүгээр юм шиг байна.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/reactjs/mn.reactjs.org/commit/6c7b09556b16fe92bf3e88aa4ca268c80e4c90bc#commitcomment-33472060>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABLSPUARBQ2CVI4NTQCPXLPUQGQDANCNFSM4HLZZWLQ>
> .
>


Do not clutter `rpc` namespace, but do it for a global namespace in an innocent application...


Typo: nt → int
This breaks code.


Hello, how can I get this info the current released version of PF-Extensions. Or is there a way to somehow override the hook implementation.
I already tried:
`Handsontable.hooks.remove('beforeKeyDown', PrimeFaces.widget.ExtSheet.handleHotBeforeKeyDown, $hot);`

Then add this updated function as a callback to this hook:
`Handsontable.hooks.add('beforeKeyDown', SHEET_EXTENDER.handleHotBeforeKeyDown, $hot);`

Where SHEET_EXTENDER is my global variable holding the imeplmentation.

Thanks in advance


Добавил проверку.


[inst/app/ui.R:3:1:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L3) *style:* **Variable and function names should be all lowercase.**
```r
shinyUI(function(request) {
^~~~~~~
```
[inst/app/ui.R:4:3:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L4) *style:* **Variable and function names should be all lowercase.**
```r
  fluidPage(
  ^~~~~~~~~
```
[inst/app/ui.R:6:5:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L6) *style:* **Variable and function names should be all lowercase.**
```r
    titlePanel(tags$head(
    ^~~~~~~~~~
```
[inst/app/ui.R:11:9:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L11) *style:* **Variable and function names should be all lowercase.**
```r
    )), uiOutput("title"),
        ^~~~~~~~
```
[inst/app/ui.R:13:5:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L13) *style:* **Variable and function names should be all lowercase.**
```r
    sidebarPanel(
    ^~~~~~~~~~~~
```
[inst/app/ui.R:14:7:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L14) *style:* **Variable and function names should be all lowercase.**
```r
      uiOutput("pick_level1"),
      ^~~~~~~~
```
[inst/app/ui.R:15:7:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L15) *style:* **Variable and function names should be all lowercase.**
```r
      uiOutput("pick_level2"),
      ^~~~~~~~
```
[inst/app/ui.R:16:7:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L16) *style:* **Variable and function names should be all lowercase.**
```r
      uiOutput("pick_level3")
      ^~~~~~~~
```
[inst/app/ui.R:18:5:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L18) *style:* **Variable and function names should be all lowercase.**
```r
    mainPanel(
    ^~~~~~~~~
```
[inst/app/ui.R:19:7:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L19) *style:* **Variable and function names should be all lowercase.**
```r
      tabsetPanel(
      ^~~~~~~~~~~
```
[inst/app/ui.R:20:9:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L20) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_overview"), uiOutput("make_overview")),
        ^~~~~~~~
```
[inst/app/ui.R:20:18:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L20) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_overview"), uiOutput("make_overview")),
                 ^~~~~~~~
```
[inst/app/ui.R:20:46:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L20) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_overview"), uiOutput("make_overview")),
                                             ^~~~~~~~
```
[inst/app/ui.R:21:9:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L21) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_table"), uiOutput("make_table")),
        ^~~~~~~~
```
[inst/app/ui.R:21:18:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L21) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_table"), uiOutput("make_table")),
                 ^~~~~~~~
```
[inst/app/ui.R:21:43:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L21) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_table"), uiOutput("make_table")),
                                          ^~~~~~~~
```
[inst/app/ui.R:22:9:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_map"), uiOutput("pick_map"), uiOutput("plot_map")),
        ^~~~~~~~
```
[inst/app/ui.R:22:18:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_map"), uiOutput("pick_map"), uiOutput("plot_map")),
                 ^~~~~~~~
```
[inst/app/ui.R:22:41:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_map"), uiOutput("pick_map"), uiOutput("plot_map")),
                                        ^~~~~~~~
```
[inst/app/ui.R:22:63:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L22) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_map"), uiOutput("pick_map"), uiOutput("plot_map")),
                                                              ^~~~~~~~
```
[inst/app/ui.R:23:9:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L23) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_hist"), uiOutput("plot_histogram"))
        ^~~~~~~~
```
[inst/app/ui.R:23:18:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L23) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_hist"), uiOutput("plot_histogram"))
                 ^~~~~~~~
```
[inst/app/ui.R:23:42:](https://github.com/areedv/shinymap/blob/4a3265ae4933c9761d8db21e74fbd0fa67330509/inst/app/ui.R#L23) *style:* **Variable and function names should be all lowercase.**
```r
        tabPanel(uiOutput("title_hist"), uiOutput("plot_histogram"))
                                         ^~~~~~~~
```


Yes you're right, it has been fixed :+1:


Both Program constructor and saveFile can throw invalid_argument exception (constructor in case of invalid LLVM file, saveFile in case of invalid output file).


console logs


Also added configurable number of frames to store `img_store_cnt = config['store']`


This should NOT mention VitalQIP anywhere in the source, even comments/readme.
I assume the source for the automation test suite still contains this string


@frankymartinES the ValideCoreTest is not useful for you as it is only a developer tool.

I suggest you upgrade to PS 1.6.1.24 using the 1-click upgrade module instead of modifying your code as this can bring more issues. You will also benefit from the latest bugfixes this way.
You can also get help on the community forum 😉 https://prestashop.com/forums Check you do not have an override that already modifies your Validate.php file which would prevent this patch from working.


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

* https://server.makergyt.now.sh
* https://server-git-master.makergyt.now.sh


Euh.. I failed to save the file before committing, so.... The sigma_dyn part did not go through....


Hibernate permet :
SaveOrUpdate(copy);
Mais c'est propre à Hibernate et pas dans la spec JPA


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

* https://nodejs.pabloabal.now.sh
* https://nodejs-git-master.pabloabal.now.sh


Successfully aliased the URL <https://vue-paintable-a85k2vtf6.now.sh> to the following aliases.

* https://vue-paintable.now.sh
* https://vue-paintable.ph1p.now.sh
* https://vue-paintable-git-master.ph1p.now.sh


Thanks, fixed now. Sorry about this!


64bit Requirement


Damn. Thanks for checking this out. Removed them.


> 这题我做法比较暴力，懒得用 pell equation 了……
>
> 注意到 (b / 2, h, l) 是一个 primitive Pythagorean triple ，用 https://www.wikiwand.com/en/Pythagorean_triple 生成所有可能的 triple，然后注意到 b/2 \approx h ，所以找合适的参数使得这两个数相近。
>
> 为了让 L18 发生，a 和 b 得满足一些限制。考虑 L12 是否可能发生，我们可以得到两种不同的限制，对应的 L30 和 L34。
>
> 进一步思考的话发现，L12 必须为 true，否则 v 为偶数，u * 2 - v 不可能为 1/-1，所以只有一个 case 是有用的。

谢谢大佬那么晚还愿意回复我。由于我思考了很久还是依旧卡在了一个地方，所以再次斗胆来询问一下大佬。我知道大佬看到这个回复应该是早上了，所以容我说一声大佬早上好。考虑L12是否可能发生也就是指考虑u=v时，b和a的关系嘛？当u=v时，即a^2-b^2=2ab时，b和a的关系我算出来是b = a / (1±sqrt(2)）。对于b = 2 * a / (sqrt(5) + 1)和b = a / (sqrt(5) + 2)这两个关系式如何推出，仍然百思不得其解。如果大佬不嫌弃，可否再次为我答疑解惑一番？多谢大佬！


Super fun to watch S(20, 10) play the fast time control. Want to try it no matter how dubious.


Hi Michael, this line is needed, because it does not compile anymore. Kind regards, Marco Visser,Firely


Remove reference to VitalQIP in README.md


Разве эта строчка не должна выглядеть вот так (также как в методе ниже):
(new Message<string>(classCode + "|" + secCode + "|" + paramName, "getParamEx")), timeout).ConfigureAwait(false);
?


Successfully aliased the URL <https://vue-paintable-bijyjwgit.now.sh> to the following aliases.

* https://vue-paintable.now.sh
* https://vue-paintable.ph1p.now.sh
* https://vue-paintable-git-master.ph1p.now.sh


🔥 Device tests completed (Failed) on TvOS on [Azure DevOps](https://dev.azure.com/devdiv/DevDiv/_build/index?buildId=2661910)(TvOS): [Html Report](http://xamarin-storage//jenkins-results/tests/index.html) 🔥

# Tests failed catastrophically (no summary found)


实际上这个是gps坐标转高德坐标，搞错了


怎么使用这些脚本啊


@fuzetsu [here it is](https://github.com/barneycarroll/patchinko/pull/27) :)


Now could not deploy this pull request since the `now.json` file explicitly sets the "type" as `docker`.
However, the repo is missing a `Dockerfile`.

Ensure a `Dockerfile` is committed to this repo.


Revised


Dziwne że teraz jakieś `index js` a kiedyś `css`.


Que buen trabajo sigue así no pares no te detengas nunca jaja vamos a suspender todos chaonomas

> [`asdsadasd`]([url]([url]([url]([url]([url]([url](url)))))))

> SADASD

- asdsda
sad
sadsa
dsad

- [ ] sad @ads # #


Won't work on centuries edges (i.e. expireYear=2100 and currYear=2090)
Those cases would require 1 more digit, to be punctually discovered.


Hei there is typo here


Final Version


Its way easier than that... Just add this JavaScript to override the Sheet Components handleKeyDown with your own.  In the below example 'mySheet' is your pe:sheet widgetVar="mySheet".

```javascript
PF('mySheet').handleHotBeforeKeyDown= function(e) {
    console.log('Key pressed!');
}
```


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

* https://client.makergyt.now.sh
* https://client-git-master.makergyt.now.sh


remove line 11!


Here's total time to fabricate things:

```
[:user, 60.32950007999999]
[:post, 106.78616517900005]
[:tag, 1.2733399420000013]
[:tag_group, 0.458234242]
[:post_revision, 0.5705165669999999]
[:admin, 18.179755873999973]
[:secondary_email, 0.04980067800000001]
[:group, 2.892016961999999]
[:topic_web_hook, 0.164463704]
[:web_hook, 0.03983023100000001]
[:topic, 44.696667950000034]
[:moderator, 3.410352648999999]
[:flag_web_hook, 0.008246402]
[:tag_web_hook, 0.007978851]
[:group_web_hook, 0.007846487]
[:category_web_hook, 0.007495066]
[:category, 38.52733367600002]
[:user_web_hook, 0.006018024]
[:queued_post_web_hook, 0.006082758]
[:reviewable_queued_post, 2.2889724339999997]
[:reviewable_web_hook, 0.005493646]
[:reviewable, 5.547849401]
[:wildcard_web_hook, 0.007903434]
[:private_message_post, 6.362901158000001]
[:theme, 20.48765438899999]
[:coding_horror, 2.9226117399999993]
[:post_with_external_links, 1.090418574]
[:upload, 4.5777652390000005]
[:private_message_topic, 6.161884354000003]
[:post_detail, 0.072989919]
[:group_history, 0.225646584]
[:topic_timer, 1.003068966]
[:private_category, 1.5982719300000001]
[:permalink, 0.027229428]
[:reviewable_queued_post_topic, 0.9075475210000001]
[:api_key, 0.03961870199999999]
[:evil_trout, 0.831825428]
[:inactive_user, 0.186172056]
[:flag, 1.0572123930000001]
[:watched_word, 0.143726155]
[:user_field, 0.161638628]
[:readonly_user_api_key, 0.17518317]
[:user_avatar, 0.30797684299999994]
[:email_log, 0.28145192200000013]
[:upload_s3, 0.270024308]
[:optimized_image, 0.18696570899999998]
[:ignored_user, 0.142451575]
[:muted_user, 0.014857799]
[:moderator_post, 0.053125291]
[:like, 0.0]
[:staged, 0.41591115200000006]
[:anonymous, 0.12392219799999998]
[:topic_user, 0.006795369]
[:walter_white, 0.17205205099999998]
[:notification, 3.0227365269999997]
[:color_scheme_color, 0.25093849599999996]
[:color_scheme, 0.13556787399999998]
[:incoming_email, 0.041115123999999996]
[:posted_notification, 0.033217152]
[:private_message_notification, 0.34345929]
[:basic_reply, 0.17200073200000002]
[:replied_notification, 0.016301410000000002]
[:post_with_uploaded_image, 0.27800594300000003]
[:post_with_image_urls, 0.16613646799999998]
[:post_with_long_raw_content, 0.149090401]
[:user_second_factor_totp, 0.08986694300000002]
[:badge, 0.14666676099999998]
[:email_token, 0.5906611960000001]
[:invite, 1.108283814]
[:post_with_large_image, 0.293519317]
[:post_with_unsized_images, 0.074694609]
[:post_with_large_image_on_subfolder, 0.066388463]
[:post_with_large_image_and_title, 0.068745078]
[:topic_embed, 0.55068373]
[:incoming_link, 0.18853391000000003]
[:email_change_request, 0.002604449]
[:screened_ip_address, 0.10501179999999999]
[:user_second_factor_backup, 0.042109548]
[:trust_level_4, 0.37253950799999996]
[:shared_draft, 0.013882868]
[:deleted_topic, 0.298412412]
[:category_group, 0.139732655]
[:group_user, 0.06624870299999999]
[:newuser, 0.27821314599999997]
[:leader, 0.10727673600000001]
[:diff_category, 0.08696198]
[:topic_tag, 0.0279366]
[:inactive_web_hook, 0.003483727]
["topic_web_hook", 0.006227844]
["post_web_hook", 0.005451297]
["user_web_hook", 0.004941536]
["group_web_hook", 0.004990586]
["category_web_hook", 0.00564475]
["tag_web_hook", 0.005058382]
["flag_web_hook", 0.006737034]
["queued_post_web_hook", 0.006715399]
["reviewable_web_hook", 0.006323136]
[:active_user, 0.42607387]
[:reviewable_flagged_post, 0.270711301]
[:web_crawler_request, 0.0]
[:banner_topic, 0.068915653]
[:search_log, 0.008235756]
[:post_reply_key, 0.4474435349999999]
[:mailinglist_mirror_category, 0.336471807]
[:skipped_email_log, 0.007945266999999999]
[:screened_email, 0.016313348]
[:link_category, 0.45754464300000003]
[:single_sign_on_record, 0.07427415700000001]
[:embeddable_host, 3.4472185509999997]
[:topic_allowed_group, 0.007236231]
[:topic_allowed_user, 0.00214977]
[:user_with_secondary_email, 1.5482427890000003]
[:post_with_youtube, 0.059879013]
[:screened_url, 0.007915333]
[:group_request, 0.010433519]
[:public_group, 0.03248325]
[:closed_topic, 0.067562664]
[:post_via_email, 0.024432671]

Finished in 14 minutes 6 seconds (files took 8.26 seconds to load)
```

This is for top-level fabrications, so that if a post fabricates a user, the user fabrication is attributed to the post as well instead of being added to user.


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

* https://xnix.me
* https://xnixme.xueseason.now.sh
* https://xnixme-git-master.xueseason.now.sh


I am a newbie, thanks you all.


wouldn't replacing `length` by `count/size` fix it? `length` will always load the full query where `count` will always `COUNT()` and `size` will `COUNT()` if not loaded and take the size of the array if loaded.


Successfully aliased the URL <https://ohjelmointi-19-dafqmxknoc.now.sh> to the following alias.

* https://ohjelmointi-19.mooc.fi


Successfully aliased the URL <https://xnixme-9x23smsuf.now.sh> to the following aliases.

* https://xnix.me
* https://xnixme.xueseason.now.sh
* https://xnixme-git-master.xueseason.now.sh


Successfully aliased the URL <https://server-8n1hvypte.now.sh> to the following aliases.

* https://server.makergyt.now.sh
* https://server-git-master.makergyt.now.sh


good luck, it wouldn't build for me anyway (didn't try too hard)


Bei der Anpassung/Heuristic ging es mir lediglich darum, die Werte, die in menuconfig gesetzt werden, so weit zu korrigieren, dass sie konsistent mit den von AVM veröffentlichten Quellen sind.

Wir haben z.B. lange Zeit angenommen, dass bei den 7560/7590 der Bereich lediglich 64 KB groß sei. Dies ist in der Tat die Größe, die ausreicht, um die für diese Boxen relevanten Daten/Tabellen zu halten. Der im Quellcode definierte Bereich ist jedoch 96 KB (bis 06.8x) bzw. 160 KB (ab 06.9x) groß. Lediglich die 7580 braucht tatsächlich mehr als 64 KB. Im Quellcode unterscheidet AVM jedoch in keinster Weise zwischen den Boxen und setzt stur für alle Boxen die gleiche Größe. Das hat für Freetz insofern einen Vorteil, dass man dann doch die Quellen einer GRX5-Box auch für allen anderen GRX5-Boxen verwenden kann.

Alles, was hinten nicht benötigt wird, wird mit 0 gepadded. Genau darauf basiert auch die Heuristic.

Die Heuristic ist gar nicht live-geschaltet, die ist eher als Unterstützung gemeint für die Boxen, für die (noch) keine Quellen veröffentlicht sind. Die endgültige Quelle für den Wert werden vermutlich weiterhin die veröffentlichten Kernel-Quellen bleiben.


[bot] 自动构建 [auto-dragalia-2dfc77c3.zip](https://circleci.com/gh/NateScarlet/auto-dragalia/197/artifacts/0/home/circleci/project/artifacts/auto-dragalia-2dfc77c3.zip)


last 2 pushes have been tested with the following actions:

speedto(1000);
abbdefinetool(mytool,31.792631019,0,229.638935148,0.945518576,0,0.325568154,0,1,0,0,1);
abbattachtool(mytool);
MotionMode(Joint);
MoveToRobTarget(-300,-400,20,0,0.887010833,0.461748613,0,-2,-1,0,1);
MotionMode(Linear);
MoveToRobTarget(-300,-400,-30,0,0.887010833,0.461748613,0,-2,-1,0,1);
MoveToRobTarget(-300,-400,20,0,0.887010833,0.461748613,0,-2,-1,0,1);
MovecToRobTarget(350,-250,50,0,0.3007058,0.95371695,0,0,0,0,0,400,300,20,0,-0.422618262,0.906307787,0,0,-1,0,1);
MotionMode(Linear);
MoveToRobTarget(400,300,-30,0,-0.422618262,0.906307787,0,0,-1,0,1);
MoveToRobTarget(400,300,20,0,-0.422618262,0.906307787,0,0,-1,0,1);
MotionMode(Joint);
MoveToRobTarget(547.330665099,0,451.64730631,0.190808996,0,0.981627183,0,0,0,0,0);
MotionMode(Joint)
MoveToRobTarget(-400,-500,80,0,0.887010833,0.461748613,0,-2,0,-1,0);
MotionMode(Linear);
MoveToRobTarget(-400,-500,20,0,0.887010833,0.461748613,0,-2,0,-1,0);
MoveToRobTarget(-400,-500,80,0,0.887010833,0.461748613,0,-2,0,-1,0);
MotionMode(Joint);
MoveToRobTarget(350,-250,100,0,0.3007058,0.953716951,0,-1,-1,0,1);
MoveToRobTarget(500,400,80,0,-0.422618262,0.906307787,0,0,-2,1,1):
MotionMode(Linear);
MoveToRobTarget(500,400,20,0,-0.422618262,0.906307787,0,0,-1,0,1);
MoveToRobTarget(500,400,80,0,-0.422618262,0.906307787,0,0,-2,1,1);
MotionMode(Joint);
MoveToRobTarget(-400,-500,20,0,0.887010833,0.461748613,0,-2,-1,0,1);
MotionMode(Linear);
MoveToRobTarget(-400,-500,-30,0,0.887010833,0.461748613,0,-2,-1,0,1);
MoveToRobTarget(-400,-500,20,0,0.887010833,0.461748613,0,-2,-1,0,1);
MovecToRobTarget(350,-250,100,0,0.3007058,0.953716951,0,-1,-1,0,1,500,400,20,0,-0.422618262,0.906307787,0,0,-1,0,1);
MoveToRobTarget(500,400,-30,0,-0.422618262,0.906307787,0,0,-1,0,1);
MoveToRobTarget(500,400,20,0,-0.422618262,0.906307787,0,0,-1,0,1);
MotionMode(Joint);
MoveToRobTarget(547.330665099,0,451.64730631,0.190808996,0,0.981627183,0,0,0,0,0);


한번 해보니 정말 고쳐야 할 점이 많군요! 후후... @vimboy


Het I tried the same but it creating a blank video for me, not able to find what happen, are you aware about the similar kind of issue


色取得前後に問題があるとのことでしたが、スタート待機時ループ、走行時ループ共に最初に尻尾の角度を設定しています。色取得時の処理は以下のようにしてみてはどうでしょうか。実例としてわかりやすく紹介するために黒を取得すると仮定した処理です。
```C
    ev3_lcd_draw_string("BLACK", 0, CALIB_FONT_HEIGHT*2); /* 取得する色をLCDに表示 */
    while(1){
      tail_control(TAIL_ANGLE_STAND_UP);
      if(ev3_touch_sensor_is_pressed(touch_sensor) == 1){
        ev3_speaker_set_volume(25);
        ev3_speaker_play_tone(880,125);
        BLACK = ev3_color_sensor_get_reflect(color_sensor);
        tslp_tsk(1000);
        break;/*タッチセンサーが押された*/
      }
      tslp_tsk(10);
    }

```


https://thegrinpool.com/ grin
https://ethashpool.com/ eth


There is more visual issues with rendering and previews. For example, scaling with filtering acts different for filters preview, main window preview, projector preview etc.
The test file is from obs forum: https://obsproject.com/forum/attachments/testalpha1-png.13853/  (post: https://obsproject.com/forum/threads/white-lines-on-certain-pngs.44786/#post-201648). Enlarge it in OBS studio and set _Scale Filtering_ bilinear, for example), then make Projector of the source or open Filters dialog. There will be difference in views (depending of Source, Scene or Preview projector/filters dialog opened).

Yeah, it is not about this PR.


Can you sort that by decreasing time spent fabricating things?


Sorry, it is my fault. It should be wrap "b" [].


oh no lol, i knew that. anyway, figured out how to use it


In Drasil.GlassBR.Body there are two options.

- find every intance of items in the import list and add ```Doc.```  in front.
<img width="591" alt="Screen Shot 2019-05-09 at 8 33 26 AM" src="https://user-images.githubusercontent.com/28261339/57453748-291b5100-7235-11e9-9c31-30ad4fc9c7e8.png">

OR

- Find new instances of srs and add ```Drasil.GlassBR.Body.``` in front and also add ```Doc.``` in front of old instances of srs only. Avoiding adding ```Doc.``` in front of all of the items in the list.

Which would you prefer I do?


Successfully aliased the URL <https://xnixme-2g05vt9tf.now.sh> to the following aliases.

* https://xnix.me
* https://xnixme.xueseason.now.sh
* https://xnixme-git-master.xueseason.now.sh


s


remove this code
`      //{ src: baseUrl + '/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } },
      // MathJax
      { src: baseUrl + '/reveal.js/plugin/math/math.js', async: true }`


Successfully aliased the URL <https://react-app-template-m3gp8rsqw.now.sh> to the following aliases.

* https://react-app-template.now.sh
* https://react-app-template.ivandimanov.now.sh
* https://react-app-template-git-master.ivandimanov.now.sh


"Programs" would also be my suggestions to make it more accessible, but as you said it would not be correct. Therefore, I think it can stay this way.


It works! 👍


I can edit this on my branch.


类


Yeah already, just overlooked.


So, 41% of the time was spend fabricating things for me. Here are the most expensive ones:
```
(106.78616517900005, u'post')
(60.32950007999999, u'user')
(44.696667950000034, u'topic')
(38.52733367600002, u'category')
(20.48765438899999, u'theme')
(18.179755873999973, u'admin')
(6.362901158000001, u'private_message_post')
(6.161884354000003, u'private_message_topic')
(5.547849401, u'reviewable')
(4.5777652390000005, u'upload')
(3.4472185509999997, u'embeddable_host')
(3.410352648999999, u'moderator')
(3.0227365269999997, u'notification')
(2.9226117399999993, u'coding_horror')
(2.892016961999999, u'group')
(2.2889724339999997, u'reviewable_queued_post')
(1.5982719300000001, u'private_category')
(1.5482427890000003, u'user_with_secondary_email')
(1.2733399420000013, u'tag')
```


I applied the suggested changes.
Thanks for the review!


Explicitly import _check_size.
Was not found otherwise


muda biblioteca dbf


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

* https://timhall.dev
* https://timhalldev.timhall.now.sh
* https://timhalldev-git-master.timhall.now.sh


Great!


Comment to this line got lost. Is it already irrelevant?


Yes, I think this article can proceed to testing.
Thanks for the review!


`toPlainString` call is quite dangerous:
```
scala> timed(BigDecimal("1e10000000").toString)
Elapsed time (ms): 0
res5: String = 1E+10000000

scala> timed(BigDecimal("1e10000000").bigDecimal.toPlainString)
Elapsed time (ms): 38
res6: String = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
```


Full screen window feature included


Would `.toEngineeringString` be the better choice then?


Yeah I saw… I changed it myself :)

> On 9 May 2019, at 14:11, FPABacks <notifications@github.com> wrote:
>
> Euh.. I failed to save the file before committing, so.... The sigma_dyn part did not go through....
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub <https://github.com/FPABacks/RVMC/commit/743e134e179ae3357e5586b78a03a0ad4963b7ac#commitcomment-33472231>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABAADR67EYWHOTCUPX3YA5LPUQIGRANCNFSM4HLZ4XLA>.
>


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

* https://server.makergyt.now.sh
* https://server-git-master.makergyt.now.sh


Congrats!


This addresses #1


A


Are we able to log based on the attributes `Fabricate` is called with? I think that will be more interesting to help us see if we're fabricating basic objects multiple times.


I would prefer `toString` instead:
```
scala> timed(BigDecimal("1e10000000").bigDecimal.toEngineeringString)
Elapsed time (ms): 0
res7: String = 10E+9999999
```


Make it `private` so that inheriting contracts can only change it through `changeOwner` function.


Validate input parameters.


修改about页面、添加books链接


Ok, `toString` it is then.
Thank you once again!


Yes, in any case we would eat space on TC regardless of proper 'java.io.tmpdir' on TC


Add a parameter so you can initialize `isRunning` with a certain value (maybe you want to deploy a contract in a paused state).


Remove the `require`, you already have your `onlyIfRunning` modifier.


having an error-

python beatDetector.py
  File "beatDetector.py", line 10
    ui: ui.UserInterface
      ^
SyntaxError: invalid syntax


I would add the `kill` function to this contract.


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

* https://express.ownercookiesinc.now.sh
* https://express-git-master.ownercookiesinc.now.sh


[minor] Quite strange prefix, imho. And project.name may contain illegal symbols, I guess.
I'd suggest to get a full task name (`project:subproject:task`) and sanitize the name.


That's quite easy to answer based on the code. Just by grepping for the closing paren as well.

```
$ grep -ohP "Fabricate\(:\K(\w+)\)" $(git ls-files spec | grep _spec.rb$) | sort | uniq -c | sort -n | tail -n 10
     59 coding_horror)
     63 tag)
     66 upload)
     97 group)
    102 moderator)
    170 category)
    194 topic)
    197 post)
    305 admin)
    870 user)
```


@tt12566
hey man,
sorry to keep you waiting! I've been busy lately.
I don't remember about the overlapping community thing, but I will try to fix the SparseMatrix library first thing tomorrow,
cheers :clinking_glasses:


Another option is a custom and more efficient serializer like [this](https://github.com/plokhotnyuk/jsoniter-scala/blob/fd661126cdd3c793b184873740d181629070b4f0/jsoniter-scala-core/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonWriter.scala#L866-L913).


이거 없앴어야 했는데 까먹었음.
더미데이터를 소수점으로 잡았었고, round를 이용해서 정수로 변환할랬는데
더미데이터 자체를 정수로 바꿔버렸음.


I think it makes sense to wrap it into try/catch, and contiue with logging in case of IOException.


Congratulations!!


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

* https://pablo.life
* https://pablolife.pablopunk.now.sh
* https://pablolife-git-master.pablopunk.now.sh


I will try to update but it's gone take some time. Feel free to update or
add features if you're interested.

On Thu, May 9, 2019 at 8:06 AM KadivetiJayaraj <notifications@github.com>
wrote:

> This is older one will you update it
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/rpadma/Trip-Planner/commit/db5926855aa2abb5cac6ee1f4ec2bae46653b6ef#commitcomment-33472170>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABHVM3ZC632FIENSD37YVLTPUQHTTANCNFSM4HLZ3UAQ>
> .
>


Yes, there's certainly optimization potential over the default `toString`.
For now the latter will though... :)


O what I meant was `Fabricate(:post)` vs `Fabricate(:post, wiki: true)`. Because if we're calling `Fabricate(:post)` 100 times, it might make sense to have a `Fabricate(:post)` fixture by default.


Istotny błąd : punktacja po przejściu "po przerwie" z definicji nie zależy od kosztu substytucji


`line-height`가 2번 들어있음!


zbyt skąpy komentarz dokumentujący. Taki komentarz powinien służyć jako "help" do funkcji


Math.round 方法获取随机值，最大和最小的那个数随机到的概率比其它数小一半


사용하지 않는 태그까지 리셋할 필요는 없음!


@alexfornuto that would be possible but their config file in the custom upstream will be a bit messy because of the conditionals for each of the domains that they maintain, pushed another set of improvements, please check if that works for that doc


There's literally no need for running a desktop app.
Such operation simply runs a new deadbeef process without arguments, which triggers the same sendmessage code.


Yeah, the regex is looking for that closing paren so that it only matches when Fabricate is called with one argument.


Anyone should be able to split an amount between 2 other people, not `onlyOwner`.


Successfully aliased the URL <https://frantic-factory-7rqywtuxt.now.sh> to the following aliases.

* https://frantic-factory.sneyed.now.sh
* https://frantic-factory-git-master.sneyed.now.sh


brak komentarzy dokumentujących, lub komentarze zbyt skąpe (powinny służyć jako |help| do funkcji)


Please proceed to writing some test scenarios.


Atualizando