RGLab / cytoinstaller

cyto package Installation from repositories, Including 'bioconductor' and 'GitHub' release
3 stars 0 forks source link

shortcut to install all packages with install_cyto() #2

Open mikejiang opened 3 years ago

mikejiang commented 3 years ago

Out of curiosity, is there a shortcut to install all packages with cytoinstaller? I think it is good practice for users to update all packages and it would be nice if there was an easy way to do this (perhaps if pkg isn't supplied to install_cyto?). It would be nice if there was a menu like the one when packages require updating that allows the user to indicate which packages to install (i.e. individual packages or all of them).

mikejiang commented 3 years ago

there you go, @DillonHammill

> install_cyto()#install/update all cyto packages
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                                
2: CRAN packages only                 
3: None                               
4: COMPASS   (1.27.4 -> 1.28.0) [CYTO]
5: ncdfFlow  (2.35.1 -> 2.36.0) [CYTO]
6: flowClust (3.27.0 -> 3.28.0) [CYTO]
7: flowStats (4.1.0  -> 4.2.0 ) [CYTO]

Enter one or more numbers, or an empty line to skip updates:
> install_cyto(bioc_ver = "devel")
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                                
2: CRAN packages only                 
3: None                               
4: COMPASS   (1.27.4 -> 1.29.1) [CYTO]
5: ncdfFlow  (2.35.1 -> 2.37.0) [CYTO]
6: flowClust (3.27.0 -> 3.29.0) [CYTO]
7: flowStats (4.1.0  -> 4.3.0 ) [CYTO]

Enter one or more numbers, or an empty line to skip updates:
DillonHammill commented 3 years ago

This is great! Thanks so much @mikejiang! I am setting up a new computer today so I will give in a try on a fresh R installation.

DillonHammill commented 3 years ago

This is truly fantastic @mikejiang! That was by far the easiest installation of these packages that I have ever done! I know that a lot of work has gone into refining the installation process over time and I really appreciate your efforts. With installation being so simple now, I think it will make it a lot easier for people with limited coding knowledge to adopt these tools. I will definitely add this to the CytoExploreR docs when I get a chance.