demo(ijroi) broken #14

Closed
davidcsterratt opened this Issue Nov 4, 2014 · 1 comment

Comments

Projects
None yet
2 participants
Owner

davidcsterratt commented Nov 4, 2014

demo("ijroi")


    demo(ijroi)
    ---- ~~~~~

Type  <Return>   to start : 

> path <- file.path(system.file(package = "RImageJROI"), "extdata", "ijroi")

> im <- as.raster(readPNG(file.path(path, "imagej-logo.png")))
Error in as.raster(readPNG(file.path(path, "imagej-logo.png"))) : 
  could not find function "readPNG"
Contributor

MikkoVihtakari commented Jan 8, 2015

This is because RImageJROI suggests, but does not import readPNG function from the png package. Add library(png) before as.raster and it should work. Alternatively we could use importFrom in the NAMESPACE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment