openjusticeok / ojodb

OJO's R package for opening the black box of our justice system
https://openjusticeok.github.io/ojodb/
GNU General Public License v3.0
8 stars 3 forks source link

Minor qol fixes #135

Closed andrewjbe closed 1 year ago

andrewjbe commented 1 year ago

I'm going to try to make a lot of small quality of life changes on this branch. I'm going to avoid anything that fundamentally alters how the package works. Here's a running list of changes I've made:

  1. I've just added dplyr to the Depends: list. It's annoying to have to remember to call library(dplyr) every time you want to use an ojodb function, so now it's auto-loaded when you call library(ojodb).
andrewjbe commented 1 year ago
  1. I've added a call of toupper() to both ojo_crim_cases() and ojo_civ_cases(), so now you can type the district arguments in any case you want. Putting toupper() directly into the filter() call didn't work (there was some SQL error with the translated WHERE "district" IN UPPER("districts") was happening) so I moved it just before.