Skip to content

Commit 5b811e8

Browse files
committed
stopif
1 parent 3943e2b commit 5b811e8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

R/gruffi.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,9 @@ PasteUniqueGeneList <- function() {
638638
#' @param ... Pass any other parameter to the internally called functions (most of them should work).
639639
#' @seealso
640640
#' \code{\link[Seurat]{reexports}}
641-
#' \code{\link[MarkdownHelpers]{stopif}}
642641
#' \code{\link[Stringendo]{iprint}}
643642
#' @export
644643
#' @importFrom Seurat DefaultAssay
645-
#' @importFrom MarkdownHelpers stopif
646644
#' @importFrom Stringendo iprint
647645

648646
PlotGoTermScores <- function(
@@ -659,7 +657,10 @@ PlotGoTermScores <- function(
659657
backup.assay <- Seurat::DefaultAssay(obj)
660658

661659
if (grepl(x = GO, pattern = "^GO:", perl = T)) {
662-
MarkdownHelpers::stopif(condition = grepl(pattern = "Score.", x = GO), message = print("Provide a simple GO-term, like: GO:0009651 - not Score.GO.0006096"))
660+
# stopif(condition = grepl(pattern = "Score.", x = GO), message = print("Provide a simple GO-term, like: GO:0009651 - not Score.GO.0006096"))
661+
stopifnot("Provide a simple GO-term, like: GO:0009651 - not Score.GO.0006096" =
662+
!grepl(pattern = "Score.", x = GO))
663+
663664
GO.wDot <- make.names(GO)
664665
ScoreName <- paste0("Score.", GO.wDot)
665666
print(ScoreName)

gruffi.Rproj

+5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ SaveWorkspace: No
55
AlwaysSaveHistory: Default
66

77
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
810
Encoding: UTF-8
911

12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX
14+
1015
AutoAppendNewline: Yes
1116
StripTrailingWhitespace: Yes
1217
LineEndingConversion: Posix

0 commit comments

Comments
 (0)