[R/ingoing-contact-chain.R:189:46:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/ingoing-contact-chain.R#L189) *style:* **Commas should always have a space after.**
```r
              return(length(setdiff(x@source,x@root)))
                                             ^
```
[R/network-structure.R:135:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-structure.R#L135) *style:* **Lines should not be more than 80 characters.**
```r
              i <- tmp[seq_len(length(tmp) - 1)] != tmp[seq_len(length(tmp))[-1]]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:248:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L248) *style:* **Lines should not be more than 80 characters.**
```r
                     inDays = as.integer(x@ingoingContacts@tEnd - x@ingoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:251:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L251) *style:* **Lines should not be more than 80 characters.**
```r
                     outDays = as.integer(x@outgoingContacts@tEnd - x@outgoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:254:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L254) *style:* **Lines should not be more than 80 characters.**
```r
                     ingoingContactChain = IngoingContactChain(x@ingoingContacts),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:255:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L255) *style:* **Lines should not be more than 80 characters.**
```r
                     outgoingContactChain = OutgoingContactChain(x@outgoingContacts))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:261:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L261) *style:* **functions should have cyclomatic complexity of less than 15, this has 38.**
```r
setMethod("NetworkSummary",
^
```
[R/network-summary.R:315:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L315) *style:* **Lines should not be more than 80 characters.**
```r
              ## so test that root is a integer the same way as binom.test test x
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:323:20:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L323) *style:* **Only use double-quotes.**
```r
              stop('invalid class of root')
                   ^~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:331:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L331) *style:* **Lines should not be more than 80 characters.**
```r
              if (!all(is.null(inBegin), is.null(inEnd), is.null(outBegin), is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:332:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L332) *style:* **Lines should not be more than 80 characters.**
```r
                  stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to NetworkSummary")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:343:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L343) *style:* **Lines should not be more than 80 characters.**
```r
              ## Test that days is a nonnegative integer the same way as binom.test test x
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:345:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L345) *style:* **Lines should not be more than 80 characters.**
```r
              if (any(is.na(days) | (days < 0)) || max(abs(days - daysr)) > 1e-07) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:365:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L365) *style:* **Lines should not be more than 80 characters.**
```r
          } else if (all(!is.null(inBegin), !is.null(inEnd), !is.null(outBegin), !is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:370:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L370) *style:* **Lines should not be more than 80 characters.**
```r
                  stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to NetworkSummary")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:373:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L373) *style:* **Lines should not be more than 80 characters.**
```r
              stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to NetworkSummary")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:456:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L456) *style:* **Lines should not be more than 80 characters.**
```r
              stop("root, inBegin, inEnd, outBegin and outEnd must have equal length")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:468:24:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L468) *style:* **Put spaces around all infix operators.**
```r
          contact_chain<- .Call("networkSummary",
                      ~^
```
[R/network-summary.R:469:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L469) *style:* **Lines should not be more than 80 characters.**
```r
                                as.integer(factor(x$source, levels = levels(nodes))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:470:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L470) *style:* **Lines should not be more than 80 characters.**
```r
                                as.integer(factor(x$destination, levels = levels(nodes))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:472:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L472) *style:* **Lines should not be more than 80 characters.**
```r
                                as.integer(factor(root, levels = levels(nodes))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:489:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L489) *style:* **Lines should not be more than 80 characters.**
```r
                            ingoingContactChain = contact_chain[["ingoingContactChain"]],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/network-summary.R:490:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/network-summary.R#L490) *style:* **Lines should not be more than 80 characters.**
```r
                            outgoingContactChain = contact_chain[["outgoingContactChain"]]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/out-degree.R:119:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/out-degree.R#L119) *style:* **Lines should not be more than 80 characters.**
```r
##'     Get the OutDegree for a data.frame with movements, see details and examples.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/outgoing-contact-chain.R:67:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/outgoing-contact-chain.R#L67) *style:* **Lines should not be more than 80 characters.**
```r
##'     The \code{\link{OutgoingContactChain}} of the root within the time-interval
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/outgoing-contact-chain.R:77:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/outgoing-contact-chain.R#L77) *style:* **Lines should not be more than 80 characters.**
```r
##'     Get the OutgoingContactChain for a data.frame with movements, see examples.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/outgoing-contact-chain.R:137:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/outgoing-contact-chain.R#L137) *style:* **Lines should not be more than 80 characters.**
```r
                  stop("Unable to determine OutgoingContactChain for ingoing contacts")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/outgoing-contact-chain.R:140:51:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/outgoing-contact-chain.R#L140) *style:* **Commas should always have a space after.**
```r
              return(length(setdiff(x@destination,x@root)))
                                                  ^
```
[R/plot.R:82:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/plot.R#L82) *style:* **Lines should not be more than 80 characters.**
```r
              tree$ingoing$bg <- ifelse(tree$ingoing$level > 0, "white", "black")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/plot.R:95:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/plot.R#L95) *style:* **Lines should not be more than 80 characters.**
```r
              tree$outgoing$bg <- ifelse(tree$outgoing$level > 0, "gray", "black")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/plot.R:107:64:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/plot.R#L107) *style:* **Commas should always have a space after.**
```r
                  vertices <- rbind(vertices, tree$outgoing[-1,])
                                                               ^
```
[R/report.R:30:8:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L30) *style:* **Place a space before left parenthesis, except in a function call.**
```r
    for(i in seq_len(nrow(contacts))) {
       ^
```
[R/report.R:35:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L35) *style:* **Lines should not be more than 80 characters.**
```r
                   paste(rep("<td> </td>", 2L * (contacts$distance[i] - 1L)), collapse = ""),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:44:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L44) *style:* **Lines should not be more than 80 characters.**
```r
                             2L * (max(contacts$distance - 1L) - (contacts$distance[i] - 1L))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:62:77:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L62) *style:* **Commas should always have a space after.**
```r
    contacts <- contacts[order(contacts$t, contacts$id, decreasing = FALSE),]
                                                                            ^
```
[R/report.R:73:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L73) *style:* **Lines should not be more than 80 characters.**
```r
    as.character(unlist(by(contacts, sprintf("%s - %s", contacts$lhs, contacts$rhs), function(x) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:78:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L78) *style:* **Lines should not be more than 80 characters.**
```r
                   sprintf('<h3><a name="%s-%s-%s">%s %s %s</a></h3>', direction,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:81:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L81) *style:* **Lines should not be more than 80 characters.**
```r
                   "<tr><th>Date</th><th>Id</th><th>N</th><th>Category</th><th>Source</th><th>Destination</th></tr>")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:83:12:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L83) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(i in seq_len(nrow(x))) {
           ^
```
[R/report.R:104:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L104) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/report.R:113:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L113) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<h3 align='center'>Version: %s</h3>", packageVersion("EpiContactTrace")),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:118:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L118) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>In begin date:</td><td>%s</td></tr>", x@ingoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:119:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L119) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>In end date:</td><td>%s</td></tr>", x@ingoingContacts@tEnd),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:120:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L120) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>In days:</td><td>%i</td></tr>", x@ingoingContacts@tEnd - x@ingoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:121:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L121) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>In degree:</td><td>%i</td></tr>", InDegree(x@ingoingContacts)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:122:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L122) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Ingoing contact chain:</td><td>%i</td></tr>", IngoingContactChain(x@ingoingContacts)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:136:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L136) *style:* **Lines should not be more than 80 characters.**
```r
        lines <- c(lines, "<p>No ingoing contacts during the search period.</p>")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:144:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L144) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Out begin date:</td><td>%s</td></tr>", x@outgoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:145:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L145) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Out end date:</td><td>%s</td></tr>", x@outgoingContacts@tEnd),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:146:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L146) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Out days:</td><td>%i</td></tr>", x@outgoingContacts@tEnd - x@outgoingContacts@tBegin),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:147:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L147) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Out degree:</td><td>%i</td></tr>", OutDegree(x@outgoingContacts)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:148:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L148) *style:* **Lines should not be more than 80 characters.**
```r
               sprintf("<tr><td>Outgoing contact chain:</td><td>%i</td></tr>", OutgoingContactChain(x@outgoingContacts)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:162:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L162) *style:* **Lines should not be more than 80 characters.**
```r
        lines <- c(lines, "<p>No outgoing contacts during the search period.</p>")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:177:69:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L177) *style:* **Commas should always have a space after.**
```r
                   html_detailed_table(df[df$destination == df$root,], "in"))
                                                                    ^
```
[R/report.R:179:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L179) *style:* **Commas should always have a space after.**
```r
        df <- df[df$destination != df$root,]
                                           ^
```
[R/report.R:199:53:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L199) *style:* **Commas should always have a space after.**
```r
        html_detailed_table(df[df$source == df$root,], "out")
                                                    ^
```
[R/report.R:201:39:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L201) *style:* **Commas should always have a space after.**
```r
        df <- df[df$source != df$root,]
                                      ^
```
[R/report.R:238:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L238) *style:* **Lines should not be more than 80 characters.**
```r
##' available. To generate pdf files a TeX installation must exist to compile the
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:261:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L261) *style:* **Lines should not be more than 80 characters.**
```r
##' @param template the Sweave template file to use. If none is provided, the default
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:346:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L346) *style:* **Lines should not be more than 80 characters.**
```r
              writeLines(html_report(object), con = sprintf("%s.html", object@root))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:349:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L349) *style:* **Lines should not be more than 80 characters.**
```r
                  template <- system.file("Sweave/speak-latex.rnw", package = "EpiContactTrace")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:352:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L352) *style:* **Put spaces around all infix operators.**
```r
              utils::Sweave(template, syntax="SweaveSyntaxNoweb")
                                           ~^~
```
[R/report.R:353:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L353) *style:* **Lines should not be more than 80 characters.**
```r
              tools::texi2pdf(sub("rnw$", "tex", basename(template)), clean = TRUE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:354:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L354) *style:* **Lines should not be more than 80 characters.**
```r
              file.rename(sub("rnw$", "pdf", basename(template)), sprintf("%s.pdf", object@root))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/report.R:401:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/report.R#L401) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/shortest-paths.R:137:7:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L137) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/shortest-paths.R:139:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L139) *style:* **Commas should always have a space after.**
```r
          ns.in <- ns[ns$direction == "in",]
                                           ^
```
[R/shortest-paths.R:140:46:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L140) *style:* **Commas should always have a space after.**
```r
          ns.out <- ns[ns$direction == "out",]
                                             ^
```
[R/shortest-paths.R:144:66:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L144) *style:* **Commas should always have a space after.**
```r
              ns.in <- ns.in[order(ns.in$distance, ns.in$source),]
                                                                 ^
```
[R/shortest-paths.R:145:56:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L145) *style:* **Commas should always have a space after.**
```r
              ns.in <- ns.in[!duplicated(ns.in$source),]
                                                       ^
```
[R/shortest-paths.R:151:75:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L151) *style:* **Commas should always have a space after.**
```r
              ns.out <- ns.out[order(ns.out$distance, ns.out$destination),]
                                                                          ^
```
[R/shortest-paths.R:152:64:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L152) *style:* **Commas should always have a space after.**
```r
              ns.out <- ns.out[!duplicated(ns.out$destination),]
                                                               ^
```
[R/shortest-paths.R:169:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L169) *style:* **functions should have cyclomatic complexity of less than 15, this has 41.**
```r
setMethod("ShortestPaths",
^
```
[R/shortest-paths.R:179:7:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L179) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/shortest-paths.R:241:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L241) *style:* **Lines should not be more than 80 characters.**
```r
              if (!all(is.null(inBegin), is.null(inEnd), is.null(outBegin), is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:242:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L242) *style:* **Lines should not be more than 80 characters.**
```r
                  stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to ShortestPaths")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:256:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L256) *style:* **Lines should not be more than 80 characters.**
```r
              if (any(is.na(days) | (days < 0)) || max(abs(days - daysr)) > 1e-07) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:276:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L276) *style:* **Lines should not be more than 80 characters.**
```r
          } else if (all(!is.null(inBegin), !is.null(inEnd), !is.null(outBegin), !is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:281:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L281) *style:* **Lines should not be more than 80 characters.**
```r
                  stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to ShortestPaths")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:284:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L284) *style:* **Lines should not be more than 80 characters.**
```r
              stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to ShortestPaths")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:367:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L367) *style:* **Lines should not be more than 80 characters.**
```r
              stop("root, inBegin, inEnd, outBegin and outEnd must have equal length")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/shortest-paths.R:413:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/shortest-paths.R#L413) *style:* **Lines should not be more than 80 characters.**
```r
                                         destination = x$destination[sp$outRowid],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/show.R:76:7:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L76) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
      {
      ^
```
[R/show.R:88:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L88) *style:* **Lines should not be more than 80 characters.**
```r
              cat(sprintf("%sgoing contact chain: %i\n\n", prefix, OutgoingContactChain(object)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/show.R:91:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L91) *style:* **Lines should not be more than 80 characters.**
```r
              cat(sprintf("%sgoing contact chain: %i\n\n", prefix, IngoingContactChain(object)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/show.R:102:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L102) *style:* **Lines should not be more than 80 characters.**
```r
              ## Rename source and destination to lhs and rhs, with respect to direction
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/show.R:111:18:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L111) *style:* **Place a space before left parenthesis, except in a function call.**
```r
              for(i in seq_len(nrow(ns))) {
                 ^
```
[R/show.R:113:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L113) *style:* **Lines should not be more than 80 characters.**
```r
                              paste(rep(" ", (ns$distance[i] - 1) * (width + 5)), collapse=""),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/show.R:113:91:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L113) *style:* **Put spaces around all infix operators.**
```r
                              paste(rep(" ", (ns$distance[i] - 1) * (width + 5)), collapse=""),
                                                                                ~^~
```
[R/show.R:119:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/show.R#L119) *style:* **Lines should not be more than 80 characters.**
```r
              cat(sprintf("No %sgoing contacts during the search period.\n", object@direction))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:167:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L167) *style:* **functions should have cyclomatic complexity of less than 15, this has 56.**
```r
Trace <- function(movements,
^
```
[R/trace.R:207:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L207) *style:* **Lines should not be more than 80 characters.**
```r
    if (any(is.factor(movements$destination), is.integer(movements$destination))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:252:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L252) *style:* **Lines should not be more than 80 characters.**
```r
        if (any(is.factor(movements$category), is.integer(movements$category))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:306:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L306) *style:* **Lines should not be more than 80 characters.**
```r
        if (!all(is.null(inBegin), is.null(inEnd), is.null(outBegin), is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:307:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L307) *style:* **Lines should not be more than 80 characters.**
```r
            stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to Trace")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:318:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L318) *style:* **Lines should not be more than 80 characters.**
```r
        ## Test that days is a nonnegative integer the same way as binom.test test x
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:335:31:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L335) *style:* **Put spaces around all infix operators.**
```r
        root <- rep(root, each=n.tEnd*n.days, length.out=n)
                             ~^~
```
[R/trace.R:335:38:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L335) *style:* **Put spaces around all infix operators.**
```r
        root <- rep(root, each=n.tEnd*n.days, length.out=n)
                                    ~^~
```
[R/trace.R:335:57:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L335) *style:* **Put spaces around all infix operators.**
```r
        root <- rep(root, each=n.tEnd*n.days, length.out=n)
                                                       ~^~
```
[R/trace.R:336:32:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L336) *style:* **Put spaces around all infix operators.**
```r
        inEnd <- rep(tEnd, each=n.days, length.out=n)
                              ~^~
```
[R/trace.R:336:51:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L336) *style:* **Put spaces around all infix operators.**
```r
        inEnd <- rep(tEnd, each=n.days, length.out=n)
                                                 ~^~
```
[R/trace.R:337:42:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L337) *style:* **Put spaces around all infix operators.**
```r
        inBegin <- inEnd - rep(days, each=1, length.out=n)
                                        ~^~
```
[R/trace.R:337:56:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L337) *style:* **Put spaces around all infix operators.**
```r
        inBegin <- inEnd - rep(days, each=1, length.out=n)
                                                      ~^~
```
[R/trace.R:340:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L340) *style:* **Lines should not be more than 80 characters.**
```r
    } else if (all(!is.null(inBegin), !is.null(inEnd), !is.null(outBegin), !is.null(outEnd))) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:345:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L345) *style:* **Lines should not be more than 80 characters.**
```r
            stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to Trace")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:348:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L348) *style:* **Lines should not be more than 80 characters.**
```r
        stop("Use either tEnd and days or inBegin, inEnd, outBegin and outEnd in call to Trace")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:458:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L458) *style:* **Lines should not be more than 80 characters.**
```r
                            as.integer(factor(movements$source, levels=levels(nodes))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:458:71:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L458) *style:* **Put spaces around all infix operators.**
```r
                            as.integer(factor(movements$source, levels=levels(nodes))),
                                                                     ~^~
```
[R/trace.R:459:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L459) *style:* **Lines should not be more than 80 characters.**
```r
                            as.integer(factor(movements$destination, levels=levels(nodes))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:459:76:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L459) *style:* **Put spaces around all infix operators.**
```r
                            as.integer(factor(movements$destination, levels=levels(nodes))),
                                                                          ~^~
```
[R/trace.R:461:59:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L461) *style:* **Put spaces around all infix operators.**
```r
                            as.integer(factor(root, levels=levels(nodes))),
                                                         ~^~
```
[R/trace.R:471:16:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L471) *style:* **Put spaces around all infix operators.**
```r
        j <- (i-1) * 4
              ~^~
```
[R/trace.R:481:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L481) *style:* **Lines should not be more than 80 characters.**
```r
        ## Create an index to contacts, so that the result matrix can be reconstructed
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:483:12:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L483) *style:* **Commented code should be removed.**
```r
        ## contacts_all <- cbind(contacts[index,], distance)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:484:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L484) *style:* **Lines should not be more than 80 characters.**
```r
        index <- match(apply(contacts_all, 1, function(x) paste(x, collapse="\r")),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:484:76:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L484) *style:* **Put spaces around all infix operators.**
```r
        index <- match(apply(contacts_all, 1, function(x) paste(x, collapse="\r")),
                                                                          ~^~
```
[R/trace.R:485:72:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L485) *style:* **Put spaces around all infix operators.**
```r
                       apply(contacts, 1, function(x) paste(x, collapse="\r")))
                                                                      ~^~
```
[R/trace.R:491:51:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L491) *style:* **Commas should always have a space after.**
```r
                               source = contacts[,1],
                                                  ^
```
[R/trace.R:492:56:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L492) *style:* **Commas should always have a space after.**
```r
                               destination = contacts[,2],
                                                       ^
```
[R/trace.R:493:46:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L493) *style:* **Commas should always have a space after.**
```r
                               t = contacts[,3],
                                             ^
```
[R/trace.R:494:47:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L494) *style:* **Commas should always have a space after.**
```r
                               id = contacts[,4],
                                              ^
```
[R/trace.R:495:46:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L495) *style:* **Commas should always have a space after.**
```r
                               n = contacts[,5],
                                             ^
```
[R/trace.R:496:53:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L496) *style:* **Commas should always have a space after.**
```r
                               category = contacts[,6],
                                                    ^
```
[R/trace.R:509:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L509) *style:* **Lines should not be more than 80 characters.**
```r
        ## Create an index to contacts, so that the result matrix can be reconstructed
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:511:12:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L511) *style:* **Commented code should be removed.**
```r
        ## contacts_all <- cbind(contacts[index,], distance)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:512:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L512) *style:* **Lines should not be more than 80 characters.**
```r
        index <- match(apply(contacts_all, 1, function(x) paste(x, collapse="\r")),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:512:76:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L512) *style:* **Put spaces around all infix operators.**
```r
        index <- match(apply(contacts_all, 1, function(x) paste(x, collapse="\r")),
                                                                          ~^~
```
[R/trace.R:513:72:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L513) *style:* **Put spaces around all infix operators.**
```r
                       apply(contacts, 1, function(x) paste(x, collapse="\r")))
                                                                      ~^~
```
[R/trace.R:519:52:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L519) *style:* **Commas should always have a space after.**
```r
                                source = contacts[,1],
                                                   ^
```
[R/trace.R:520:57:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L520) *style:* **Commas should always have a space after.**
```r
                                destination = contacts[,2],
                                                        ^
```
[R/trace.R:521:47:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L521) *style:* **Commas should always have a space after.**
```r
                                t = contacts[,3],
                                              ^
```
[R/trace.R:522:48:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L522) *style:* **Commas should always have a space after.**
```r
                                id = contacts[,4],
                                               ^
```
[R/trace.R:523:47:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L523) *style:* **Commas should always have a space after.**
```r
                                n = contacts[,5],
                                              ^
```
[R/trace.R:524:54:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L524) *style:* **Commas should always have a space after.**
```r
                                category = contacts[,6],
                                                     ^
```
[R/trace.R:535:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L535) *style:* **Lines should not be more than 80 characters.**
```r
    ## Name each list item with ContactTrace objects to the name of the ContactTrace root.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/trace.R:536:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/trace.R#L536) *style:* **Lines should not be more than 80 characters.**
```r
    names(result) <-  sapply(result, function(listItem) listItem@ingoingContacts@root)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/tree.R:31:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L31) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/tree.R:36:70:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L36) *style:* **Commas should always have a space after.**
```r
    tree.in <- network_structure[network_structure$direction == "in",]
                                                                     ^
```
[R/tree.R:37:72:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L37) *style:* **Commas should always have a space after.**
```r
    tree.out <- network_structure[network_structure$direction == "out",]
                                                                       ^
```
[R/tree.R:39:27:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L39) *style:* **Put spaces around all infix operators.**
```r
    result <- list(ingoing=NULL, outgoing=NULL)
                         ~^~
```
[R/tree.R:39:42:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L39) *style:* **Put spaces around all infix operators.**
```r
    result <- list(ingoing=NULL, outgoing=NULL)
                                        ~^~
```
[R/tree.R:49:56:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L49) *style:* **Commas should always have a space after.**
```r
        tree.in <- tree.in[!duplicated(tree.in$source),]
                                                       ^
```
[R/tree.R:54:12:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L54) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(lev in rev(seq_len(max(tree.in$level)))) {
           ^
```
[R/tree.R:55:16:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L55) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            for(src in tree.in$node[tree.in$level == lev]) {
               ^
```
[R/tree.R:65:38:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L65) *style:* **Put spaces around all infix operators.**
```r
                stopifnot(length(dst)>0)
                                    ~^~
```
[R/tree.R:79:64:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L79) *style:* **Commas should always have a space after.**
```r
        tree.out <- tree.out[!duplicated(tree.out$destination),]
                                                               ^
```
[R/tree.R:84:12:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L84) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        for(lev in rev(seq_len(max(tree.out$level)))) {
           ^
```
[R/tree.R:85:16:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L85) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            for(dst in tree.out$node[tree.out$level == lev]) {
               ^
```
[R/tree.R:95:38:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L95) *style:* **Put spaces around all infix operators.**
```r
                stopifnot(length(src)>0)
                                    ~^~
```
[R/tree.R:132:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L132) *style:* **Lines should not be more than 80 characters.**
```r
##'   \item John Q. Walker II, A node positioning algorithm for general tress.\cr
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/tree.R:135:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L135) *style:* **functions should have cyclomatic complexity of less than 15, this has 48.**
```r
position_tree <- function(tree,
^
```
[R/tree.R:146:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L146) *style:* **Opening curly braces should never go on their own line and should always be followed by a new line.**
```r
{
^
```
[R/tree.R:154:14:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L154) *style:* **Place a space before left parenthesis, except in a function call.**
```r
        while(all(!is.null(left_most),
             ^
```
[R/tree.R:164:16:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L164) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            for(i in seq_len(compare_depth)) {
               ^
```
[R/tree.R:184:22:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L184) *style:* **Place a space before left parenthesis, except in a function call.**
```r
                while(all(!is.null(temp_node),
                     ^
```
[R/tree.R:196:26:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L196) *style:* **Place a space before left parenthesis, except in a function call.**
```r
                    while(!identical(temp_node, ancestor_neighbor)) {
                         ^
```
[R/tree.R:198:1:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L198) *style:* **Lines should not be more than 80 characters.**
```r
                        set_modifier(temp_node, modifier(temp_node) + move_distance)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/tree.R:228:29:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L228) *style:* **Put spaces around all infix operators.**
```r
        if (length(children)>0) {
                           ~^~
```
[R/tree.R:243:18:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L243) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            while(all(is.null(left_most),
                 ^
```
[R/tree.R:275:30:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L275) *style:* **Put spaces around all infix operators.**
```r
                return(n[i[1]-1])
                            ~^~
```
[R/tree.R:391:26:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L391) *style:* **Put spaces around all infix operators.**
```r
            return(s[i[1]-1])
                        ~^~
```
[R/tree.R:400:26:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L400) *style:* **Put spaces around all infix operators.**
```r
            return(s[i[1]+1])
                        ~^~
```
[R/tree.R:433:18:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/R/tree.R#L433) *style:* **Place a space before left parenthesis, except in a function call.**
```r
            while(has_right_sibling(right_most)) {
                 ^
```
[tests/arguments.R:33:57:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L33) *style:* **Put spaces around all infix operators.**
```r
tools::assertError(IngoingContactChain(data.frame(source=1L,
                                                       ~^~
```
[tests/arguments.R:34:62:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L34) *style:* **Put spaces around all infix operators.**
```r
                                                  destination=2L,
                                                            ~^~
```
[tests/arguments.R:35:52:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L35) *style:* **Put spaces around all infix operators.**
```r
                                                  t=as.Date('2011-08-10')),
                                                  ~^~
```
[tests/arguments.R:35:61:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L35) *style:* **Only use double-quotes.**
```r
                                                  t=as.Date('2011-08-10')),
                                                            ^~~~~~~~~~~~
```
[tests/arguments.R:36:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L36) *style:* **Put spaces around all infix operators.**
```r
                                       tEnd='2005-10-31',
                                          ~^~
```
[tests/arguments.R:36:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L36) *style:* **Only use double-quotes.**
```r
                                       tEnd='2005-10-31',
                                            ^~~~~~~~~~~~
```
[tests/arguments.R:37:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L37) *style:* **Put spaces around all infix operators.**
```r
                                       days=90))
                                          ~^~
```
[tests/arguments.R:43:57:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L43) *style:* **Put spaces around all infix operators.**
```r
tools::assertError(IngoingContactChain(data.frame(source=1L,
                                                       ~^~
```
[tests/arguments.R:44:62:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L44) *style:* **Put spaces around all infix operators.**
```r
                                                  destination=2L,
                                                            ~^~
```
[tests/arguments.R:45:52:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L45) *style:* **Put spaces around all infix operators.**
```r
                                                  t=as.Date('2011-08-10')),
                                                  ~^~
```
[tests/arguments.R:45:61:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L45) *style:* **Only use double-quotes.**
```r
                                                  t=as.Date('2011-08-10')),
                                                            ^~~~~~~~~~~~
```
[tests/arguments.R:46:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L46) *style:* **Put spaces around all infix operators.**
```r
                                       root=1,
                                          ~^~
```
[tests/arguments.R:47:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L47) *style:* **Put spaces around all infix operators.**
```r
                                       days=90))
                                          ~^~
```
[tests/arguments.R:53:57:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L53) *style:* **Put spaces around all infix operators.**
```r
tools::assertError(IngoingContactChain(data.frame(source=1L,
                                                       ~^~
```
[tests/arguments.R:54:62:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L54) *style:* **Put spaces around all infix operators.**
```r
                                                  destination=2L,
                                                            ~^~
```
[tests/arguments.R:55:52:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L55) *style:* **Put spaces around all infix operators.**
```r
                                                  t=as.Date('2011-08-10')),
                                                  ~^~
```
[tests/arguments.R:55:61:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L55) *style:* **Only use double-quotes.**
```r
                                                  t=as.Date('2011-08-10')),
                                                            ^~~~~~~~~~~~
```
[tests/arguments.R:56:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L56) *style:* **Put spaces around all infix operators.**
```r
                                       root=1,
                                          ~^~
```
[tests/arguments.R:57:44:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L57) *style:* **Put spaces around all infix operators.**
```r
                                       tEnd='2005-10-31'))
                                          ~^~
```
[tests/arguments.R:57:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L57) *style:* **Only use double-quotes.**
```r
                                       tEnd='2005-10-31'))
                                            ^~~~~~~~~~~~
```
[tests/arguments.R:62:58:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L62) *style:* **Put spaces around all infix operators.**
```r
tools::assertError(OutgoingContactChain(data.frame(source=1L,
                                                        ~^~
```
[tests/arguments.R:63:63:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L63) *style:* **Put spaces around all infix operators.**
```r
                                                   destination=2L,
                                                             ~^~
```
[tests/arguments.R:64:53:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L64) *style:* **Put spaces around all infix operators.**
```r
                                                   t=as.Date('2011-08-10')),
                                                   ~^~
```
[tests/arguments.R:64:62:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L64) *style:* **Only use double-quotes.**
```r
                                                   t=as.Date('2011-08-10')),
                                                             ^~~~~~~~~~~~
```
[tests/arguments.R:65:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L65) *style:* **Put spaces around all infix operators.**
```r
                                        tEnd='2005-10-31',
                                           ~^~
```
[tests/arguments.R:65:46:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L65) *style:* **Only use double-quotes.**
```r
                                        tEnd='2005-10-31',
                                             ^~~~~~~~~~~~
```
[tests/arguments.R:66:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L66) *style:* **Put spaces around all infix operators.**
```r
                                        days=90))
                                           ~^~
```
[tests/arguments.R:72:58:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L72) *style:* **Put spaces around all infix operators.**
```r
tools::assertError(OutgoingContactChain(data.frame(source=1L,
                                                        ~^~
```
[tests/arguments.R:73:63:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L73) *style:* **Put spaces around all infix operators.**
```r
                                                   destination=2L,
                                                             ~^~
```
[tests/arguments.R:74:53:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L74) *style:* **Put spaces around all infix operators.**
```r
                                                   t=as.Date('2011-08-10')),
                                                   ~^~
```
[tests/arguments.R:74:62:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L74) *style:* **Only use double-quotes.**
```r
                                                   t=as.Date('2011-08-10')),
                                                             ^~~~~~~~~~~~
```
[tests/arguments.R:75:45:](https://github.com/stewid/EpiContactTrace/blob/024a79c64e03bc002dee8ed2dd41afd56a5acc7d/tests/arguments.R#L75) *style:* **Put spaces around all infix operators.**
```r
                                        root=1,
                                           ~^~
```


Deployment failed with the following error:

~~~
Your `package.json` file is missing a `build` property inside the `script` property.
~~~


Critical - sequential execution of functions in the procedure, while the body of the procedure is executed, other processes are not called.
I don’t know about others.


Successfully deployed to following URLs:

* https://blogapi2ucn-ks0lujvms.now.sh
* https://ap.api2u.cn
* https://blogapi2ucn.youngje.now.sh
* https://blogapi2ucn-git-master.youngje.now.sh


Лабораторная работа зачтена.


Зачтено


directly attached file


Successfully deployed to following URLs:

* https://shop-hbzxhlrst.now.sh
* https://shop23.now.sh
* https://shop.cacheup.now.sh
* https://shop-git-master.cacheup.now.sh


Successfully deployed to following URLs:

* https://falahansblogapp-7arpfsu51.now.sh
* https://falahansblogapp.phirmware.now.sh
* https://falahansblogapp-git-master.phirmware.now.sh


All the values in GRANULARITIESPERIODLOOKUP should start with period P, like P1D, P7D


为什么这边要判断child存不存在？


Successfully deployed to following URLs:

* https://jethromaycom-iaj90emdp.now.sh
* https://jethromaycom.jethromay.now.sh
* https://jethromaycom-git-master.jethromay.now.sh


I misunderstood the call before, but it would be more efficient to use the `NativeRaw` class for `ids` instead so that you keep it as an `FLSliceResult`.  That's why I said it was a memory leak.  If you use this version, then you will copy the bytes into C#, and then copy them back again later when you call `FLValue_FromData`.  The same thing can be accomplished with `NativeRaw.c4repl_getPendingDocIDs` and then you will avoid the double copy.