# NOT RUN {
x <- rstring("A random integer in [1,100]: <%=sample(1:100, size=1)%>\n")
cat(x)
# Passing arguments
x <- rstring("A random integer in [1,<%=K%>]: <%=sample(1:K, size=1)%>\n", args=list(K=50))
cat(x)
# }
Run the code above in your browser using DataLab