Subversion Repositories bdplot

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

### Overruling with local config files if present.
### if reread=TRUE, local config files are reread. 
bd.reset <- function(reread=FALSE){
  if(reread){
    .bdsetpars(.bdconf.default())
    wd <- getwd()
    if(!is.na(file.info("~/.bdp_config.R")$size))
      {
        cat("Sourcing ~/.bdp_config.R\n")
        source(file="~/.bdp_config.R")
      }
    if(!is.na(file.info(paste(wd,"bdp_config_local.R",sep="/"))$size))
      {
        cat("Sourcing bdp_config_local.R\n")
        source(file="bdp_config_local.R")
      }
    ##     .BDPars.default should be set to .BDPars
    .bdsetdefpars(.bdgetpars())
  } else {
    .bdsetpars(.bdgetdefpars())
  }

### this solution is kind of ugly. If the two lists contain elements of the same name, the first of them will be used. Templates should also be used from user env.
  .bdsetpars(c(.bdgetpars(),  .bdpapertemplates()))
  
}