Showing 1 of 1 files from the diff.

@@ -1075,10 +1075,17 @@
Loading
1075 1075
    splits <- strsplit(allSimilarFilesInDirSansExt[alreadyHasNumeric], split = "_")
1076 1076
    highestNumber <- max(unlist(lapply(splits, function(split) as.numeric(tail(split,1)))),
1077 1077
                         na.rm = TRUE)
1078 -
    preNumeric <- unique(unlist(lapply(splits, function(spl) paste(spl[-length(spl)], collapse = "_")))) #nolint
1078 +
    preNumeric <- unique(unlist(lapply(splits, function(spl) {
1079 +
      strng <- paste(spl[-length(spl)], collapse = "_")
1080 +
      ## if the string ends with a "_", remove it as this may have come from appending too many "_"
1081 +
      strng <- sub("_$", "", strng)
1082 +
      strng
1083 +
      }))) #nolint
1079 1084
    ## keep rndstr in here (below), so that both streams keep same rnd number state
1080 1085
    out <- file.path(dirname(saveFilenameSansExt), paste0(preNumeric, "_", highestNumber + 1))
1081 1086
  } else {
1087 +
    ## if the string ends with a "_", remove it as this may have come from appending too many "_"
1088 +
    saveFilenameSansExt <- sub("_$", "", saveFilenameSansExt)
1082 1089
    out <- paste0(saveFilenameSansExt, "_1")
1083 1090
  }
1084 1091
Files Coverage
R 64.82%
Project Totals (25 files) 64.82%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading