Fix no-visible-binding-for-global-variable-note-in-r-cmd-check

Change-Id: Icb4ecdb2a3d02bbae8bef7c21d03b88a7107a4d2
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R
index 432dea4..a9882cb 100644
--- a/R/KorAPQuery.R
+++ b/R/KorAPQuery.R
@@ -286,13 +286,14 @@
                                               maxFetch = maxResultsPerPage,
                                               verbose = kqo@korapConnection@verbose,
                                               randomizePageOrder = FALSE) {
+  # https://stackoverflow.com/questions/8096313/no-visible-binding-for-global-variable-note-in-r-cmd-check
+  results <- key <- name <- pubDate <- tmp_positions <- 0
+
   if (kqo@totalResults == 0 || offset >= kqo@totalResults) {
     return(kqo)
   }
   use_korap_api <- Sys.getenv("USE_KORAP_API", unset = NA)
   page <- kqo@nextStartIndex / maxResultsPerPage + 1
-  results <- 0
-  pubDate <- NULL # https://stackoverflow.com/questions/8096313/no-visible-binding-for-global-variable-note-in-r-cmd-check
   collectedMatches <- kqo@collectedMatches
 
   if (randomizePageOrder) {