R/notepad.R

Defines functions cmd explorer notepad

Documented in cmd explorer notepad

Notepad = notepad = function(file=""){
      if (interactive()) {
        if (.Platform$OS.type == "windows") {
shell(paste('notepad', file), wait=FALSE)
        } else {
          .WindowsOnly()
        }
      } else {
        .InteractiveOnly()
      }
return(invisible(NULL))
}



Explorer = explorer = function(){
      if (interactive()) {
        if (.Platform$OS.type == "windows") {
shell('explorer "."', wait=FALSE)
        } else {
          .WindowsOnly()
        }
      } else {
        .InteractiveOnly()
      }
return(invisible(NULL))
}


CMD = cmd = function(){
      if (interactive()) {
        if (.Platform$OS.type == "windows") {
shell('cmd', wait=FALSE)
        } else {
          .WindowsOnly()
        }
      } else {
        .InteractiveOnly()
      }
return(invisible(NULL))
}

Try the BrailleR package in your browser

Any scripts or data that you put into this service are public.

BrailleR documentation built on July 26, 2023, 5:46 p.m.