Carry a a verbosity default already in the connection object
Change-Id: I8b0b0cb3ebbf5d92be8442366b5aaf6643e9431c
diff --git a/man/KorAPConnection-class.Rd b/man/KorAPConnection-class.Rd
index 2c4c60e..54f6468 100644
--- a/man/KorAPConnection-class.Rd
+++ b/man/KorAPConnection-class.Rd
@@ -10,7 +10,7 @@
\usage{
\S4method{initialize}{KorAPConnection}(.Object,
KorAPUrl = "https://korap.ids-mannheim.de/", apiVersion = "v1.0",
- apiUrl)
+ apiUrl, verbose = FALSE)
\S4method{show}{KorAPConnection}(object)
}
@@ -23,6 +23,8 @@
\item{apiUrl}{URL of the KorAP web service.}
+\item{verbose}{logical decides wether following operations will default to be verbose}
+
\item{object}{KorAPConnection object}
}
\value{
@@ -36,8 +38,8 @@
Currently it is not possible to authenticate the client
}
\examples{
-kcon <- new("KorAPConnection")
+kcon <- new("KorAPConnection", verbose = TRUE)
kq <- corpusQuery(kcon, "Ameisenplage")
-kq <- fetchAll(kq, verbose=TRUE)
+kq <- fetchAll(kq)
}
diff --git a/man/corpusQuery-KorAPConnection-method.Rd b/man/corpusQuery-KorAPConnection-method.Rd
index 3f0d791..9d3da95 100644
--- a/man/corpusQuery-KorAPConnection-method.Rd
+++ b/man/corpusQuery-KorAPConnection-method.Rd
@@ -8,7 +8,7 @@
\usage{
\S4method{corpusQuery}{KorAPConnection}(kco, query, vc = "", KorAPUrl,
metadataOnly = TRUE, ql = "poliqarp", fields = defaultFields,
- accessRewriteFatal = TRUE, verbose = FALSE)
+ accessRewriteFatal = TRUE, verbose = kco@verbose)
}
\arguments{
\item{kco}{\code{\link{KorAPConnection}} object (obtained e.g. from \code{new("KorAPConnection")}}
diff --git a/man/corpusStats-KorAPConnection-method.Rd b/man/corpusStats-KorAPConnection-method.Rd
index 6a4ccc2..486ee1c 100644
--- a/man/corpusStats-KorAPConnection-method.Rd
+++ b/man/corpusStats-KorAPConnection-method.Rd
@@ -6,12 +6,15 @@
\alias{corpusStats}
\title{Fetch information about a (virtual) corpus}
\usage{
-\S4method{corpusStats}{KorAPConnection}(kco, vc = "")
+\S4method{corpusStats}{KorAPConnection}(kco, vc = "",
+ verbose = kco@verbose)
}
\arguments{
\item{kco}{\code{\link{KorAPConnection}} object (obtained e.g. from \code{new("KorAPConnection")}}
\item{vc}{string describing the virtual corpus. An empty string (default) means the whole corpus, as far as it is license-wise accessible.}
+
+\item{verbose}{logical. If \code{TRUE}, additional diagnostics are printed.}
}
\value{
\code{KorAPCorpusStats} object with the slots \code{documents}, \code{tokens}, \code{sentences}, \code{paragraphs}