R/eatVersion.R

eatVersion <- function ( dep = FALSE ) {
		
		ip <- installed.packages()[,c("Package")]
		
		p <- grepl ( "^eat" , ip )
		
		if ( dep ) {
				deps <- c ( "reshape2" , "igraph", "survey", "Hmisc", "combinat", "fmsb", "psych", "xlsx", "date", "gdata", "sendmailR" , "stringr" , "ggplot2" , "R.utils" , "lme4" , "car" , "mice" )
				p <- p | ( ip %in% deps )
		}
		
		d <- data.frame ( installed.packages()[ p , c("Package","Version") , drop=FALSE ] , stringsAsFactors = FALSE )
		rownames ( d ) <- seq ( along = rownames ( d ) )
		return ( d )
}

Try the eat package in your browser

Any scripts or data that you put into this service are public.

eat documentation built on May 2, 2019, 5:47 p.m.