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

Fail behavior #18

Open
sckott opened this issue Jul 9, 2015 · 3 comments
Open

Fail behavior #18

sckott opened this issue Jul 9, 2015 · 3 comments

Comments

@sckott
Copy link

sckott commented Jul 9, 2015

E.g., for packages that don't exist:

http://cranlogs.r-pkg.org/downloads/total/last-day/doesnotexist

[
  {
      start: "2015-07-07",
      end: "2015-07-07",
      downloads: 0,
      package: "doesnotexist"
  }
]

I would think a pkg that's not found would give a 404 - of course I know that package doesn't exist, but a machine doesn't know

@gaborcsardi
Copy link
Contributor

Currently I cannot tell if a package does not exist, or just was not downloaded. For this I would need to cross-reference the crandb JSON db. Certainly possible, but somewhat cumbersome, so I haven't done it yet.

@sckott
Copy link
Author

sckott commented Jul 10, 2015

Okay, makes sense, thanks again

@gaborcsardi
Copy link
Contributor

Note for myself. This could be implemented by getting the list of packages (active + archived) from crandb periodically, e.g. once a day, storing it in (say) Redis, and using that as a baseline.

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

No branches or pull requests

2 participants