View source: R/CoreFunctions.R
addToCommandFile | R Documentation |
addToCommandFile
writes lines to a command file (batch file). The normal behavior is to write comments
but with comment=FALSE
, you can write commands.
addToCommandFile(
line = "",
cmdFile = NULL,
cmdClear = FALSE,
comment = TRUE,
addLine = TRUE
)
line |
character: line to be written to the command file. You can start or end |
cmdFile |
character: contains the name of the file to which commands should be written. |
cmdClear |
boolean: indicates file for command should be deleted before the command line is written. Use this option with caution as it will wipe out the contents of the command file. |
comment |
boolean: |
addLine |
boolean: if TRUE, a blank line is added to the command file before writing |
invisible boolean indicating success or failure
## Not run:
addToCommandFile("This is a comment!!", "Test/test.bat")
# add a single blank line to the command file when setGlobalCommandOptions has
# been called to set the command file name
addToCommandFile(addLine = FALSE, comment = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.