USAID-OHA-SI / mindthegap

Munges and returns estimates from UNAIDS data.
https://usaid-oha-si.github.io/mindthegap/
Other
4 stars 0 forks source link

Add in package check #26

Closed achafetz closed 1 year ago

achafetz commented 2 years ago

Now that gagglr is live, you can add a package check to mindthegap so the user knows if there is a newer version of the package available.

In the DESCRIPTION file, add gagglr to Remotes

Remotes: 
    USAID-OHA-SI/gagglr

Add a new file under R, R/zzz.R

.onAttach <- function(...) {
  if(requireNamespace("gagglr", quietly = TRUE))
    gagglr::oha_check("mindthegap", suppress_success = TRUE)
}
karishmas26 commented 1 year ago

0dc6f86