Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created June 13, 2020 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmyleswhite/8ef20eb5759fb9145870aa13590b6465 to your computer and use it in GitHub Desktop.
Save johnmyleswhite/8ef20eb5759fb9145870aa13590b6465 to your computer and use it in GitHub Desktop.
#!/usr/bin/Rscript
png("output.png")
curve(x^2 * (1 - x)^2, from = 0, to = 1)
dev.off()
# time Rscript example.R
# null device
# 1
#
# real 0m0.394s
# user 0m0.144s
# sys 0m0.055s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment