Defines functions PrepareWriteR

Documented in PrepareWriteR

# Getting started with the WriteR application
# only for Windows users at present.

PrepareWriteR =
    function(Author = getOption("BrailleR.Author")) {
      if (interactive()) {
        if (.Platform$OS.type == "windows") {
          RHome = gsub("/", "\\\\\\\\", Sys.getenv("R_HOME"))
          MyHome = gsub("/", "\\\\\\\\", gsub("\\\\", "/", Sys.getenv("HOME")))

    "RDirectory": "', RHome, '\\\\bin\\\\', version$arch,
    "filename": "untitled.Rmd",
    "newText": "# \\n## by ',
                  Author, ' on \\n\\n",
'), file = 'WriteROptions')

          message("The settings file for WriteR has been created.")

          file.copy(paste0(system.file(package = "BrailleR"), "/Python/Writer/",
                           c("WriteR.pyw", "HelpPage.html", "HelpPage.Rmd",
                             "Basics.Rmd")), ".")
              "Copies of the main wxPython script and help page documents have been copied \ninto your working directory.")
              "You can move these files to your preferred folder for WriteR, \nor start working here.")
        } else {
              "This function is for users running R under the Windows operating system.\n")
      } else {
        warning("This function is meant for use in interactive mode only.\n")

Try the BrailleR package in your browser

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

BrailleR documentation built on July 7, 2017, 9:03 a.m.