[R] access data inside package

Dan Kelley Dan.Kelley at dal.ca
Sun Jan 20 22:51:11 CET 2008


Thanks, Uwe, this works perfectly.



Uwe Ligges-3 wrote:
> 
> hits=-2.6 tests=BAYES_00
> X-USF-Spam-Flag: NO
> 
> 
> First call
> 
>    data("d")
> 
> then everything is fine already - except that codetools are moaning 
> around. Those codetools can be calmed down by the line we had already:
> 
>    d <- get("d", pos=globalenv())
> 
> Uwe Ligges
> 
> 
> 
> Dan Kelley wrote:
>> Yes, data() works, but then I have this warning from "R CMD check" on my
>> package, so I think I should not be doing it that way.
>> 
>> 
>> 
>> Benilton Carvalho wrote:
>>> have you tried
>>> data()
>>> instead?
>>> b
>>>
>>>
>>>
>>
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/access-data-inside-package-tp14565386p14987387.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list