Learn R Programming

radiant (version 0.1.95)

win_launcher: Create a launcher for Windows (.bat)

Description

Create a launcher for Windows (.bat)

Usage

win_launcher(app = c("marketing", "quant", "base"))

Arguments

app
App to run when the desktop icon is double-clicked ("marketing", "quant", or "base"). Default is "marketing"

Details

On Windows a file named 'radiant.bat' will be put on the desktop. Double-click the file to launch the specified Radiant app

Examples

Run this code
if (interactive()) {
  if(Sys.info()["sysname"] != "Windows") {
    win_launcher()
    fn <- paste0(Sys.getenv("USERPROFILE") ,"/Desktop/radiant.bat")
    if(!file.exists(fn))
      stop("Windows launcher not created")
    else
      unlink(fn)
  }
}

Run the code above in your browser using DataLab