Skip to content

Commit

Permalink
removed string wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
csangara committed Sep 18, 2023
1 parent c5348a5 commit 985eca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/AbstractAnnData.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ AbstractAnnData <- R6::R6Class("AbstractAnnData", # nolint
)){
attr_key <- paste0(attribute, "_keys")
if (!is.null(self[[attr_key]])){

Check warning on line 74 in R/AbstractAnnData.R

View workflow job for this annotation

GitHub Actions / lint

file=R/AbstractAnnData.R,line=74,col=40,[brace_linter] There should be a space before an opening curly brace.

Check warning on line 74 in R/AbstractAnnData.R

View workflow job for this annotation

GitHub Actions / lint

file=R/AbstractAnnData.R,line=74,col=40,[paren_body_linter] There should be a space between a right parenthesis and a body expression.
cat(pretty_print(attribute, self[[attr_key]]()), "\n", sep = "")
cat(" ", pretty_print(attribute, self[[attr_key]]()), "\n", sep = "")
}
}
},
Expand Down
3 changes: 1 addition & 2 deletions R/utilities.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pretty_print <- function(label, value) {
txt <- paste0(label, ": ", paste0("'", value, "'", collapse = ", "))
paste0(strwrap(txt, indent = 0, exdent = 2), collapse = "\n")
paste0(label, ": ", paste0("'", value, "'", collapse = ", "))
}

wrap_message <- function(...) {
Expand Down

0 comments on commit 985eca8

Please sign in to comment.