Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peek_cjsg() returns error when there are 0 results #23

Closed
jtrecenti opened this issue May 26, 2018 · 1 comment
Closed

peek_cjsg() returns error when there are 0 results #23

jtrecenti opened this issue May 26, 2018 · 1 comment
Assignees
Labels

Comments

@jtrecenti
Copy link
Member

Example

n_pags <- esaj::peek_cjsg(query = "", subjects = "14")  
#> There are 169 pages to download
#> This should take around 1.4 minutes
n_pags                                                  
#> [1] 167
                                                        
n_pags <- esaj::peek_cjsg(query = "", subjects = "5944")
#> Error in ceiling(.): non-numeric argument to mathematical function

I think it should throw a message and return 0L

Also the result is always numeric. it should be an integer.

@clente
Copy link
Contributor

clente commented May 29, 2018

[2e14098] esaj::peek_cjsg() now reports that there are no pages to download.

@clente clente closed this as completed May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants