Skip to content

Commit

Permalink
Merge pull request #17 from Ulthran/master
Browse files Browse the repository at this point in the history
Actually add CI workflow
  • Loading branch information
kylebittinger authored May 31, 2024
2 parents 1c40d52 + b81e25e commit 46e3e3e
Show file tree
Hide file tree
Showing 27 changed files with 837 additions and 725 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
52 changes: 52 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
57 changes: 53 additions & 4 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
.Rhistory
.Rproj.user
*.Rproj
..Rcheck/
# CUSTOM
.Rprofile
renv/

# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

# RStudio Connect folder
rsconnect/
Empty file modified .travis.yml
100644 → 100755
Empty file.
36 changes: 18 additions & 18 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Package: usedist
Type: Package
Title: Distance Matrix Utilities
Version: 0.4.0.9000
Authors@R: person("Kyle", "Bittinger", email = "[email protected]",
role = c("aut", "cre"))
Description: Functions to re-arrange, extract, and work with distances.
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Suggests:
testthat,
tibble,
tidyr (>= 1.0.0),
rlang,
future.apply,
ggplot2
Package: usedist
Type: Package
Title: Distance Matrix Utilities
Version: 0.4.0.9000
Authors@R: person("Kyle", "Bittinger", email = "[email protected]",
role = c("aut", "cre"))
Description: Functions to re-arrange, extract, and work with distances.
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Suggests:
future.apply,
rlang,
tibble,
tidyr (>= 1.0.0),
testthat,
ggplot2
4 changes: 0 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ export(dist_subset)
export(dist_to_centroids)
export(pivot_to_matrix)
export(pivot_to_numeric_matrix)
importFrom(rlang,as_name)
importFrom(rlang,ensym)
importFrom(tibble,column_to_rownames)
importFrom(tidyr,pivot_wider)
Empty file modified NEWS.md
100644 → 100755
Empty file.
Loading

0 comments on commit 46e3e3e

Please sign in to comment.