Revert "frequencyQuery: stop with error if vc is empty"
This reverts commit e91be715286a1cfd25b82dc8932838f6d2f4eab4.
Reason for revert: Missing pipe, rather needs a filter
Change-Id: I0d26d1bb0bca3af3cf1f63608e00dabe83bfa56a
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R
index 5ba459b..cf848f0 100644
--- a/R/KorAPQuery.R
+++ b/R/KorAPQuery.R
@@ -346,7 +346,6 @@
corpusQuery(kco, query, vc, metadataOnly = TRUE, as.df = TRUE, ...) %>%
mutate(total = corpusStats(kco, vc=vc, as.df=TRUE)$tokens)
} ) %>%
- { if (.$total == 0) stop(paste0("Virtual corpus \"",vc, "\" is empty. Cannot calculate relative frequencies."), call. = FALSE) }
ci(conf.level = conf.level)
})