Issues with gtrendsR queries
<p>I am receiving two errors on <code>gTrendsR</code> searches. I attempted to use the package with both the CRAN download and devel version from <a href="https://github.com/PMassicotte/gtrendsR" rel="nofollow">https://github.com/PMassicotte/gtrendsR</a>.</p>

<pre><code>library(gtrendsR)
gconnect(usr, psw, verbose=TRUE)
#Google login successful!
sport_trend &lt;- gtrends(c("nhl", "nba", "nfl"))
#Error in names(trend) &lt;- make.names(paste(kw, geo)) : 
#  'names' attribute [3] must be the same length as the vector [0]

gtrends("Kim Kardashian")
#Error: Not enough search volume. Please change your search terms.
</code></pre>

<p>I have tried many search terms to no avail. The function in question appears to be <code>.processResults</code>:</p>

<pre><code>  kw &lt;- trimws(unlist(strsplit(queryparams[1], ","), use.names = FALSE))
  geo &lt;- trimws(unlist(strsplit(queryparams[3], ","), use.names = FALSE))
  names(trend) &lt;- make.names(paste(kw, geo))
</code></pre>

<p>These expressions do not appear to rely on the search results but on the query itself. The second error stems from:</p>

<pre><code>if (length(vec) &lt; 2) {
    stop("Not enough search volume. Please change your search terms.",
         call. = FALSE)
  }
</code></pre>

<p>The variable <code>vec</code> gets its value from <code>getForm</code> which I could not find documentation for. I have tried to specify the query items but that did not work either. Restarting the R session also did not resolve the issue. </p>

<p>The session information:</p>

<pre><code>sessionInfo()
# R version 3.2.3 (2015-12-10)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows 7 x64 (build 7601) Service Pack 1
# 
# locale:
#   [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
# [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
# [5] LC_TIME=English_United States.1252    
# 
# attached base packages:
#   [1] stats     graphics  grDevices utils     datasets  methods   base     
# 
# other attached packages:
#   [1] gtrendsR_1.3.3
# 
# loaded via a namespace (and not attached):
#   [1] zoo_1.7-12       colorspace_1.2-6 scales_0.4.0     googleVis_0.5.10 plyr_1.8.3      
# [6] tools_3.2.3      gtable_0.2.0     RCurl_1.95-4.8   Rcpp_0.12.3      ggplot2_2.1.0   
# [11] RJSONIO_1.3-0    grid_3.2.3       munsell_0.4.3    bitops_1.0-6     lattice_0.20-33
</code></pre>