I am using the multicore package in R for parallelizing my code. However, if the tcltk package is loaded, forking processes with the multicore package will cause R to hang i
Another way to avoid loading a particular package as a dependency is, based on the assumption that none of the functions you require depend on that package, would be to reference the functions you need using their namespace:
lattice::xyplot(1~1)
This way, you don't need to load the package with your function, and you don't inadvertently load the problem package.