Fix typos

Thanks to spell_check!

Change-Id: I354b9d1a6658ed0457d3c9df64cf0df74bb92d82
diff --git a/R/KorAPConnection.R b/R/KorAPConnection.R
index 13a3b39..be1853a 100644
--- a/R/KorAPConnection.R
+++ b/R/KorAPConnection.R
@@ -19,7 +19,7 @@
 #' @param apiVersion which version of KorAP's API you want to connect to.
 #' @param apiUrl URL of the KorAP web service.
 #' @param accessToken OAuth2 access token. To use authorization based on an access token
-#'   in subsequent queries, intialize your KorAP connection with
+#'   in subsequent queries, initialize your KorAP connection with
 #'   \code{kco <- new("KorAPConnection", accessToken="<access token>")}.
 #'   In order to make the API
 #'   token persistent for the currently used \code{KorAPUrl} (you can have one
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R
index 26393d3..d6137d1 100644
--- a/R/KorAPQuery.R
+++ b/R/KorAPQuery.R
@@ -1,6 +1,6 @@
 #' Class KorAPQuery
 #'
-#' \code{KorAPQuery} objetcs represent the current state of a query to a KorAP server.
+#' \code{KorAPQuery} objects represent the current state of a query to a KorAP server.
 #' New \code{KorAPQuery} objects are typically created by the \code{\link{corpusQuery}} method.
 #'
 #' @include KorAPConnection.R
@@ -91,13 +91,13 @@
 #' @param metadataOnly logical that determines whether queries should return only metadata without any snippets. This can also be useful to prevent access rewrites. Note that the default value is TRUE, unless the connection is authorized (currently not possible).
 #' @param ql string to choose the query language (see \href{https://github.com/KorAP/Kustvakt/wiki/Service:-Search-GET#user-content-parameters}{section on Query Parameters} in the Kustvakt-Wiki for possible values.
 #' @param fields (meta)data fields that will be fetched for every match.
-#' @param accessRewriteFatal abort if query or given vc had to be rewritten due to insufficent rights (not yet implemented).
+#' @param accessRewriteFatal abort if query or given vc had to be rewritten due to insufficient rights (not yet implemented).
 #' @param verbose print some info
 #' @param as.df return result as data frame instead of as S4 object?
-#' @param expand logical that deicdes if \code{query} and \code{vc} parameters are expanded to all of their combinations
+#' @param expand logical that decides if \code{query} and \code{vc} parameters are expanded to all of their combinations
 #' @return Depending on the \code{as.df} parameter, a table or a \code{\link{KorAPQuery}} object that, among other information, contains the total number of results in \code{@totalResults}. The resulting object can be used to fetch all query results (with \code{\link{fetchAll}}) or the next page of results (with \code{\link{fetchNext}}).
 #' A corresponding URL to be used within a web browser is contained in \code{@webUIRequestUrl}
-#' Please make sure to check \code{$collection$rewrites} to see if any unforseen access rewrites of the query's virtual corpus had to be performed.
+#' Please make sure to check \code{$collection$rewrites} to see if any unforeseen access rewrites of the query's virtual corpus had to be performed.
 #'
 #' @examples
 #' # Fetch metadata of every query hit for "Ameisenplage" and show a summary
@@ -344,7 +344,7 @@
 #'
 #' @param kco \code{\link{KorAPConnection}} object (obtained e.g. from \code{new("KorAPConnection")}
 #' @param query string that contains the corpus query. The query language depends on the \code{ql} parameter. Either \code{query} must be provided or \code{KorAPUrl}.
-#' @param conf.level confidence level of the returned confidence interval (passed throgh \code{\link{ci}}  to \code{\link{prop.test}}).
+#' @param conf.level confidence level of the returned confidence interval (passed through \code{\link{ci}}  to \code{\link{prop.test}}).
 #' @param as.alternatives LOGICAL that specifies if the query terms should be treated as alternatives. If \code{as.alternatives} is TRUE, the sum over all query hits, instead of the respective vc token sizes is used as total for the calculation of relative frequencies.
 #' @export
 setMethod("frequencyQuery", "KorAPConnection",
diff --git a/R/RKorAPClient.R b/R/RKorAPClient.R
index 67a35c1..92fc66e 100644
--- a/R/RKorAPClient.R
+++ b/R/RKorAPClient.R
@@ -1,6 +1,6 @@
 #' \code{RKorapClient} package
 #'
-#' R pakcage to access the \href{https://github.com/KorAP/}{KorAP} web service API.
+#' R package to access the \href{https://github.com/KorAP/}{KorAP} web service API.
 #'
 #' See the README.md on
 #' \href{https://github.com/KorAP/RKorAPClient/}{github}
diff --git a/R/ci.R b/R/ci.R
index d3b1102..64f7c0a 100644
--- a/R/ci.R
+++ b/R/ci.R
@@ -7,11 +7,11 @@
 #'
 #'
 #' @seealso
-#' \code{ci} is alread included in \code{\link{frequencyQuery}}
+#' \code{ci} is already included in \code{\link{frequencyQuery}}
 #'
 #' @param df table with columns for absolute and total frequencies.
 #' @param x  column with the observed absolute frequency.
-#' @param N  column with the total frequncies
+#' @param N  column with the total frequencies
 #' @param conf.level confidence level of the returned confidence interval. Must
 #'   be a single number between 0 and 1.
 #'
diff --git a/R/highcharter-helper.R b/R/highcharter-helper.R
index 46d3e8e..9e98114 100644
--- a/R/highcharter-helper.R
+++ b/R/highcharter-helper.R
@@ -7,7 +7,7 @@
 #' @export
 #'
 #' @param df data frame like the value of a \code{\link{frequencyQuery}}
-#' @param as.alternatives boolean decides whether queries should be treatet queries as mutually exclusive and exahustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).
+#' @param as.alternatives boolean decides whether queries should be treated as mutually exclusive and exhaustive wrt. to some meaningful class (e.g. spelling variants of a certain word form).
 #' @param ylabel defaults to \% if \code{as.alternatives} is \code{true} and to "ipm" otherwise.
 #'
 #' @examples