[R] attach 'name' argument ignored with a file?

2011-11-22 Thread Xavier Robin
Dear useRs experRts, I have the feeling that the 'name' argument to the attach function is ignored when 'what' is a file name. Here is an example: save(letters, file=letters.RData) letters.env - attach(letters.RData, name=letters) search() letters.env The name on the search path is

[R] attach

2010-04-07 Thread Changbin Du
I found the following message maybe help. And I will try it. Hi there, I have just found that the ``attach'' function can get you into trouble when called many times. For example, you have a simulation routine called ``f()'', in which you used ``attach'' and no corresponding ``detach''. Then

Re: [R] attach

2009-10-18 Thread Bernardo Rangel Tura
On Wed, 2009-10-14 at 07:21 +0200, Christophe Dutang wrote: Hi all, I have a question regarding the memory usage for the attach function. Say I have a data.frame inputdat that I create with read.csv. I would like to know what happens on the memory side when I use attach(inputdata) Is

Re: [R] attach

2009-10-17 Thread Peter Dalgaard
Dieter Menne wrote: Christophe Dutang1 wrote: I would like to know what happens on the memory side when I use attach(inputdata) Is there a second allocation of memory for inputdata? Not, it just guides the syntax. Wrong. There's a virtual copy of data plus a conversion from data frame

Re: [R] attach

2009-10-14 Thread Dieter Menne
Christophe Dutang1 wrote: I would like to know what happens on the memory side when I use attach(inputdata) Is there a second allocation of memory for inputdata? Not, it just guides the syntax. Christophe Dutang1 wrote: Is it better not to use attach function? A qualified

[R] attach

2009-10-13 Thread Christophe Dutang
Hi all, I have a question regarding the memory usage for the attach function. Say I have a data.frame inputdat that I create with read.csv. I would like to know what happens on the memory side when I use attach(inputdata) Is there a second allocation of memory for inputdata? Then I'm using

[R] attach package

2009-08-26 Thread Jeremy MAZET
Hello, Is there a solution to attach a package without run the hook function .onAttach() Thanks Jérémy Mazet [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] attach package

2009-08-26 Thread Duncan Murdoch
On 8/26/2009 8:17 AM, Jeremy MAZET wrote: Hello, Is there a solution to attach a package without run the hook function .onAttach() You could modify the source code to remove the hook, but why you'd want to do this, I don't know. Presumably the author of the package had a reason to put the