Packages Installation

display_starred()

Description Display User’s Github Starred Repositories.

Parameters

Example

library(batata)

display_starred('hadley', n = 20, onlyR = FALSE)
 [1] "r-dbi/bigrquery"                 
 [2] "chrk623/dataAnim"                
 [3] "allisonhorst/stats-illustrations"
 [4] "hadley/mastering-shiny"          
 [5] "hadley/lazyeval"                 
 [6] "thomasp85/particles"             
 [7] "tidyverse/dplyr"                 
 [8] "rudeboybert/fivethirtyeight"     
 [9] "jennybc/googlesheets"            
[10] "thomasp85/gganimate"             
[11] "thomasp85/ggraph"                
[12] "marcandrysco/Errol"              
[13] "eddelbuettel/rcppcctz"           
[14] "google/cctz"                     
[15] "shinyTree/shinyTree"             
[16] "WizardMac/ReadStat"              
[17] "hadley/r2d3"                     
[18] "hadley/appdirs"                  
[19] "r-lib/pkgdown"                   
[20] "klutometis/reasoned-schemer"     

display_most_starred()

Description Display the most starred R Github Repositories

Parameters

Example

batata::display_most_starred(n = 10)
 [1] "tidyverse/ggplot2"               
 [2] "qinwf/awesome-R"                 
 [3] "rstudio/shiny"                   
 [4] "tidyverse/dplyr"                 
 [5] "swirldev/swirl_courses"          
 [6] "johnmyleswhite/ML_for_Hackers"   
 [7] "twitter/AnomalyDetection"        
 [8] "hadley/r4ds"                     
 [9] "rstudio/bookdown"                
[10] "briatte/awesome-network-analysis"

install_starred_cran()

Description Installs the latest CRAN-available R packages starred on Github.

Parameters

Example The following code chunk will look at the last 10 repositories that I have starred, filter out R repositories, and install them if available on CRAN:

# my Github user name is 'feddelegrand7'
install_starred_cran(github_user = 'feddelegrand7', n = 10)

Note that if the starred repo is not available on CRAN, install_starred_cran() will simply ignore it.

install_starred_github()

Description install_starred_github() behaves the same way as install_starred_cran() except that it will install the repositories from Github (not from CRAN), so that you can install packages that are not available on CRAN.

Parameters

Example The following code chunk will look at the last five repositories that I have starred, extract R repositories (in case some starred repositories belong to another programming language) and install them:

install_starred_github(github_user = 'feddelegrand7', 
                       n = 5, 
                       upgrade = "never")

install_most_starred()

Description Allows you the install the most starred CRAN packages that are available on Github. It takes one argument n which specifies the number of the most starred R packages (in descending order) that one wants to install.

Parameters

Example The following code chunk will look for the 10 most starred R repositories and will install them if available on CRAN. Of course, it will ignore R repositories that are not packages, (e.g R4DS repo):