Skip to content

Commit 706b01c

Browse files
committed
Project files
1 parent 9f3c1f7 commit 706b01c

File tree

8 files changed

+169
-0
lines changed

8 files changed

+169
-0
lines changed

.Rbuildignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
^LICENSE\.md$
2+
^\.github$
3+
^_pkgdown\.yml$
4+
^docs$
5+
^pkgdown$
6+
^README\.Rmd$
7+
^.*\.Rproj$
8+
^\.Rproj\.user$
9+
^\.devcontainer$
10+
^testing$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: r-lib/actions/setup-pandoc@v2
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
use-public-rspm: true
42+
43+
- uses: r-lib/actions/setup-r-dependencies@v2
44+
with:
45+
extra-packages: any::rcmdcheck
46+
needs: check
47+
48+
- uses: r-lib/actions/check-r-package@v2
49+
with:
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/pkgdown.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/[email protected]
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata
5+
docs
6+
.DS_Store

DESCRIPTION

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Package: filestamp
2+
Title: Manage Copyright and Code Headers for R Files
3+
Version: 0.0.1
4+
Authors@R: c(
5+
person("James Joseph", "Balamuta",
6+
email = "[email protected]",
7+
role = c("aut", "cre"),
8+
comment = c(ORCID = "0000-0003-2826-8458")
9+
)
10+
)
11+
Description: Provides tools for creating, adding, and updating standardized headers
12+
for R files. Headers can include copyright notices, file descriptions, author information,
13+
and other metadata. The package supports both individual files and batch processing of
14+
entire directories.
15+
URL: https://r-pkg.thecoatlessprofessor.com/filestamp/, https://github.com/coatless-rpkg/filestamp
16+
BugReports: https://github.com/coatless-rpkg/filestamp/issues
17+
License: AGPL (>= 3)
18+
Depends: R (>= 4.4)
19+
Imports:
20+
stringr,
21+
utils
22+
Suggests:
23+
testthat (>= 3.0.0),
24+
knitr,
25+
rmarkdown
26+
Encoding: UTF-8
27+
Roxygen: list(markdown = TRUE)
28+
RoxygenNote: 7.3.2
29+
Config/testthat/edition: 3

_pkgdown.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: ~
2+
template:
3+
bootstrap: 5
4+

filestamp.Rproj

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Version: 1.0
2+
ProjectId: 81ea62c6-5eed-4851-a31f-22962b0bd8f6
3+
4+
RestoreWorkspace: Default
5+
SaveWorkspace: Default
6+
AlwaysSaveHistory: Default
7+
8+
EnableCodeIndexing: Yes
9+
UseSpacesForTab: Yes
10+
NumSpacesForTab: 2
11+
Encoding: UTF-8
12+
13+
RnwWeave: Sweave
14+
LaTeX: pdfLaTeX
15+
16+
BuildType: Package
17+
PackageUseDevtools: Yes
18+
PackageInstallArgs: --no-multiarch --with-keep.source
19+
PackageRoxygenize: rd,collate,namespace

0 commit comments

Comments
 (0)