From 5d339ad7151869e03730692315950197cfb8fb16 Mon Sep 17 00:00:00 2001 From: Valentine Herrmann Date: Thu, 4 Feb 2021 13:24:39 -0500 Subject: [PATCH] look for `n.marked` in `data` and not in global env. @benaug, I was getting an error saying " object 'n.marked' not found" even though I had it in my data object. I don't get the error if I save is in the global environment but I believe it should be passed as an argument or in a slot in the list `data`, like I am suggesting in this edit. --- R/mcmc.conCatSMR.natural.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/mcmc.conCatSMR.natural.R b/R/mcmc.conCatSMR.natural.R index db68c68..f8fa023 100644 --- a/R/mcmc.conCatSMR.natural.R +++ b/R/mcmc.conCatSMR.natural.R @@ -151,6 +151,7 @@ mcmc.conCatSMR.natural <- marked.guys=1:dim(y.sight.marked)[1] G.marked=data$G.marked G.unmarked=data$G.unmarked + n.marked=data$n.marked if(!is.matrix(G.marked)){ G.marked=matrix(G.marked)