You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat(paste0("[flowR] Slicing for criterion ", criterion, "\n"))
27
+
#' Generates a slice for the given filename and criterion, code fragment and criterion, or the currently highlighted variable in the active RStudio document.
28
+
#'
29
+
#' @param filename The name of the file to slice. If NULL, the passed code fragment is used.
30
+
#' @param code The code fragment to slice, as a character. If also NULL, the currently active document is used.
31
+
#' @param criterion The slicing criterion to use. Needs to be non-NULL if filename or code is provided.
32
+
#'
33
+
#' @return A list containing the filename, criterion, result of the slice request, a mapping from IDs to locations, and the slice locations.
#' Generates a slice for the given filename and criterion, code fragment and criterion, or the currently highlighted variable in the active RStudio document and returns the reconstructed code fragment.
96
+
#'
97
+
#' @param filename The name of the file to slice. If NULL, the passed code fragment is used.
98
+
#' @param code The code fragment to slice, as a character. If also NULL, the currently active document is used.
99
+
#' @param criterion The slicing criterion to use. Needs to be non-NULL if filename or code is provided.
100
+
#' @param print If TRUE, the reconstructed code is printed to the console and returned invisibly. Defaults to FALSE.
101
+
#'
102
+
#' @return The reconstructed code fragment for the generated slice.
0 commit comments