Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
16352c1
updating roxygen version
federicomarini Sep 13, 2022
353381b
updating namespace
federicomarini Sep 13, 2022
4d267a9
fixing typo
federicomarini Sep 13, 2022
7065c98
specifying output format for vignette
federicomarini Sep 13, 2022
bb4ab6d
specifying one single output format for the vignette
federicomarini Sep 14, 2022
3a0f5f0
create definition of the class, v1
federicomarini Nov 8, 2022
f2fb508
first round of defining generics and methods - dea and show
federicomarini Nov 8, 2022
5b7eeb3
methods definition, dea and show
federicomarini Nov 8, 2022
62329d2
moving all internals related to the app into a single file
federicomarini Nov 8, 2022
5d6d49e
further documenting data objects
federicomarini Nov 8, 2022
a362d2b
core functionality for DeeDeeExperiment - constructor and some extra
federicomarini Nov 8, 2022
0971fca
removed older internals
federicomarini Nov 8, 2022
1fadcbb
validity for the DeeDeeExperiment class
federicomarini Nov 8, 2022
2e41c40
Adjusting some imports
federicomarini Nov 8, 2022
4e8caf4
removing older sources
federicomarini Nov 8, 2022
dae40e5
placeholder for citation info
federicomarini Nov 8, 2022
20d21ba
adding script to document creation of all datasets to be used in the …
federicomarini Nov 8, 2022
6f7f92f
adding extra data items for the package
federicomarini Nov 8, 2022
3d43ac7
updated DESCRIPTION file with newly introduced dependencies
federicomarini Nov 8, 2022
c07c295
placeholder file for the app
federicomarini Nov 8, 2022
2fa244b
updating template to use new set of params and functions - will be re…
federicomarini Nov 8, 2022
725f7ec
better indenting for the template
federicomarini Nov 8, 2022
fc54e61
avoid note for TODO.md file in checking, if present
federicomarini Nov 8, 2022
13011d8
re-generating namespace
federicomarini Nov 8, 2022
87ca4c7
re-rendering manpages and creating the ones new
federicomarini Nov 8, 2022
169ade3
placeholder content for the DeeDee app
federicomarini Nov 8, 2022
ca2d868
spots for implementing the imports, was handled by deedee_prepare
federicomarini Nov 8, 2022
23a1a63
newly revamped functions, still with the ddedde name
federicomarini Nov 8, 2022
23665a5
re-rendeing manpages
federicomarini Nov 8, 2022
581dfc8
deactivating code chunk execution in the vignette
federicomarini Nov 8, 2022
2ec3444
citation item fixed
federicomarini Nov 8, 2022
96b884b
case sensitive renaming
federicomarini Nov 8, 2022
3ac6fea
uncommenting the app code to r cmd check automatically as we go
federicomarini Nov 8, 2022
e67941b
cleanup namespace
federicomarini Nov 8, 2022
1691706
setup unit test suite
federicomarini Nov 9, 2022
e2f46ea
placeholder for testing files
federicomarini Nov 9, 2022
b297f8a
implementation and example for add_dea
federicomarini Nov 9, 2022
5190b5c
renaming manpages to have them converge on one single Rd file
federicomarini Nov 9, 2022
c987786
exporting setter method for dea<-
federicomarini Nov 9, 2022
a09b81e
definition of replace method (setter) for dea
federicomarini Nov 9, 2022
26a9afb
removed need of using 3rd edition of testthat, suppresses messages af…
federicomarini Nov 9, 2022
2459bb5
updating setup script
federicomarini Nov 9, 2022
82c1bc5
adding some basic unit tests for creation
federicomarini Nov 9, 2022
9190964
re-rendering manpages
federicomarini Nov 9, 2022
d977fad
commenting out code in the example for the app
federicomarini Nov 9, 2022
55b57e6
specifying parameters in example
federicomarini Nov 9, 2022
6927797
adding condition to check for validity - at least there has to be a D…
federicomarini Nov 9, 2022
02e6814
opting for passing the content of the SE as ellipsis - enables automa…
federicomarini Nov 9, 2022
4802711
redo docs
federicomarini Nov 9, 2022
e02e340
explicit specification of parameter name when creating the object, to…
federicomarini Nov 9, 2022
f8954e4
implementation for remove_dea
federicomarini Nov 9, 2022
e9b695d
removing some calls to class(), using rather is()
federicomarini Nov 9, 2022
40cfbaa
fixing typos
federicomarini Nov 9, 2022
746cd05
fixing some imports
federicomarini Nov 9, 2022
425cfe8
re-rendering examples
federicomarini Nov 9, 2022
e2a5199
class check with is
federicomarini Nov 9, 2022
024d385
temp rename of the app function
federicomarini Nov 9, 2022
72c5080
adding manpage for the app
federicomarini Nov 9, 2022
70b3170
expanding the pool of generic & methods
federicomarini Nov 9, 2022
1cbfe8c
add, remove, get & more
federicomarini Nov 9, 2022
8bbf279
renaming funcs in the examples
federicomarini Nov 9, 2022
e817bfa
re-rendering manpages, after moving around the content of the docs
federicomarini Nov 9, 2022
ea76e1e
back to having the se as parameter to preserve rowData - revisit this?
federicomarini Nov 9, 2022
7af24c8
re-do namespace
federicomarini Nov 9, 2022
fc49abb
referring to DeeDeeLegacy package - for the sake of not breaking code
federicomarini Nov 9, 2022
eb439e3
restoring some healthy indentation
federicomarini Nov 9, 2022
11a0c5e
explicitly specifying width for columns
federicomarini Nov 9, 2022
e50085e
explicitly labeling parameters of most ui elements
federicomarini Nov 9, 2022
1af45c0
first edits server side done, app works with old params and objects
federicomarini Nov 9, 2022
319e738
finalized example
federicomarini Nov 9, 2022
f59a4d3
massive renaming - fortifying names in context of where the UI elemen…
federicomarini Nov 9, 2022
5d965d3
basic set of testing for the plotting functionality
federicomarini Nov 9, 2022
f8c3d99
escaping aes_string with aes + .data pronoun
federicomarini Nov 9, 2022
fc58479
fixing test
federicomarini Nov 9, 2022
2a2d36c
setup tests for running shiny app
federicomarini Nov 9, 2022
94a81b7
nocov tags for the server in the app
federicomarini Nov 9, 2022
254aec2
add call to library in the tests, required because of ggvenn's odd na…
federicomarini Nov 9, 2022
f6d9251
testing the summary report gets generated
federicomarini Nov 9, 2022
af8c502
specifying help content title fields, adjusting input element ids, pr…
federicomarini Nov 9, 2022
48606f9
respecting some parameters also in upset plot where mono-directional
federicomarini Nov 10, 2022
22907e0
removing rowData AND dea name at the same spot of the iteration to av…
federicomarini Nov 10, 2022
d442d5b
moving towards using dde in the app, and having gentle (green) error …
federicomarini Nov 10, 2022
f44396a
fileInput to handle the upload of DeeDeeExperiment objects, with obse…
federicomarini Nov 10, 2022
9f90395
fix imports with shiny::tags
federicomarini Nov 10, 2022
b51217e
switching towards using the DeeDee object consistently throughout the…
federicomarini Nov 10, 2022
ed8389a
fixing namespace imports
federicomarini Nov 10, 2022
9ba6c53
moving all ui components into renderUi elements, easier to have ui+se…
federicomarini Nov 10, 2022
39c3b0f
moving placeholders for importing funcs
federicomarini Nov 10, 2022
fc3b966
additional shiny imports to handle
federicomarini Nov 10, 2022
600d06d
complete example
federicomarini Nov 10, 2022
b9f0d7a
changing the req()uirements for each panel to display, now using the …
federicomarini Nov 10, 2022
9c89ee9
fixing buildup script
federicomarini Nov 10, 2022
8c89322
some checks for de results to be provided
federicomarini Nov 10, 2022
2768230
using importer for DESeq2
federicomarini Nov 10, 2022
26120c9
trying to handle the case where a mock SE needs to be created
federicomarini Nov 10, 2022
fdea24b
re-rendering manpages
federicomarini Nov 10, 2022
9f2c2a6
cleanup namespace
federicomarini Nov 10, 2022
410a31f
adding manpage for app
federicomarini Nov 10, 2022
f04d238
rewriting "real" example for running the app
federicomarini Nov 10, 2022
a6f4d68
expanding on the app example
federicomarini Nov 10, 2022
caf65da
setting up full basic examples for each of the core visualization fun…
federicomarini Nov 10, 2022
0bf972b
updated examples in docs
federicomarini Nov 10, 2022
3c0b904
setting up pkgdown for usage
federicomarini Nov 10, 2022
7379967
adding pkgdown custom config file
federicomarini Nov 10, 2022
fbaa9be
fixing example with extra library
federicomarini Nov 10, 2022
19199b5
updated roxygen version
federicomarini Nov 12, 2022
ffd9bfb
some initial setup for github actions to keep codebase under CI
federicomarini Nov 12, 2022
0a81dab
cleanup example detritus
federicomarini Nov 12, 2022
52928a2
testing app w new parameters
federicomarini Nov 12, 2022
6c9809a
cleanup dependency from DeeDeeLegacy, mock package containing the pre…
federicomarini Nov 12, 2022
9671c90
removing calls to legacy functions throughout the codebase - prelim t…
federicomarini Nov 12, 2022
40d9d9d
handling logic of de result according to its provenance
federicomarini Nov 13, 2022
6382449
fixed matching of ids
federicomarini Nov 13, 2022
166bccd
initial implementation of objects import from edgeR and limma
federicomarini Nov 13, 2022
a80cd13
imports with limma and edgeR
federicomarini Nov 14, 2022
6439988
ddedde -> deedee
federicomarini Nov 14, 2022
e25dc83
renaming ddedde_ -> deedee_ in the manpage
federicomarini Nov 14, 2022
a5282f9
fixed namespace
federicomarini Nov 14, 2022
2cd89cc
ddedde -> deedee
federicomarini Nov 14, 2022
37a0001
ddedde to deedee also in template report
federicomarini Nov 14, 2022
4a74742
precise specification of param
federicomarini Nov 14, 2022
7cc4d1e
quiet rendering of summary by default
federicomarini Nov 14, 2022
4b133a0
getting the mock from no/empty SE to work
federicomarini Nov 23, 2022
d174b78
fixing imports
federicomarini Nov 23, 2022
abff343
adding test for case with no SE object provided at all
federicomarini Nov 23, 2022
ce0b27d
adding validity checks
federicomarini Nov 24, 2022
fc388ef
testing validity - yet somehow no coverage increase to show?
federicomarini Nov 24, 2022
12b80d0
using setValidity2 from S4Vectors, that triggers the coverage (?!)
federicomarini Nov 24, 2022
4f81224
using accessors in the validity function
federicomarini Nov 24, 2022
896dcbe
no-cov'ing the older helpers - revisit later
federicomarini Nov 24, 2022
611370f
relax validity - enables empty list to be in
federicomarini Nov 24, 2022
5c3ac1c
relax part2
federicomarini Nov 24, 2022
f35e201
trigger error in re-generating summary without overwriting explicitly
federicomarini Nov 24, 2022
b8d7092
bit more corner cases plus testing the show method as well, w explici…
federicomarini Nov 24, 2022
8ebaade
covering some sub-routines in the plotting functions
federicomarini Nov 24, 2022
0b55187
updating namespace
federicomarini Nov 24, 2022
64cf14d
updated roxygen version
federicomarini Dec 19, 2022
b93a4b7
updating R version requirement
federicomarini Jan 5, 2023
d956981
class check done with is
federicomarini Jan 5, 2023
94935d2
adding explicitly message param mention in need statements
federicomarini Jan 5, 2023
21091b7
adding example for creating dde objects
federicomarini Jan 5, 2023
d509279
1:... replaced by seq_len calls
federicomarini Jan 6, 2023
b2549d6
fixing all namespace imports, moving rmarkdown to explicit import
federicomarini Jan 9, 2023
ed81a87
namespace fixes and re-rendering namespace
federicomarini Jan 9, 2023
839fcfa
doc doc doc'ing
federicomarini Jan 10, 2023
71b6bd1
adding import of na-omit
federicomarini Jan 11, 2023
6074beb
documenting more the class itself
federicomarini Jan 11, 2023
0f6247a
documenting the methods
federicomarini Jan 11, 2023
4e857ac
documenting creator and importing functions
federicomarini Jan 11, 2023
9ac6215
fixing placement of the annotation label in deedee_cat
federicomarini Jan 11, 2023
7c3d9e8
finishing up docs of deedee_cat
federicomarini Jan 11, 2023
117e164
checks and docs for deedee_heatmap
federicomarini Jan 11, 2023
51ba9d4
checks and docs for qq/qqmult
federicomarini Jan 11, 2023
6cfc969
checks and documentation for deedee_scatter
federicomarini Jan 11, 2023
b4b8604
upset and venn - checks and documentation extension
federicomarini Jan 11, 2023
8d91785
re-rendering manpages
federicomarini Jan 11, 2023
be30350
extra manpages
federicomarini Jan 11, 2023
1303ab9
some cleanup
federicomarini Jan 11, 2023
13a4562
further documenting qq, scatter and upset
federicomarini Jan 12, 2023
6a158f9
documenting summary func, borrowing and linking from other functions
federicomarini Jan 12, 2023
0778bef
re-rendering manpage
federicomarini Jan 12, 2023
b2856e3
simple function to have a visual comparison with bars on DE regulation
federicomarini Mar 13, 2023
ddd1851
added some import directives
federicomarini Mar 13, 2023
a538163
rendered manpage
federicomarini Mar 13, 2023
ac7f106
adding some simple basic unit tests for the bar chart function
federicomarini Mar 13, 2023
6fe6bfb
working on the heatmap with expression AND logFC info
federicomarini Mar 14, 2023
225e11d
adding missing imports, also in the namespace
federicomarini Mar 14, 2023
34d1baa
version bump - 0.2.0 to go hand in hand with the rework of the class,…
federicomarini May 11, 2023
711d9dd
updated and structured a bit the news
federicomarini May 11, 2023
1fab151
assignment done with <-
federicomarini May 11, 2023
cc8983c
tracking bibtex file for the vignette
federicomarini May 11, 2023
54cb51b
pimping up the vignette - the beginning
federicomarini May 11, 2023
e5cbbe0
added temporary docs for the deedee_deheat function
federicomarini May 11, 2023
926b27f
del renamed to a more explicit - and clear to understand - de_named_list
federicomarini Sep 27, 2023
9a75bb8
updating test suites
federicomarini Sep 27, 2023
f3574e4
adding return value entries for the man pages
federicomarini Sep 27, 2023
e9d6033
re-rendered man pages
federicomarini Sep 27, 2023
331cd24
revamp for incoming submission - updated version of R, FM set as main…
federicomarini Sep 27, 2023
52ab651
mark example to be done for the deheat heatmap
federicomarini Sep 27, 2023
404ca8d
adding BiocStyle dependency
federicomarini Sep 27, 2023
4065548
manpage again
federicomarini Sep 27, 2023
06fe3e3
Merge pull request #12 from lea-rothoerl/renaming_dataobj
federicomarini Sep 27, 2023
b14619d
changing the main content of the GithubActions
federicomarini Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
^DeeDee\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^TODO\.md$
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
323 changes: 323 additions & 0 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
## Read more about GitHub actions the features of this GitHub Actions workflow
## at https://lcolladotor.github.io/biocthis/articles/biocthis.html#use_bioc_github_action
##
## For more details, check the biocthis developer notes vignette at
## https://lcolladotor.github.io/biocthis/articles/biocthis_dev_notes.html
##
## You can add this workflow to other packages using:
## > biocthis::use_bioc_github_action()
##
## Using GitHub Actions exposes you to many details about how R packages are
## compiled and installed in several operating system.s
### If you need help, please follow the steps listed at
## https://github.com/r-lib/actions#where-to-find-help
##
## If you found an issue specific to biocthis's GHA workflow, please report it
## with the information that will make it easier for others to help you.
## Thank you!

## Acronyms:
## * GHA: GitHub Action
## * OS: operating system

on:
push:
branches:
- devel
pull_request:

name: R-CMD-check-bioc

## These environment variables control whether to run GHA code later on that is
## specific to testthat, covr, and pkgdown.
##
## If you need to clear the cache of packages, update the number inside
## cache-version as discussed at https://github.com/r-lib/actions/issues/86.
## Note that you can always run a GHA test without the cache by using the word
## "/nocache" in the commit message.
env:
has_testthat: 'true'
run_covr: 'true'
run_pkgdown: 'true'
has_RUnit: 'false'
cache-version: 'cache-v1'
run_docker: 'false'

jobs:
build-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
container: ${{ matrix.config.cont }}
## Environment variables unique to this job.

strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: '3.21', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
- { os: macOS-latest, r: 'devel', bioc: '3.21'}
- { os: windows-latest, r: 'devel', bioc: '3.21'}
## Check https://github.com/r-lib/actions/tree/master/examples
## for examples using the http-user-agent
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
NOT_CRAN: true
TZ: UTC
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:

## Set the R library to the directory matching the
## R packages cache step further below when running on Docker (Linux).
- name: Set R Library home on Linux
if: runner.os == 'Linux'
run: |
mkdir /__w/_temp/Library
echo ".libPaths('/__w/_temp/Library')" > ~/.Rprofile

## Most of these steps are the same as the ones in
## https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml
## If they update their steps, we will also need to update ours.
- name: Checkout Repository
uses: actions/checkout@v3

## R is already included in the Bioconductor docker images
- name: Setup R from r-lib
if: runner.os != 'Linux'
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

## pandoc is already included in the Bioconductor docker images
- name: Setup pandoc from r-lib
if: runner.os != 'Linux'
uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Restore R package cache
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os != 'Linux'"
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-

- name: Cache R packages on Linux
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
uses: actions/cache@v3
with:
path: /home/runner/work/_temp/Library
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-devel-

- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sysreqs=$(Rscript -e 'cat("apt-get update -y && apt-get install -y", paste(gsub("apt-get install -y ", "", remotes::system_requirements("ubuntu", "20.04")), collapse = " "))')
echo $sysreqs
sudo -s eval "$sysreqs"

- name: Install macOS system dependencies
if: matrix.config.os == 'macOS-latest'
run: |
## Enable installing XML from source if needed
brew install libxml2
echo "XML_CONFIG=/opt/homebrew/opt/libxml2/bin/xml2-config" >> $GITHUB_ENV

## Required to install magick as noted at
## https://github.com/r-lib/usethis/commit/f1f1e0d10c1ebc75fd4c18fa7e2de4551fd9978f#diff-9bfee71065492f63457918efcd912cf2
brew install imagemagick@6

## For textshaping, required by ragg, and required by pkgdown
brew install harfbuzz fribidi

## For installing usethis's dependency gert
brew install libgit2

## Required for tcltk
brew install xquartz --cask

## Required for terra
brew install gdal

## Temporary fix for freetype (https://github.com/r-lib/ragg/issues/170; Sep 2024)
#brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-core/d28afc3bfdb5d24eab02157bfffcc9e17ed6666c/Formula/f/freetype.rb
brew unlink freetype
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/3db6dc6c4baf5a75e345f380cc4e8224c1ae5ae0/Formula/f/freetype.rb > freetype.rb && brew install freetype.rb

- name: Install binary units for macOS
if: matrix.config.os == 'macOS-latest'
run: |
## temporary fix due to issue in udunits (Sep 2024)
install.packages('https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.4/units_0.8-5.tgz')
shell: Rscript {0}

- name: Install Windows system dependencies
if: runner.os == 'Windows'
run: |
## Edit below if you have any Windows system dependencies
shell: Rscript {0}

- name: Install BiocManager
run: |
message(paste('****', Sys.time(), 'installing BiocManager ****'))
remotes::install_cran("BiocManager")
shell: Rscript {0}

- name: Set BiocVersion
run: |
BiocManager::install(version = "${{ matrix.config.bioc }}", ask = FALSE, force = TRUE)
shell: Rscript {0}

- name: Install dependencies pass 1
run: |
## Try installing the package dependencies in steps. First the local
## dependencies, then any remaining dependencies to avoid the
## issues described at
## https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016675.html
## https://github.com/r-lib/remotes/issues/296
## Ideally, all dependencies should get installed in the first pass.

## Set the repos source depending on the OS
## Alternatively use https://storage.googleapis.com/bioconductor_docker/packages/
## though based on https://bit.ly/bioc2021-package-binaries
## the Azure link will be the main one going forward.
gha_repos <- if(
.Platform$OS.type == "unix" && Sys.info()["sysname"] != "Darwin"
) c(
"AnVIL" = "https://bioconductordocker.blob.core.windows.net/packages/3.20/bioc",
BiocManager::repositories()
) else BiocManager::repositories()

## For running the checks
message(paste('****', Sys.time(), 'installing rcmdcheck and BiocCheck ****'))
install.packages(c("rcmdcheck", "BiocCheck"), repos = gha_repos)

## Pass #1 at installing dependencies
## This pass uses AnVIL-powered fast binaries
## details at https://github.com/nturaga/bioc2021-bioconductor-binaries
## The speed gains only apply to the docker builds.
message(paste('****', Sys.time(), 'pass number 1 at installing dependencies: local dependencies ****'))
remotes::install_local(dependencies = TRUE, repos = gha_repos, build_vignettes = FALSE, upgrade = TRUE)
continue-on-error: true
shell: Rscript {0}

- name: Install dependencies pass 2
run: |
## Pass #2 at installing dependencies
## This pass does not use AnVIL and will thus update any packages
## that have seen been updated in Bioconductor
message(paste('****', Sys.time(), 'pass number 2 at installing dependencies: any remaining dependencies ****'))
remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE, force = TRUE)
shell: Rscript {0}

- name: Install BiocGenerics
if: env.has_RUnit == 'true'
run: |
## Install BiocGenerics
BiocManager::install("BiocGenerics")
shell: Rscript {0}

- name: Install covr
if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
run: |
remotes::install_cran("covr")
shell: Rscript {0}

- name: Install pkgdown
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
run: |
remotes::install_cran("pkgdown")
shell: Rscript {0}

- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- name: Run CMD check
env:
_R_CHECK_CRAN_INCOMING_: false
DISPLAY: 99.0
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(
args = c("--no-manual", "--no-vignettes", "--timings"),
build_args = c("--no-manual", "--keep-empty-dirs", "--no-resave-data"),
error_on = "warning",
check_dir = "check"
)
shell: Rscript {0}

## Might need an to add this to the if: && runner.os == 'Linux'
- name: Reveal testthat details
if: env.has_testthat == 'true'
run: find . -name testthat.Rout -exec cat '{}' ';'

- name: Run RUnit tests
if: env.has_RUnit == 'true'
run: |
BiocGenerics:::testPackage()
shell: Rscript {0}

- name: Run BiocCheck
env:
DISPLAY: 99.0
run: |
BiocCheck::BiocCheck(
dir('check', 'tar.gz$', full.names = TRUE),
`quit-with-status` = FALSE,
`no-check-R-ver` = TRUE,
`no-check-bioc-help` = TRUE
)
shell: Rscript {0}

- name: Test coverage
if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
run: |
covr::codecov()
shell: Rscript {0}

- name: Install package
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
run: R CMD INSTALL .

- name: Build and deploy pkgdown site
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --global --add safe.directory /__w/imbeimainz/DeeDee
Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE)"
shell: bash {0}
## Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
## at least one locally before this will work. This creates the gh-pages
## branch (erasing anything you haven't version controlled!) and
## makes the git history recognizable by pkgdown.

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-biocversion-devel-r-devel-results
path: check

# - uses: docker/build-push-action@v1
# if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && runner.os == 'Linux' "
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# repository: isee/isee
# tag_with_ref: true
# tag_with_sha: true
# tags: latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
inst/doc
docs
Loading