mikkelkrogsholm / Rmazon

The goal of Rmazon is to help you download product information and reviews from Amazon.com easily.
GNU General Public License v2.0
12 stars 5 forks source link

Error in reviewFormat variable when fetching reviews #3

Closed BarkleyBG closed 7 years ago

BarkleyBG commented 7 years ago

I'm running into the following issue

> reviews <- Rmazon::get_reviews("1593273843")

Fetching 122 reviews of 'The Art of R Programming: A Tour of Statistical Software Design'
   |+++++++++++++++++++++++++++++++++++++++           | 77% ~03s          
Error: Each variable must be a 1d atomic vector or list.
Problem variables: 'reviewFormat'

FWIW, get_product_info() seems to work fine

This is what I'm running

> 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] Rmazon_0.2

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.7     knitr_1.14      xml2_1.0.0      magrittr_1.5    devtools_1.12.0
 [6] rvest_0.3.2     R6_2.1.0        pbapply_1.3-1   dplyr_0.5.0     stringr_1.1.0  
[11] httr_1.0.0      tools_3.2.3     parallel_3.2.3  DBI_0.5-1       selectr_0.2-3  
[16] git2r_0.15.0    withr_1.0.2     htmltools_0.3.5 lazyeval_0.2.0  yaml_2.1.13    
[21] assertthat_0.1  digest_0.6.8    tibble_1.2      base64enc_0.1-3 rsconnect_0.5  
[26] curl_0.9.6      memoise_1.0.0   evaluate_0.8    rmarkdown_1.1   stringi_1.0-1  
[31] XML_3.98-1.3    jsonlite_1.1   

Thanks for your help!

mikkelkrogsholm commented 7 years ago

It works on my end. Don't know why it would throw an error after it has already rund 77%...

BarkleyBG commented 7 years ago

reinstallation of package (as per #4) results in working code. Thanks