tmPlot is in namespace, but its dependencies are not found
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 isn't loaded: Error in tmPlot(data, index = index, vSize = vSize) : could not find function "brewer.pal" The dependency is installed and in the namespace. This question has a little bit of setup, being a package problem, but I've tried to make it as minimal as possible: Ensure you have treemap (and all its dependencies) installed. I've made a directory called 'anRpackage'. Inside it is a folder ('R') and a DESCRIPTION file with the following text: