Skip to content

Instantly share code, notes, and snippets.

@Zepeng-Mu
Created May 18, 2025 01:04
Show Gist options
  • Save Zepeng-Mu/62f685a476497ee270a6a06d1cd62e7c to your computer and use it in GitHub Desktop.
Save Zepeng-Mu/62f685a476497ee270a6a06d1cd62e7c to your computer and use it in GitHub Desktop.
Attach this to the end of Snippets in RStudio -> Tools -> Global options -> Code -> Edit snippets.
snippet script_header
################################################################################
## Script Purpose: ${0}
## Author:Zepeng Mu ([email protected])
## Date: `r format(Sys.time(), "%a, %b %e %Y")`
################################################################################
snippet h1
# ${0:Header1} ----
snippet h2
## ${0:Header2} ----
snippet h3
### ${0:Header3} ----
snippet h4
#### ${0:Header4} ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment