r-lib / fs

@@ -169,7 +169,8 @@
Loading
169 169
170 170
new_fs_perms <- function(x) {
171 171
  assert("`x` must be an integer", is.integer(x))
172 -
  structure(x, class = c("fs_perms", "integer"))
172 +
  class(x) <- c("fs_perms", "integer")
173 +
  x
173 174
}
174 175
setOldClass(c("fs_perms", "integer"), integer())
175 176

@@ -29,7 +29,8 @@
Loading
29 29
fs_bytes <- as_fs_bytes
30 30
31 31
new_fs_bytes <- function(x) {
32 -
  structure(x, class = c("fs_bytes", "numeric"))
32 +
  class(x) <- c("fs_bytes", "numeric")
33 +
  x
33 34
}
34 35
setOldClass(c("fs_bytes", "numeric"), numeric())
35 36

@@ -36,7 +36,9 @@
Loading
36 36
fs_path <- as_fs_path
37 37
38 38
new_fs_path <- function(x) {
39 -
  structure(enc2utf8(x), class = c("fs_path", "character"))
39 +
  x <- enc2utf8(x)
40 +
  class(x) <- c("fs_path", "character")
41 +
  x
40 42
}
41 43
setOldClass(c("fs_path", "character"), character())
42 44
Files Coverage
R 89.66%
src 77.02%
Project Totals (33 files) 82.29%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
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