Giles Crane wrote:
Thank you for your consideration of this question.
I have tried both your suggestions.
However, the data is not loaded within the function.

When I specify load("mydata.Rdata",.globalEnv),
the data is loaded into the top level environment,
and the function does access the data in the top level environment.

However, I would like to load the data into the function environment,
so that the data goes away when the function terminates.

For the benefit of others: an offline followup showed that the data were being loaded in the right place, but a function in a contributed package wasn't looking there and didn't see it.


Duncan Murdoch

______________________________________________
R-help@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.

Reply via email to