Skip to content

R - Useful Basic R Housekeeping Commands

Contents

Package Management

Update Packages

update.packages()

List Outdated Packages

old.packages()

Package Version

packageVersion("dplyr")

Unload Packages

detach("package:dplyr", unload = TRUE)

R Administration

Update R

library(installR)
updateR()
remotes::install_github("AndreaCirilloAC/updateR")
library(updateR)
updateR(auto = TRUE, .Rprofile = NULL)

Miscellaneous

Check size of object in memory

pryr::object_size(df)

Restart RStudio

.rs.restartR()

Backlinks:

list from [[R - Useful Basic R Housekeeping Commands]] AND -"Changelog"