See the original description in utils::removeSource.

removeSource(fn)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_removeSource = getFromNamespace("removeSource", "backports")

bp_removeSource(mean)
#> function (x, ...) 
#> UseMethod("mean")
#> <environment: namespace:base>