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

From: Brad McNeney <mcneney_at_sfu.ca>
Date: Fri, 06 Apr 2012 11:46:28 -0700 (PDT)


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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 06 Apr 2012 - 19:22:58 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Apr 2012 - 19:50:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive