/NZPoliceUtilities

Helper R package to assist the design of R products for New Zealand Police's National Road Policing Centre (NRPC).

Primary LanguageR

NZPoliceUtilities

Helper R package to assist the design of R products for New Zealand Police's (NZP) National Road Policing Centre (NRPC).

Will contain useful functions and non-private data for quick reference and auto-formatting, i.e.

  • loading the approved NZP colours as an R theme, for use in graphing
  • pulling in and pushing out files from arbitrary paths, read from elsewhere and stored in env instead of as plaintext in codebase
    • means that file path and/or file doesnt need to be written inside the code

This is NOT to be used to store filepaths, actual files or data on NZP processes/people.

To load this package in R:

  1. Install the required packages for loading non-CRAN packages
  2. Load this package
install.packages("devtools") # only have to do this if `devtools` has never been installed before
install.packages("stringr") # only have to do this if `stringr` has never been installed before
devtools::install_github("Argel-Tal/NZPoliceUtilities")

To see the full list of exported functions:

library("NZPoliceUtilities")
ls("package:NZPoliceUtilities")

WFH to do

  • Convert this to binaries so it can be loaded without Rtools 🙄😠

Credits

Author(s):

Jack MacCormick

  • Phone: +64 21 846 817
  • Email: jack.maccormick@police.govt.nz

Style attributions:

Fong Chun Chan