You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+34-6Lines changed: 34 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,17 @@ knitr::opts_chunk$set(
21
21
22
22
`filestamp` makes it easy to add and maintain consistent headers across all files in your project, regardless of programming language. Headers can include copyright notices, file descriptions, authorship information, and other metadata.
23
23
24
+
### What are file headers?
25
+
26
+
File headers are structured comments at the beginning of code files that contain important metadata. For example, a header might include:
27
+
28
+
```r
29
+
# Copyright (c) Acme Corp 2025
30
+
# Author: Jane Developer
31
+
# License: MIT
32
+
# Last updated: 2025-04-21
33
+
```
34
+
24
35
## Installation
25
36
26
37
You can install the development version of `filestamp` from [GitHub][filestamp-gh] with:
@@ -95,6 +106,7 @@ The package comes with several built-in templates:
95
106
-`default` - A simple header with copyright, author, and license information
96
107
-`mit` - MIT License header
97
108
-`gpl-3` - GNU General Public License header
109
+
-`agpl-3` - GNU Affero General Public License header
The package supports many programming languages out of the box:
171
+
`filestamp`supports 15+ programming languages out of the box:
160
172
161
173
```{r}
162
-
#| label: language-supported
174
+
#| label: languages
163
175
#| eval: false
164
-
# List supported languages
176
+
# List all supported languages
165
177
languages()
178
+
```
166
179
167
-
# Register a custom language
180
+
Add support for additional languages:
181
+
182
+
```{r}
183
+
#| label: custom-language
184
+
#| eval: false
185
+
# Register a new language
168
186
language_register(
169
187
"kotlin",
170
188
extensions = c("kt", "kts"),
@@ -176,7 +194,7 @@ language_register(
176
194
177
195
## Variables
178
196
179
-
You can use variables in your templates to customize the header content. The package provides several built-in variables, and you can also define your own.
197
+
Customize your headers with built-in and custom variables:
0 commit comments