diff --git a/Dockerfile b/Dockerfile index 2e3fac845305b098091e97375bd2a3fcee06dc90..9e4872f54b534acb81bb2e932ba5ded94a390ec8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,15 +12,15 @@ COPY . /srv/shiny-server/ COPY set_path.R /usr/local/lib/R/etc/Rprofile.site.d/00-radiant-path.R # 安装所有子模块 -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.data',dependencies=TRUE, type='source', upgrade='never')" -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.basics',dependencies=TRUE, type='source', upgrade='never')" -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.model',dependencies=TRUE, type='source', upgrade='never')" -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.multivariate',dependencies=TRUE, type='source', upgrade='never')" -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.design',dependencies=TRUE, type='source', upgrade='never')" -RUN R -e "remotes::install_local('/srv/shiny-server/radiant.quickgen',dependencies=TRUE, type='source', upgrade='never')" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.data',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.basics',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.model',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.multivariate',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.design',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant.quickgen',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" # 安装主 radiant 应用 -RUN R -e "remotes::install_local('/srv/shiny-server/radiant-master',dependencies=TRUE, type='source', upgrade='never')" +RUN R -e "remotes::install_local('/srv/shiny-server/radiant-master',dependencies=TRUE, type='source', upgrade='never',force=TRUE)" WORKDIR /data CMD ["R", "-e", "radiant::radiant(host='0.0.0.0', port=3838)"] diff --git a/radiant.model/inst/app/tools/analysis/cox_ui.R b/radiant.model/inst/app/tools/analysis/cox_ui.R index e9e532125785a7f0f6cf1fc7933743be1c283c62..8fedf0331147fc19f66cd794632e3bb11d79b725 100644 --- a/radiant.model/inst/app/tools/analysis/cox_ui.R +++ b/radiant.model/inst/app/tools/analysis/cox_ui.R @@ -1,5 +1,5 @@ ## ========== coxp_ui.R ========== - +source(file.path("../../../R", "cox.R")) ## 1. 常量 ----------------------------------------------------------------- coxp_predict <- setNames(c("none", "data", "cmd", "datacmd"),