detaching the egg package worked for me incase still someone wanted to know.
detach("package:egg", unload = TRUE)