This is an Attic to store some useful R code, I don’t want to search them every time, so I put these code at here.

Check packages if they are installed

check.package <- function(pkg){ new.pkg