From d27d203252e563856bd0feaa109c85be212a85e5 Mon Sep 17 00:00:00 2001 From: John Laing Date: Sat, 22 Oct 2022 17:43:35 -0400 Subject: [PATCH] warn for maxResults > 1000 --- R/lookup.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/lookup.R b/R/lookup.R index 266bc0b..fa57316 100644 --- a/R/lookup.R +++ b/R/lookup.R @@ -72,5 +72,6 @@ lookupSecurity <- function(query, yellowkey <- paste("YK", "FILTER", toupper(yellowkey), sep="_") language <- paste("LANG", "OVERRIDE", toupper(language), sep="_") + if (maxResults > 1000) warning("results may be limited to 1000 by the API") lookup_Impl(con, query, yellowkey, language, maxResults, verbose) }