Showing 2 of 2 files from the diff.

@@ -28,6 +28,8 @@
Loading
28 28
29 29
  set_call <- as.call(c(substitute(set), called_fmls))
30 30
31 +
  reset <- if (missing(reset)) substitute(set) else substitute(reset)
32 +
31 33
  if (dots) {
32 34
    modify_call <- quote(.new <- utils::modifyList(as.list(.new), list(...)))
33 35
@@ -36,16 +38,15 @@
Loading
36 38
        old <- .(set_call)
37 39
        defer(.(reset)(old), envir = .local_envir)
38 40
        invisible(old)
39 -
      }, list(set_call = set_call,
40 -
              reset = if (missing(reset)) substitute(set) else substitute(reset),
41 -
              modify_call = modify_call)))
41 +
      }
42 +
    ))
42 43
  } else {
43 44
    fun <- eval(bquote(function(args) {
44 45
        old <- .(set_call)
45 46
        defer(.(reset)(old), envir = .local_envir)
46 47
        invisible(old)
47 -
      }, list(set_call = set_call,
48 -
              reset = if (missing(reset)) substitute(set) else substitute(reset))))
48 +
      }
49 +
    ))
49 50
  }
50 51
51 52
  # substitute does not work on arguments, so we need to fix them manually

@@ -73,12 +73,14 @@
Loading
73 73
74 74
  set_call <- as.call(c(substitute(set), called_fmls))
75 75
76 +
  reset <-  if (missing(reset)) substitute(set) else substitute(reset)
77 +
76 78
  fun <- eval(bquote(function(args) {
77 79
    old <- .(set_call)
78 80
    on.exit(.(reset)(old))
79 81
    force(code)
80 -
  }, as.environment(list(set_call = set_call,
81 -
          reset = if (missing(reset)) substitute(set) else substitute(reset)))))
82 +
    }
83 +
  ))
82 84
83 85
  # substitute does not work on arguments, so we need to fix them manually
84 86
  formals(fun) <- fun_args
Files Coverage
R 84.97%
Project Totals (23 files) 84.97%
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