install dplyr if not installed; write summary data frame to file