Browse files

Fix bug where unregister_namespace threw error

  • Loading branch information...
1 parent 0ea3121 commit 825d87562716e72fc649988f2bf42e9bcab0484a @wch wch committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/namespace-env.r
View
2 R/namespace-env.r
@@ -181,7 +181,7 @@ unregister_namespace <- function(name = NULL) {
stop(name, " is not a registered namespace.")
# Remove the item from the registry
- rm(name, ns_registry())
+ do.call(rm, args = list(name, envir = ns_registry()))
invisible()
}

0 comments on commit 825d875

Please sign in to comment.