-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github action * add Dockerfile * ignore BBSoptions * missing imports * roxygenise * error on error
- Loading branch information
Showing
9 changed files
with
162 additions
and
22 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
^velociraptor\.Rproj$ | ||
^\.Rproj\.user$ | ||
^LICENSE\.md$ | ||
^\.github$ | ||
^\.BBSoptions$ |
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 @@ | ||
*.html |
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,80 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: build-check-deploy | ||
|
||
jobs: | ||
build_check_deploy: | ||
runs-on: ubuntu-latest | ||
container: bioconductor/bioconductor_docker:devel | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Query dependencies | ||
run: | | ||
install.packages('remotes') | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v1 | ||
with: | ||
path: /usr/local/lib/R/site-library | ||
key: ${{ runner.os }}-r-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-r-1- | ||
|
||
# This lets us augment with additional dependencies | ||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
env: | ||
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | ||
run: | | ||
Rscript -e "remotes::install_github('r-hub/sysreqs')" | ||
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))") | ||
sudo -s eval "$sysreqs" | ||
- name: Install dependencies | ||
run: | | ||
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories(), Ncpu = 2L) | ||
remotes::install_cran("rcmdcheck") | ||
shell: Rscript {0} | ||
|
||
- name: Check | ||
env: | ||
_R_CHECK_CRAN_INCOMING_REMOTE_: false | ||
run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "error", check_dir = "check") | ||
shell: Rscript {0} | ||
|
||
- name: Publish to Registry | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: docker.pkg.github.com/${{ github.repository }}/master:latest | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: docker.pkg.github.com | ||
|
||
- name: Build pkgdown | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
run: | | ||
PATH=$PATH:$HOME/bin/ Rscript -e 'BiocManager::install("pkgdown"); pkgdown::build_site(".")' | ||
# deploy needs rsync? Seems so. | ||
- name: Install deploy dependencies | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
run: | | ||
apt-get update && apt-get -y install rsync | ||
- name: Deploy 🚀 | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: docs # The folder the action should deploy. |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ Depends: | |
SummarizedExperiment | ||
Imports: | ||
methods, | ||
BiocGenerics, | ||
reticulate, | ||
S4Vectors, | ||
DelayedArray, | ||
|
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,9 @@ | ||
FROM bioconductor/bioconductor_docker:devel | ||
|
||
WORKDIR /home/rstudio | ||
|
||
COPY --chown=rstudio:rstudio . /home/rstudio/ | ||
|
||
RUN apt-get update && apt-get install -y libglpk-dev && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN Rscript -e "devtools::install('.', dependencies=TRUE, repos = BiocManager::repositories(), build_vignettes = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
# velociraptor | ||
|
||
<!-- badges: start --> | ||
[](https://github.com/kevinrue/velociraptor/actions) | ||
<!-- badges: end --> | ||
|
||
The goal of velociraptor is to ... | ||
|
||
## Installation | ||
|
||
You can install the released version of velociraptor from [GitHub](https://github.com/kevinrue/velociraptor) with: | ||
|
||
``` r | ||
install.packages("remotes") | ||
remotes::install_github("kevinrue/velociraptor") | ||
``` | ||
|
||
## Example | ||
|
||
This is a basic example which shows you how to solve a common problem: | ||
|
||
``` r | ||
library(velociraptor) | ||
## basic example code | ||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.