Skip to content

Commit

Permalink
columnname fix for summary algo
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcorneliusmartin committed Sep 2, 2024
1 parent a4550ba commit a9576d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/vtg.summary.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ RUN Rscript -e 'install.packages("/usr/local/R/vtg.preprocessing", \
COPY ./${PKG_NAME}/src /usr/local/R/${PKG_NAME}/

WORKDIR /usr/local/R/${PKG_NAME}
# Install R and necessary packages
# Somehow prettyunit crashes when installed using the `install_deps`
RUN R -e "remove.packages('prettyunits')"
RUN R -e "install.packages('prettyunits', repos='http://cran.rstudio.com/')"

RUN Rscript -e 'library(devtools)' -e 'install_github("IKNL/vtg")'
RUN Rscript -e 'devtools::install_deps(".")'
RUN Rscript -e 'install.packages(".", repos = NULL, type = "source", INSTALL_opts = "--no-multiarch")'
Expand Down
1 change: 1 addition & 0 deletions vtg.summary/src/R/RPC_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ get_column_ranges <- function(data, columns) {
colnames(summary_numeric) <- numeric_columns
} else {
summary_numeric <- do.call(cbind, lapply(data[, numeric_columns], summary))
colnames(summary_numeric) <- numeric_columns
}
}

Expand Down

0 comments on commit a9576d3

Please sign in to comment.