From 70ed92e573f499ecec16d560aa9497ec644573ae Mon Sep 17 00:00:00 2001 From: David C Sterratt Date: Tue, 13 Jan 2015 15:05:35 +0000 Subject: [PATCH] Fix #14 by adding library(png) call There was no library(png) call in demos/ijroi.R, hence the problem. This is now fixed. --- DESCRIPTION | 2 +- demo/ijroi.R | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7e9e6ed..a7c042c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,7 @@ Title: Read ImageJ Region of Interest (ROI) Files Description: Provides functions to read ImageJ (http://imagej.nih.gov/ij/) Region of Interest (ROI) files, to plot the ROIs and to convert them as spatstat (http://spatstat.org/) spatial patterns. -Version: 0.1 +Version: 0.1.1 URL: https://github.com/davidcsterratt/RImageJROI Date: 2014-03-20 Authors@R: c(person("David C", "Sterratt", role=c("aut", "cph", "cre"), diff --git a/demo/ijroi.R b/demo/ijroi.R index bc6cc44..1d1a7f1 100644 --- a/demo/ijroi.R +++ b/demo/ijroi.R @@ -1,3 +1,4 @@ +library(png) path <- file.path(system.file(package = "RImageJROI"), "extdata", "ijroi") im <- as.raster(readPNG(file.path(path, "imagej-logo.png"))) plot(NA, NA, xlim=c(0, ncol(im)), ylim=c(nrow(im), 0), asp=1)