Skip to content
Snippets Groups Projects
Commit 8fe82ba6 authored by echapeau's avatar echapeau
Browse files

Update packages_to_install.csv and install_r_packages.R

parent eba6588a
No related branches found
No related tags found
No related merge requests found
Pipeline #103083 passed
Pipeline: shiny-k8s-example

#103084

    ......@@ -5,10 +5,10 @@
    ### Aim : Install all packages from CRAN, BioConductor or github, requiered in the Shiny app.
    ### Install pak packages first
    install.packages(c("pak","pkgcache","pkgdepends"), dependencies= NA)
    install.packages(c("pak","pkgcache","pkgdepends","pillar"), dependencies= NA)
    #### Load file with the list of packages
    packages_list <- read.csv(file = "/opt/scripts/packages_to_install.csv", header = FALSE, sep = ";", stringsAsFactors = FALSE)
    packages_list <- read.csv(file = "/opt/scripts/packages_to_install.csv", header = TRUE, sep = ";", stringsAsFactors = FALSE)
    ### Install packages with dependencies with pak packages
    pak::pkg_install(pkg=packages_list[,1])
    pak::pkg_install(pkg=packages_list$Package_name)
    # clean the cache of pak
    pak::cache_clean()
    shiny
    Package_name;Comments
    shiny;cran package
    \ No newline at end of file
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment