Use \dontrun instead of \donttest for non-essential examples
This is not so nice for the user experience because of the
wrappers arround examples:
## Not run
...
## End(Not run)
but it is necessary to some extent to pass automatic CRAN
checks under all circumstances, which actually do run
the donttest examples since R 4.0 with a time limit of apparently
20min in total.
Change-Id: If09b1aa381e26179ec1a36edd9d8b07116e3c33e
diff --git a/man/misc-functions.Rd b/man/misc-functions.Rd
index aad5c80..f0ae3c2 100644
--- a/man/misc-functions.Rd
+++ b/man/misc-functions.Rd
@@ -71,7 +71,8 @@
und multiplies conf.low and \code{conf.high} with 10^6.
}
\examples{
-\donttest{
+\dontrun{
+
library(ggplot2)
kco <- new("KorAPConnection", verbose=TRUE)
expand_grid(year=2015:2018, alternatives=c("Hate Speech", "Hatespeech")) \%>\%
@@ -81,10 +82,12 @@
ggplot(aes(x=year, y=f, fill=query, color=query, ymin=conf.low, ymax=conf.high)) +
geom_point() + geom_line() + geom_ribbon(alpha=.3)
}
-\donttest{
+\dontrun{
+
new("KorAPConnection") \%>\% frequencyQuery("Test", paste0("pubDate in ", 2000:2002)) \%>\% ipm()
}
-\donttest{
+\dontrun{
+
new("KorAPConnection") \%>\%
frequencyQuery(c("Tollpatsch", "Tolpatsch"),
vc=paste0("pubDate in ", 2000:2002),
@@ -97,7 +100,8 @@
library(ggplot2)
kco <- new("KorAPConnection", verbose=TRUE)
-\donttest{
+\dontrun{
+
expand_grid(condition = c("textDomain = /Wirtschaft.*/", "textDomain != /Wirtschaft.*/"),
year = (2005:2011)) \%>\%
cbind(frequencyQuery(kco, "[tt/l=Heuschrecke]",