Commit 8d3be421 authored by Holger Brandl's avatar Holger Brandl

silenced loading or core_commons

parent a89fb3b3
...@@ -50,7 +50,7 @@ require_auto <- function(x){ ...@@ -50,7 +50,7 @@ require_auto <- function(x){
} }
loadpack <- function(x){ loadpack <- function(x, warn.conflicts=T){
x <- as.character(substitute(x)); x <- as.character(substitute(x));
if(!isTRUE(x %in% .packages(all.available=TRUE)) && any(available.packages()[,1]==x)) { if(!isTRUE(x %in% .packages(all.available=TRUE)) && any(available.packages()[,1]==x)) {
...@@ -69,7 +69,7 @@ loadpack <- function(x){ ...@@ -69,7 +69,7 @@ loadpack <- function(x){
} }
## load it using a library function so that loadpack errors if package is still not ins ## load it using a library function so that loadpack errors if package is still not ins
eval(parse(text=paste("library(", x, ", quietly=T)", sep=""))) eval(parse(text=paste("library(", x, ", quietly=T, warn.conflicts=", warn.conflicts, ")", sep="")))
} }
check_version = function(pkg_name, min_version) { check_version = function(pkg_name, min_version) {
...@@ -82,33 +82,34 @@ check_version = function(pkg_name, min_version) { ...@@ -82,33 +82,34 @@ check_version = function(pkg_name, min_version) {
######################################################################################################################## ########################################################################################################################
## load core packages ## load core packages
require_auto(plyr) loadpack(plyr)
require_auto(stringr) loadpack(stringr)
require_auto(reshape2) loadpack(reshape2)
#require_auto(reshape2, quietly=T, warn.conflicts=F) #loadpack(reshape2, quietly=T, warn.conflicts=F)
## load on purpose after plyr ## load on purpose after plyr
require_auto(dplyr) loadpack(dplyr, warn.conflicts=F)
require_auto(magrittr) loadpack(magrittr, warn.conflicts=F)
require_auto(tidyr) loadpack(tidyr, warn.conflicts=F)
## needed for caching ## needed for caching
require_auto(digest) loadpack(digest)
require_auto(readr) loadpack(readr)
require_auto(readxl) suppressWarnings(loadpack(readxl)) ## supress differring build number
#loadpack(readxl) ## supress differring build number
## common plotting requirements since they are omnipresent ## common plotting requirements since they are omnipresent
require_auto(ggplot2) loadpack(ggplot2)
require_auto(scales) loadpack(scales, warn.conflicts=F)
require_auto(grid) loadpack(grid)
## for table exploration without using Rstudio ## for table exploration without using Rstudio
require_auto(DT) loadpack(DT)
## moved into datatable_commons because replaced almost everywhere with dplyr ## moved into datatable_commons because replaced almost everywhere with dplyr
#require_auto(data.table) #loadpack(data.table)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment