Update rlibrary_dependency.r
Update rlibrary_dependency.r

brew added
oltkkol/vmod
rlibrary <- function(libraryName, fInstall = NULL){
	prequire <- function() return(require(libraryName, character.only=T))

	if (prequire() == F){
		if (is.function(fInstall)){
			fInstall()
		}else{
			install.packages(libraryName)
		}
		library(libraryName, character.only=T)
	}
}

stop_quietly <- function() {
  opt <- options(show.error.messages = FALSE)
  on.exit(options(opt))
  stop()
}

rlibrary("brew")

rlibrary <- function(libraryName, fInstall = NULL){
	prequire <- function() return(require(libraryName, character.only=T))

	if (prequire() == F){
		if (is.function(fInstall)){
			fInstall()
		}else{
			install.packages(libraryName)
		}
		library(libraryName, character.only=T)
	}
}

stop_quietly <- function() {
  opt <- options(show.error.messages = FALSE)
  on.exit(options(opt))
  stop()
}