R/zzz.R

Defines functions .onLoad

# This will run on starup, detect your device,
# and then change different function default values.
.onLoad <- function(libname, pkgname){
    systemType <- Sys.info()[1]
    if( systemType != "Windows" ){
        formals(tcd)$info <<- F
        formals(tcd)$bcex <<- 0.5
        
        windows <<- cairoDevice::Cairo
        formals(windows)$pointsize <<- 7
        
        formals(PeakFunc7)$bcex <<- 1.5
        formals(RDView)$wh <<- 11
        formals(RDView)$hh <<- 6
    }

    # hi <- tryCatch(
    #     invisible(reticulate::import('keras'))
    #     ,error=function(e) NULL)

}
leeleavitt/procPharm documentation built on Feb. 3, 2021, 11:43 a.m.