USAID-OHA-SI / glamr

SI Utilities
https://usaid-oha-si.github.io/glamr/
Other
2 stars 3 forks source link

Functionalize script ref id generation #87

Closed baboyma closed 11 months ago

baboyma commented 11 months ago

Add a utility function to generate ref id code.

Note: to be used for those who don't use snippets and/or save scripts as.

Sample:

function() {
  Sys.time() |> 
    digest::sha1() |> 
    substr(start = 1, stop = 8)
}