Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

setting start param in ft_search doesn't appear to change search results #180

Closed
ghost opened this issue Oct 16, 2018 · 2 comments
Closed
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Oct 16, 2018

Hi @sckott,
I have been trying to use ft_search to extract articles in batches so I limit searches to 2000 as anything greater than this is too slow (i.e. > 20 min) and results in the following error

Error: parse error: premature EOF (right here) ------^ 

so I have tried using the start param in ft_search, but if I start at 10 or 2000 it doesn't make a differences (i.e. always seems to start from zero).

here is an example:

 res_1 <- ft_search(query = 'ecology', from = 'scopus', 
                    scopusopts = list(
                      key = Sys.getenv('ELSEVIER_SCOPUS_KEY'),
                      facets = "subjarea(count=100)"
                    ), limit = 10)



> head(res_1$scopus$data$`dc:title`)
[1] "Asymptotic behavior of equilibrium point for a system of fourth-order rational difference equations"
[2] "Dynamics and solutions of some recursive sequences of higher order"                                 
[3] "Global Attractivity and periodic nature of a higher order difference equation"                      
[4] "Asymptotic lines of a discrete lotka-volterra competition model"                                    
[5] "Qualitative study of solution of some higher order difference equations"                            
[6] "Creativity: linchpin in the quest for a viable theory of cultural evolution"        

res_2 <- ft_search(query = 'ecology', from = 'scopus', 
                   scopusopts = list(
                     key = Sys.getenv('ELSEVIER_SCOPUS_KEY'),
                     facets = "subjarea(count=100)"
                   ), limit = 10, start = 10)

> head(res_2$scopus$data$`dc:title`)
[1] "Asymptotic behavior of equilibrium point for a system of fourth-order rational difference equations"
[2] "Dynamics and solutions of some recursive sequences of higher order"                                 
[3] "Global Attractivity and periodic nature of a higher order difference equation"                      
[4] "Asymptotic lines of a discrete lotka-volterra competition model"                                    
[5] "Qualitative study of solution of some higher order difference equations"                            
[6] "Creativity: linchpin in the quest for a viable theory of cultural evolution"                
Session Info
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] topicmodels_0.2-7   tidyr_0.8.1         tidytext_0.1.9.900  dplyr_0.7.6         tm_0.7-4            NLP_0.1-11          ggplot2_3.0.0       fulltext_1.0.2.9215

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.19      lubridate_1.7.4   lattice_0.20-35   assertthat_0.2.0  digest_0.6.18     mime_0.5          slam_0.1-43       R6_2.3.0          plyr_1.8.4        backports_1.1.2  
[11] stats4_3.5.0      httr_1.3.1        pillar_1.2.3      rlang_0.2.2       lazyeval_0.2.1    curl_3.2          data.table_1.11.8 miniUI_0.1.1.1    whisker_0.3-2     rentrez_1.2.1    
[21] Matrix_1.2-14     DT_0.4            urltools_1.7.1    rcrossref_0.8.4   stringr_1.3.1     htmlwidgets_1.3   triebeard_0.3.0   munsell_0.5.0     broom_0.5.0       shiny_1.1.0      
[31] compiler_3.5.0    janeaustenr_0.1.5 httpuv_1.4.5      pkgconfig_2.0.1   htmltools_0.3.6   tidyselect_0.2.4  tibble_1.4.2      solrium_1.0.0     httpcode_0.2.0    microdemic_0.3.0 
[41] XML_3.98-1.16     hoardr_0.5.0      withr_2.1.2       later_0.7.3       SnowballC_0.5.1   rappdirs_0.3.1    crul_0.6.0        grid_3.5.0        nlme_3.1-137      jsonlite_1.5     
[51] xtable_1.8-2      gtable_0.2.0      magrittr_1.5      storr_1.2.0       tokenizers_0.2.1  scales_1.0.0      bibtex_0.4.2      stringi_1.2.3     aRxiv_0.5.16      reshape2_1.4.3   
[61] promises_1.0.1    bindrcpp_0.2.2    xml2_1.2.0        tools_3.5.0       glue_1.2.0        purrr_0.2.5       parallel_3.5.0    yaml_2.2.0        colorspace_1.3-2  rplos_0.8.4      
[71] bindr_0.1.1       modeltools_0.2-22
@sckott
Copy link
Contributor

sckott commented Oct 16, 2018

thanks @lucymerobinson will have a look.

@sckott sckott added this to the v1.1.0 milestone Oct 16, 2018
@sckott sckott added the bug label Oct 16, 2018
@sckott sckott closed this as completed in 8b69cad Oct 16, 2018
@sckott
Copy link
Contributor

sckott commented Oct 16, 2018

can you reinstall and try again please and thx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant