Subversion Repositories bdplot

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pdel 1
#### bdp is a necessary function to edit the internal .BDPars
2
bdp <- function(...)
3
  {
4
    single <- FALSE
5
    args <- list(...)
6
 
7
### case one.
8
### No arguments.
9
### Should just return the contents of .BDPars
10
    if (!length(args)) {
11
      args <- as.list(.bdgetpars())
12
      args
13
    } else {
14
### case 2
15
### arguments given. These must be written to .BDPars
16
      BDPars <- .bdgetpars()
17
      for(arg in names(args)){
18
        BDPars[[arg]] <- args[[arg]]
19
      }
20
      .bdsetpars(BDPars)
21
    }
22
 
23
  }
24
 
25
 
26
 
27
 
28
### leftovers from par(). Maybe necessary.
29
## if (all(unlist(lapply(args, is.character)))) 
30
##         args <- as.list(unlist(args))
31
##       if (length(args) == 1) {
32
##         if (is.list(args[[1]]) | is.null(args[[1]])) 
33
##           args <- args[[1]]
34
##         else if (is.null(names(args))) 
35
##           single <- TRUE
36
##       }
37
 
38