https://github.com/rscherrer/r-header
The header I add to my R scripts
https://github.com/rscherrer/r-header
Last synced: 2 months ago
JSON representation
The header I add to my R scripts
- Host: GitHub
- URL: https://github.com/rscherrer/r-header
- Owner: rscherrer
- Created: 2021-05-03T10:38:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T10:53:39.000Z (about 4 years ago)
- Last Synced: 2025-01-18T14:33:12.525Z (4 months ago)
- Language: R
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r-header
Here is the header I like to add to my standalone R scripts (i.e. not scripts that contain functions as part of a package).
```{r}
## ---------------------------
##
## Script name:
##
## Purpose of script:
##
## How to use:
##
## Author: Raphael Scherrer
##
## Date Created: `r paste(Sys.Date())`
##
## This script comes with no guarantee whatsoever.
##
## Copyright (c) Raphael Scherrer, `r paste(format(Sys.Date(), "%Y"))`
##
## Find me on GitHub at https://github.com/rscherrer
##
## Email:
## [email protected]
## [email protected]
## [email protected]
##
## ---------------------------
```A header can be automatically added to a script in RStudio by using [snippets](https://support.rstudio.com/hc/en-us/articles/204463668-Code-Snippets).
This was inspired by stumbling upon Tim Farewell's [website](https://timfarewell.co.uk/my-r-script-header-template/).