Re: [R-pkg-devel] txt data is undefined global variable

2019-01-16 Thread Uwe Ligges
On 16.01.2019 17:00, Thierry Onkelinx wrote: Dear all, I'm working on a package "foo" which has a dataframe stored in "data/foo.txt". The DESCRIPTION has "LazyData: true". Functions can use the object "foo". e.g. foo is not regisrered in the namespace and you are relying on search path or

[R-pkg-devel] txt data is undefined global variable

2019-01-16 Thread Thierry Onkelinx
Dear all, I'm working on a package "foo" which has a dataframe stored in "data/foo.txt". The DESCRIPTION has "LazyData: true". Functions can use the object "foo". e.g. bar <- function() { summary(foo) } However, R CMD check throws the "undefined global variable" error. What is the proper way t