Skip to content

Commit

Permalink
Update gitignore and DESCRIPTION, add testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Mar 22, 2023
1 parent 3a33e14 commit 08222b8
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 7 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cran-comments.md
^doc$
^Meta$
^CRAN-RELEASE$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
50 changes: 50 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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, develop]
pull_request:
branches: [main, master, develop]

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: 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@v3

- 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
error-on: '"error"'
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ vignettes/*.pdf
*.o
*.so
*.cc
*.hpp
doc
Meta
11 changes: 7 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ Imports:
mcmcse (>= 1.4.1),
scales (>= 1.1.1),
stats (>= 4.0.0),
utils (>= 4.0.0)
Suggests:
utils (>= 4.0.0),
RcppParallel
Suggests:
testthat (>= 3.0.0),
rmarkdown (>= 2.5.0),
knitr (>= 1.30.0)
Expand All @@ -40,10 +41,12 @@ LinkingTo:
rstan (>= 2.21.0),
BH (>= 1.72.0.3),
Rcpp (>= 1.0.5),
RcppEigen (>= 0.3.3.7.0)
RcppEigen (>= 0.3.3.7.0),
RcppParallel
SystemRequirements: GNU make
VignetteBuilder: knitr
NeedsCompilation: yes
RoxygenNote: 7.2.1
UseLTO: true
RoxygenNote: 7.2.3
URL: https://github.com/bstatcomp/bayes4psy
BugReports: https://github.com/bstatcomp/bayes4psy/issues
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import(dplyr)
import(ggplot2)
import(methods)
import(rstan)
import(rstantools)
importFrom(RcppParallel,RcppParallelLibs)
importFrom(rstan,sampling)
importFrom(rstantools,rstan_config)
useDynLib(bayes4psy, .registration = TRUE)
3 changes: 2 additions & 1 deletion R/bayes4psy-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#' @useDynLib bayes4psy, .registration = TRUE
#' @import methods
#' @import Rcpp
#' @import rstantools
#' @importFrom rstantools rstan_config
#' @importFrom RcppParallel RcppParallelLibs
#' @importFrom rstan sampling
#'
#' @references
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# bayes4psy—User Friendly Bayesian Data Analysis for Psychology

<!-- badges: start -->
[![R-CMD-check](https://github.com/bstatcomp/bayes4psy/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bstatcomp/bayes4psy/actions/workflows/R-CMD-check.yaml)
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/bayes4psy?color=blue)](https://CRAN.R-project.org/package=bayes4psy)[![Downloads](http://cranlogs.r-pkg.org/badges/bayes4psy?color=blue)](https://CRAN.R-project.org/package=bayes4psy)
<!-- badges: end -->

## Authors

Expand Down
1 change: 1 addition & 0 deletions inst/include/stan_meta_header.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Insert all #include<foo.hpp> statements here

0 comments on commit 08222b8

Please sign in to comment.