[R] How we can open the results are saved

Patrick Burns pburns at pburns.seanet.com
Mon Jun 14 19:57:00 CEST 2010

On 14/06/2010 17:50, jim holtman wrote:
> load('adresse/filename.R')



The difference between 'load' and 'attach'
is that 'load' puts the contents of the file
into your workspace (global environment, first
location on the search list), while 'attach'
creates a new location on the search list.

But calling this 'filename.R' is likely to lead
to trouble.  The '.R' suffix is usually used
for files containing R commands that can be
used by the 'source' function.

The usual convention for files created by 'save'
is to use a '.rda' suffix.


> On Mon, Jun 14, 2010 at 12:41 PM,<khazaei at ceremade.dauphine.fr>  wrote:
>> Hi all
>> I saved the result of my code as a file, like
>>> save(namefunction,file="adresse/filename.R").
>>   I want to open the filename. Could you please help me how I can open the
>> filename and see the result.
>> best
>> Khazaei
>> ______________________________________________
>> 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.

Patrick Burns
pburns at pburns.seanet.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')

More information about the R-help mailing list