# RSP-embedded text to an R script
code <- rscript("Current time is <%=Sys.time()%>
")
cat(code, sep="")
# RSP-embedded text to a shell script
code <- rscript("Current time is <%=date%>
", language="sh")
cat(code, sep="")
Run the code above in your browser using DataLab