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

Or:

attach('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.

Pat



On Mon, Jun 14, 2010 at 12:41 PM,<khaz...@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@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
pbu...@pburns.seanet.com
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')

______________________________________________
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