Replace our log.info with log_info to avoid name clashes
Change-Id: Ib2d9b4a22d4d4e761b7b22fc8ad2b377658742d4
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R
index b6ed0da..d5894b2 100644
--- a/R/KorAPQuery.R
+++ b/R/KorAPQuery.R
@@ -198,20 +198,20 @@
paste(fields, collapse = ","),
if (metadataOnly) '&access-rewrite-disabled=true' else ''
)
- log.info(verbose, "Searching \"", query, "\" in \"", vc, "\"", sep =
+ log_info(verbose, "Searching \"", query, "\" in \"", vc, "\"", sep =
"")
res = apiCall(kco, paste0(requestUrl, '&count=0'))
if (is.null(res)) {
- log.info(verbose, " [failed]\n")
+ log_info(verbose, " [failed]\n")
message("API call failed.")
totalResults <- 0
} else {
totalResults <-res$meta$totalResults
- log.info(verbose, ": ", totalResults, " hits")
+ log_info(verbose, ": ", totalResults, " hits")
if(!is.null(res$meta$cached))
- log.info(verbose, " [cached]\n")
+ log_info(verbose, " [cached]\n")
else
- log.info(verbose, ", took ", res$meta$benchmark, "\n", sep = "")
+ log_info(verbose, ", took ", res$meta$benchmark, "\n", sep = "")
}
if (as.df)
data.frame(