The following used to work in R 3.2.5 but not in 3.3.0: library(MASS) ns <-.getNamespace("MASS") unloadNamespace(ns) Calling unloadNamespace("MASS") directly still works.