Skip to content

Commit c116777

Browse files
committed
fix #378
1 parent e3d738e commit c116777

16 files changed

+120
-17
lines changed

R/FilterState.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ FilterState <- R6::R6Class( # nolint
113113
#' Returns a formatted string representing this `FilterState` object.
114114
#'
115115
#' @param show_all `logical(1)` passed to `format.teal_slice`
116+
#' @param trim_lines `logical(1)` passed to `format.teal_slice`
116117
#'
117118
#' @return `character(1)` the formatted string
118119
#'
119-
format = function(show_all = FALSE) {
120+
format = function(show_all = FALSE, trim_lines = TRUE) {
120121
sprintf(
121122
"%s:\n%s",
122123
class(self)[1],
123-
format(self$get_state(), show_all = show_all)
124+
format(self$get_state(), show_all = show_all, trim_lines = trim_lines)
124125
)
125126
},
126127

R/FilterStateExpr.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ FilterStateExpr <- R6::R6Class( # nolint
7474
#' Returns a formatted string representing this `FilterStateExpr` object.
7575
#'
7676
#' @param show_all `logical(1)` passed to `format.teal_slice`
77+
#' @param trim_lines `logical(1)` passed to `format.teal_slice`
7778
#'
7879
#' @return `character(1)` the formatted string
7980
#'
80-
format = function(show_all = FALSE) {
81+
format = function(show_all = FALSE, trim_lines = TRUE) {
8182
sprintf(
8283
"%s:\n%s",
8384
class(self)[1],
84-
format(self$get_state(), show_all = show_all)
85+
format(self$get_state(), show_all = show_all, trim_lines = trim_lines)
8586
)
8687
},
8788

R/FilterStates.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ FilterStates <- R6::R6Class( # nolint
6868
#' Returns a formatted string representing this `FilterStates` object.
6969
#'
7070
#' @param show_all `logical(1)` passed to `format.teal_slices`
71+
#' @param trim_lines `logical(1)` passed to `format.teal_slices`
7172
#'
7273
#' @return `character(1)` the formatted string
7374
#'
74-
format = function(show_all = FALSE) {
75+
format = function(show_all = FALSE, trim_lines = TRUE) {
7576
sprintf(
7677
"%s:\n%s",
7778
class(self)[1],
78-
format(self$get_filter_state(), show_all = show_all)
79+
format(self$get_filter_state(), show_all = show_all, trim_lines = trim_lines)
7980
)
8081
},
8182

R/FilteredData.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,15 @@ FilteredData <- R6::R6Class( # nolint
405405
#' Returns a formatted string representing this `FilteredData` object.
406406
#'
407407
#' @param show_all `logical(1)` passed to `format.teal_slice`
408+
#' @param trim_lines `logical(1)` passed to `format.teal_slice`
408409
#'
409410
#' @return `character(1)` the formatted string
410411
#'
411-
format = function(show_all = FALSE) {
412+
format = function(show_all = FALSE, trim_lines = TRUE) {
412413
sprintf(
413414
"%s:\n%s",
414415
class(self)[1],
415-
format(self$get_filter_state(), show_all = show_all)
416+
format(self$get_filter_state(), show_all = show_all, trim_lines = trim_lines)
416417
)
417418
},
418419

R/FilteredDataset.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ FilteredDataset <- R6::R6Class( # nolint
6565
#' Returns a formatted string representing this `FilteredDataset` object.
6666
#'
6767
#' @param show_all `logical(1)` passed to `format.teal_slice`
68+
#' @param trim_lines `logical(1)` passed to `format.teal_slice`
6869
#'
6970
#' @return `character(1)` the formatted string
7071
#'
71-
format = function(show_all = FALSE) {
72+
format = function(show_all = FALSE, trim_lines = TRUE) {
7273
sprintf(
7374
"%s:\n%s",
7475
class(self)[1],
75-
format(self$get_filter_state(), show_all = show_all)
76+
format(self$get_filter_state(), show_all = show_all, trim_lines = trim_lines)
7677
)
7778
},
7879

R/teal_slice.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@
100100
#' is.teal_slice(x1)
101101
#' as.list(x1)
102102
#' as.teal_slice(list(dataname = "a", varname = "var"))
103-
#' format(x1, show_all = FALSE, trim_lines = TRUE)
103+
#' format(x1)
104+
#' format(x1, show_all = TRUE, trim_lines = FALSE)
105+
#' print(x1, show_all = FALSE, trim_lines = FALSE)
104106
#' print(x1, show_all = FALSE, trim_lines = TRUE)
105107
#'
106108
#' @export

man/FilterState.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/FilterStateExpr.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/FilterStates.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/FilteredData.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)