R - Option (Global Options)

Card Puncher Data Processing

About

Global Option in R

Management

List

  • all options
list = options() 
  • one
(list|null)= options(optionName)

Get

getOption('optionName', default = NULL)

Set

  • Set the editor and save the previous value
old.o <- options(editor = "nedit")

If then

if(as.logical(getOption("performCleanp", TRUE)))
   cat("do cleanup\n")
   
# or
tmp <- getOption("performCleanup")
if(is.null(tmp))
  tmp <- TRUE
if(tmp)
   cat("do cleanup\n")   





Discover More
Card Puncher Data Processing
R - (Package) Repository

Package repository Cran is th default repository: CRAN. see also: as Example...



Share this page:
Follow us:
Task Runner