Introduce env variable KORAP_URL to use as default if set
Change-Id: I8f9d77723c5b56ba154a21429236c7501195d54a
diff --git a/man/KorAPConnection-class.Rd b/man/KorAPConnection-class.Rd
index a29ef7b..46032b9 100644
--- a/man/KorAPConnection-class.Rd
+++ b/man/KorAPConnection-class.Rd
@@ -14,7 +14,8 @@
\usage{
\S4method{initialize}{KorAPConnection}(
.Object,
- KorAPUrl = "https://korap.ids-mannheim.de/",
+ KorAPUrl = if (is.null(Sys.getenv("KORAP_URL") | Sys.getenv("KORAP_URL") == ""))
+ "https://korap.ids-mannheim.de/" else Sys.getenv("KORAP_URL"),
apiVersion = "v1.0",
apiUrl,
accessToken = getAccessToken(KorAPUrl),
@@ -43,7 +44,9 @@
\arguments{
\item{.Object}{KorAPConnection object}
-\item{KorAPUrl}{URL of the web user interface of the KorAP server instance you want to access.}
+\item{KorAPUrl}{URL of the web user interface of the KorAP server instance you want to access.
+Defaults to the environment variable \code{KORAP_URL} if set and to the IDS Mannheim KorAP main instance,
+otherwise.}
\item{apiVersion}{which version of KorAP's API you want to connect to.}