if (FALSE) {
# Example 1: Open new R script file
script.new()
# Example 2: Open new R script file and run some code
script.new("#----------------------------
# Example
# Generate 100 random numbers
rnorm(100)")
}
Run the code above in your browser using DataLab