-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refresh package for the New Year (#5)
* Bump package Update roxygen2 Add GitHub URLs * Start new release notes * Rename rproj * Update cran comments * Fix citation... * Promote to functions * Improve documentation Expand error messages Update copyright * Remove TravisCI * Add GitHub Actions * Update README page * No test coverage is needed right now...
- Loading branch information
Showing
37 changed files
with
372 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ README\.md | |
cran-comments\.md | ||
^LICENSE\.md$ | ||
^cran-comments\.md$ | ||
^\.github$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
on: [push, pull_request] | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { os: windows-latest, r: 'release'} | ||
- { os: windows-latest, r: 'devel'} | ||
- { os: macOS-latest, r: 'release'} | ||
- { os: macOS-latest, r: 'devel'} | ||
- { os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} | ||
- { os: ubuntu-16.04, r: 'release', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"} | ||
|
||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
CRAN: ${{ matrix.config.cran }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: r-lib/actions/setup-r@master | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
|
||
- uses: r-lib/actions/setup-pandoc@master | ||
|
||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }} | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
env: | ||
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | ||
run: | | ||
Rscript -e "install.packages('remotes')" -e "remotes::install_github('r-hub/sysreqs')" | ||
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))") | ||
sudo -s eval "$sysreqs" | ||
- name: Install dependencies | ||
run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')" | ||
|
||
- name: Check | ||
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')" | ||
|
||
- name: Upload check results | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check | ||
|
||
#- name: Test coverage | ||
# if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release' | ||
# run: | | ||
# Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
on: | ||
issue_comment: | ||
types: [created] | ||
name: Commands | ||
jobs: | ||
document: | ||
if: startsWith(github.event.comment.body, '/document') | ||
name: document | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: r-lib/actions/pr-fetch@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: r-lib/actions/setup-r@master | ||
- name: Install dependencies | ||
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' | ||
- name: Document | ||
run: Rscript -e 'roxygen2::roxygenise()' | ||
- name: commit | ||
run: | | ||
git add man/\* NAMESPACE | ||
git commit -m 'Document' | ||
- uses: r-lib/actions/pr-push@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
style: | ||
if: startsWith(github.event.comment.body, '/style') | ||
name: document | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: r-lib/actions/pr-fetch@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: r-lib/actions/setup-r@master | ||
- name: Install dependencies | ||
run: Rscript -e 'install.packages("styler")' | ||
- name: style | ||
run: Rscript -e 'styler::style_pkg()' | ||
- name: commit | ||
run: | | ||
git add \*.R | ||
git commit -m 'style' | ||
- uses: r-lib/actions/pr-push@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: jjb | ||
Type: Package | ||
Title: Balamuta Miscellaneous | ||
Version: 0.1.0 | ||
Version: 0.1.1 | ||
Authors@R: c( | ||
person("James", "Balamuta", email = "[email protected]", | ||
role = c("aut", "cre", "cph"), | ||
|
@@ -10,7 +10,9 @@ Authors@R: c( | |
License: GPL (>= 2) | ||
Description: Set of common functions used for manipulating colors, | ||
detecting and interacting with 'RStudio', modeling, formatting, determining | ||
users' operating system, feature scaling, and more! | ||
RoxygenNote: 6.1.0 | ||
users' operating system, feature scaling, and more! | ||
URL: https://github.com/coatless/jjb | ||
BugReports: https://github.com/coatless/jjb/issues | ||
RoxygenNote: 7.0.2 | ||
Encoding: UTF-8 | ||
Roxygen: list(markdown = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.