I have a package which uses the tmPlot function from treemap, but when I try to use the function, it throws an error that one of its dependencies i
I think it's due to the fact that you use Imports instead of Depends in your DESCRIPTION file.
If you use Depends: treemap, the treemap package is loaded and attached when you load your package, and as such the treemap dependencies are loaded too.
If you use Imports: treemap, then only the specified namespace is imported, ie you can use the treemap variables in your functions. But it seems that in this case the treemap dependencies are not loaded.
So I think you should either use Depends: treemap (but it seems that the use of Imports is promoted these days), or import RColorBrewer directly from your package.
Sorry, not sure this really answers your question, and you may be already perfectly aware of all of these points...