From mcneney at sfu.ca  Fri Apr  6 20:46:28 2012
From: mcneney at sfu.ca (Brad McNeney)
Date: Fri, 6 Apr 2012 11:46:28 -0700 (PDT)
Subject: [Rd] R CMD check returns NOTE about package data set as global
	variable
In-Reply-To: <156280092.18208556.1333737562321.JavaMail.root@jaguar9.sfu.ca>
Message-ID: <1701096951.18211343.1333737988103.JavaMail.root@jaguar9.sfu.ca>

I'm developing a package that comes with a data set called RutgersMapB36. One of the package's functions requires this data frame. A toy example is:

test<-function() {
  data(RutgersMapB36)
  return(RutgersMapB36[,1])
}


R CMD check returns a NOTE:

test: no visible binding for global variable 'RutgersMapB36'

Is there any way to avoid this NOTE?

Thanks,

Brad
---
Brad McNeney
Statistics and Actuarial Science
Simon Fraser University



[Rd] R CMD check returns NOTE about package data set as global variable
Brad McNeney