Skip to content

Commit bd8281a

Browse files
committed
initial commit
0 parents  commit bd8281a

10 files changed

+131
-0
lines changed

.Rbuildignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
^README\.Rmd$
2+
^_pkgdown\.yml$
3+
^README\.md$
4+
^makefile$
5+
^aaa.Rmd$
6+
^vignettes/makefile$
7+
^.*\.Rproj$
8+
^\.Rproj\.user$
9+
^\.github$

.github/.gitignore

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

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

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: [push, pull_request]
2+
3+
name: R-CMD-check
4+
5+
jobs:
6+
R-CMD-check:
7+
runs-on: macOS-latest
8+
if: "!(contains(github.event.head_commit.message, 'ci skip')||contains(github.event.head_commit.message, 'skip ci'))"
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: r-lib/actions/setup-r@master
12+
- name: Install dependencies
13+
run: |
14+
install.packages(c("remotes", "rcmdcheck"))
15+
remotes::install_github("r-lib/pkgapi")
16+
remotes::install_github("mpadge/packgraph")
17+
remotes::install_deps(dependencies = TRUE)
18+
shell: Rscript {0}
19+
- name: Check
20+
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
21+
shell: Rscript {0}

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
inst/doc
5+
aaa\.Rmd*
6+
# History files
7+
.Rhistory
8+
.Rapp.history
9+
# Session Data files
10+
.RData
11+
# Output files from R CMD build
12+
/*.tar.gz
13+
# vim files
14+
.*.un~
15+
.*.swp
16+
# compiled object files
17+
*.o
18+
*.so

DESCRIPTION

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Package: allcontributor
2+
Title: Acknowledge all contributors in your 'README'
3+
Version: 0.0.0.001
4+
Authors@R: c(
5+
person("Mark", "Padgham", email="mark.padgham@email.com", role=c("aut", "cre")))
6+
Description: Acknowledge all contributors in your 'README'.
7+
License: GPL-3
8+
Encoding: UTF-8
9+
LazyData: true
10+
Suggests:
11+
knitr,
12+
rmarkdown
13+
VignetteBuilder: knitr
14+
URL: https://github.com/mpadge/allcontributor
15+
BugReports: https://github.com/mpadge/allcontributor/issues
16+
RoxygenNote: 7.1.0
17+
Roxygen: list(markdown = TRUE)
18+
Language: en-GB

NAMESPACE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated by roxygen2: do not edit by hand
2+

R/allcontributor-package.R

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#' @keywords internal
2+
"_PACKAGE"
3+
4+
# The following block is used by usethis to automatically manage
5+
# roxygen namespace tags. Modify with care!
6+
## usethis namespace: start
7+
## usethis namespace: end
8+
NULL

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# allcontributor
2+
3+
<!-- badges: start -->
4+
5+
[![R build
6+
status](https://github.com/mpadge/allcontributor/workflows/R-CMD-check/badge.svg)](https://github.com/mpadge/allcontributor/actions?query=workflow%3AR-CMD-check)
7+
[![Project Status:
8+
Concept](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)
9+
<!-- badges: end -->
10+
11+
Acknowledge all contributors in your 'README'. Just an alternative
12+
implementation in R of the original
13+
[`all-contributors`](https://github.com/all-contributors/all-contributors), but
14+
at the moment restricted to automatic addition of direct code contributors
15+
only.
16+

makefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
LFILE = README
2+
3+
all: knith #open
4+
5+
knith: $(LFILE).Rmd
6+
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q
7+
8+
knitr: $(LFILE).Rmd
9+
echo "rmarkdown::render('$(LFILE).Rmd',rmarkdown::md_document(variant='gfm'))" | R --no-save -q
10+
11+
open: $(LFILE).html
12+
xdg-open $(LFILE).html &
13+
14+
clean:
15+
rm -rf *.html *.png README_cache

man/allcontributor-package.Rd

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)