# NOT RUN {
library(remoter)
### NOTE first run a server via remoter::server() )in a separate R session.
### For simplicity, assume they are on the same machine.
# Run a script in an R file on the local/client machine
file <- "/path/to/an/R/script.r"
batch(file=file)
# Run a script stored in a character vector
script <- "1+1"
batch(script="1+1")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab