R/democommands.R

Defines functions demoCommands

Documented in demoCommands

#' Launches an editor containing the commands in a demo
#' @param demo name of demo.
#' @importFrom utils file.edit
#' @export
demoCommands=function(demo){
  if(!.Platform$OS.type=="unix"){
    options(editor = "internal")
  }
  filename = paste(deparse(substitute(demo)),".R",sep="")
  pathname = system.file("demo",filename, package="nclbayes")
  file.edit(pathname,title = filename)
}

Try the nclbayes package in your browser

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

nclbayes documentation built on May 2, 2019, 5:53 p.m.