fresh_start()
Description Removes all the installed R packages (including base R) within an installation directory. Particularly useful when moving from an R version to another.
Parameters
lib
(str): the directory where to remove the packages. Defaults to the first element in .libPaths()
today_packages()
Description Displays all the packages installed the day the function is called.
Parameters
lib
(str): the directory where to display the packages. Defaults to the first element in .libPaths()
Example
[1] "batata"
rm_today_packages()
Description Removes all the packages installed the day the function is called.
Parameters
lib
(str): the directory where to remove the packages. Defaults to the first element in .libPaths()
yesterday_packages()
Description Displays the packages installed yesterday.
Parameters:
lib
(str): the directory where to display the packages. Defaults to the first element in .libPaths()
Example
rm_yesterday_packages()
Description Removes all the packages installed yesterday.
Parameters
lib
(str): the directory where to remove the packages. Defaults to the first element in .libPaths()
since_packages()
Description Displays the packages installed according to a specific date.
Parameters
date
(str): the considered date in yyyy-mm-dd formatposition
(str): whether to display the packages installed at
that date, before
or after
that date.lib
(str): the directory where to display the packages. Defaults to the first element in .libPaths()
Example
#packages installed after the first of January 2021
since_packages(date = "2021-01-01",
position = "after")
[1] "batata" "bigrquery" "binman" "blogdown"
[5] "brms" "broom" "bslib" "cachem"
[9] "caTools" "cicerone" "clisymbols" "colourpicker"
[13] "comtradr" "covr" "credentials" "cronologia"
[17] "curl" "datamods" "datapasta" "dbplyr"
[21] "distill" "dplyr" "fabricerin" "gamm4"
[25] "gert" "ggcharts" "ggdark" "ggplot2"
[29] "gh" "gitcreds" "hms" "hrbrthemes"
[33] "htmltools" "httr" "janitor" "jquerylib"
[37] "jsonlite" "lazyeval" "lintr" "lubridate"
[41] "mongolite" "optimx" "packer" "patchwork"
[45] "pillar" "pkgKitten" "projpred" "pryr"
[49] "radous" "ralger" "reactlog" "readr"
[53] "rlang" "rngtools" "RSelenium" "rvest"
[57] "sass" "savonliquide" "semver" "servr"
[61] "shiny" "shinyFeedback" "thankr" "thematic"
[65] "tibble" "tippy" "usethis" "vctrs"
[69] "wdman" "withr" "xfun"
rm_since_packages()
Description Works similarly to since_packages()
excepts that it removes the packages instead of displaying them.
Parameters Same as since_packages()
latest_packages()
Description Displays the latest installed packages.
Parameters
n (num): the number of the last installed packages to display. Default to n = 1, in this case it will return the last installed package.
lib
(str): the directory where to display the packages. Defaults to the first element in .libPaths()
Example
# 10 latest packages installed
latest_packages(n = 10)
packages modification_time
1 batata 2021-03-08 10:33:51
2 shinyFeedback 2021-03-03 17:16:54
3 colourpicker 2021-03-03 15:20:33
4 bslib 2021-02-28 01:27:43
5 thematic 2021-02-28 01:09:49
6 hrbrthemes 2021-02-26 22:16:24
7 pryr 2021-02-25 15:58:13
8 pkgKitten 2021-02-23 01:45:24
9 savonliquide 2021-02-22 21:17:35
10 ralger 2021-02-22 18:46:14
rm_latest_packages()
Description Works similarly to latest_packages()
excepts that it removes the packages instead of displaying them.
Parameters Same as latest_packages()