Closed sirclockalot closed 1 year ago
Thanks for spotting and fixing this @sirclockalot. For unit testing, I guess the most basic way to test functions which create plot is by creating a test which just call the function and expect no error. Unit test which does image comparison may be more trouble than worth. However, I'm all ears if there are good ways to do this.
To the attention of @tomashhurst
Changed the ggpointdensity::geom_point to ggpointdensity::geom_pointdensity as this was giving the error 'Error: 'geom_point' is not an exported object from 'namespace:ggpointdensity''
Issue: Ran into the error
'Error: 'geom_point' is not an exported object from 'namespace:ggpointdensity'
when running Spectre::fast.colour.plot().Packages: Spectre development (1.0.0-0), ggplot2 (3.4.2)
Testing: Minimal testing on my own data.
Documentation: Not required
Vignette: No changes or additions required
Verbose Description: Was using the development version of Spectre to access
truncate_max_range = FALSE
inSpectre::read.files
and came across theSpectre::fast.colour.plot
function. When attempting to use it the above mentioned error was given. I substitutedggpointdensity::geom_point
forggpointdensity::geom_pointdensity
which used inmake.colour.plot
. This solved the issue. I have little experience with pull request, so feel free to ignore. Please suggest what unit tests would be appropriate in this case. All the best.