Skip to content

Commit

Permalink
Merge pull request #14 from hechth/7_docker
Browse files Browse the repository at this point in the history
Fixed DESCRIPTION and Dockerfile to make R CMD check pass
  • Loading branch information
martenson authored Jul 2, 2021
2 parents 1fc6c9e + ca6ccb8 commit bb65ec4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ RUN apt-get update && apt-get install -yq \
libhdf5-dev \
libssl-dev \
zlib1g-dev \
texlive-latex-base \
texlive-latex-extra \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN Rscript -e 'install.packages("devtools")'
RUN Rscript -e 'install.packages("tibble")'
RUN Rscript -e 'install.packages("tidyr")'
RUN Rscript -e 'install.packages("dplyr")'
RUN Rscript -e 'install.packages("readr")'
RUN Rscript -e 'install.packages("purr")'
RUN Rscript -e 'install.packages("flashClust")'
RUN Rscript -e 'install.packages("data.table")'
Expand All @@ -19,8 +23,8 @@ RUN Rscript -e 'BiocManager::install(version = "3.11", ask = FALSE)'
RUN Rscript -e 'BiocManager::install("WGCNA")'
RUN Rscript -e 'BiocManager::install("rhdf5")'
RUN Rscript -e 'install.packages("Rcpp")'
RUN Rscript -e 'install.packages("arrow")'
RUN Rscript -e 'devtools::install_version("arrow", version = "4.0.0", repos = "http://cran.us.r-project.org")'
RUN Rscript -e 'devtools::install_version("testthat", version = "3.0.3", repos = "http://cran.us.r-project.org")'

ADD xmsannotator /xmsannotator
RUN R CMD INSTALL /xmsannotator \
&& rm -rf /xmsannotator
RUN R CMD INSTALL /xmsannotator
5 changes: 3 additions & 2 deletions xmsannotator/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Imports:
rlang,
WGCNA,
flashClust,
dynamicTreeCut
dynamicTreeCut,
tidyr
Suggests:
testthat (>= 3.0.0),
arrow (>= 3.0.0),
Expand All @@ -25,5 +26,5 @@ SystemRequirements: C++11
LinkingTo:
Rcpp
Depends:
R (>= 3.0.0),
R (>= 3.5.0),
Rcpp (>= 0.11.0)
1 change: 1 addition & 0 deletions xmsannotator/tests/testthat/test_advanced_annotation.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
skip("Currently excluded!")
test_that("basic advanced_annotation functionality", {
peaks <- load_peak_table_hdf('aplcms_small.h5', TRUE)
df <- advanced_annotation(peaks, sample_compound_table)
Expand Down

0 comments on commit bb65ec4

Please sign in to comment.