Skip to content
Snippets Groups Projects
Commit fd51407d authored by Elodie  CHAPEAUBLANC's avatar Elodie CHAPEAUBLANC
Browse files

modification in install_r_packages.R

parent 50d6602f
No related branches found
No related tags found
No related merge requests found
Pipeline #134988 passed
Pipeline: shiny-k8s-example

#134998

    Pipeline: shiny-k8s-example

    #134997

      Pipeline: shiny-k8s-example

      #134990

        ...@@ -24,16 +24,11 @@ print("Installation for other packages needed : ") ...@@ -24,16 +24,11 @@ print("Installation for other packages needed : ")
        print(paste(packages_list$Package_name, sep = "",collapse = ",")) print(paste(packages_list$Package_name, sep = "",collapse = ","))
        ### Install packages with dependencies with pak packages ### Install packages with dependencies with pak packages
        if (length(packages_list$Package_name)>=5){ for (i in 1:length(packages_list$Package_name)) {
        print ("at least 5 packages to install") print("Installation of: ")
        for(i in 1:length(packages_list$Package_name) ) { print(packages_list$Package_name[i])
        print(packages_list$Package_name[i]) pak::pkg_install(pkg = packages_list$Package_name[i])
        pak::pkg_install(pkg=packages_list$Package_name[i]) print("Installation done!!")
        }
        }else {
        print("packages to install : ")
        print(paste(packages_list$Package_name, sep = "",collapse = ","))
        pak::pkg_install(pkg=packages_list$Package_name)
        } }
        # clean the cache of pak # clean the cache of pak
        pak::cache_clean() pak::cache_clean()
        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