R package to have a bunch of useful functions
load this package using:
library(devtools)
install_github(repo='etabari/ehsanr')
In case you don't have write access to the default libPath you could use the following, to install ehsanr in your last library path entry.
library(devtools)
withr::with_libpaths(new = .libPaths()[length(.libPaths())],
install_github(repo='etabari/ehsanr')
)