Re: [R] (newbie) Saving the workspace in .txt format

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 03 Feb 2006 - 20:04:32 EST

Hi

you can also try to look at

?savehistory

which enables you to save your latest commands to a file. Or use menu item save history. You can edit this saved file and you can use part of it or whole by loadhistory or just by copy/paste to R console.

HTH
Petr

On 3 Feb 2006 at 7:41, Prof Brian Ripley wrote:

Date sent:      	Fri, 3 Feb 2006 07:41:36 +0000 (GMT)
From:           	Prof Brian Ripley <ripley@stats.ox.ac.uk>
To:             	Thomas L Jones <DrJones@alum.mit.edu>
Copies to:      	R-project help <r-help@stat.math.ethz.ch>
Subject:        	Re: [R] (newbie) Saving the workspace in .txt format

> On Thu, 2 Feb 2006, Thomas L Jones wrote:
>
> > (newbie question) How do I save the workspace in Windows text format
> > (with the file extension .txt)? Also, having saved it and edited it,
> > how do I load it back into the workspace?
>
> `save' is a command in R, and it has a ascii argument. So you could
> do save.image("workspace.txt", ascii=TRUE) to save, and
> load("workspace.txt") to reload.
>
> The underlying assumption seems to be that text format files are
> editable (by a human). Lots of data formats are text files but have
> many rigid restrictions: PDF is one example and R save formats are
> others.
>
> --
> Brian D. Ripley, ripley@stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self) 1 South
> Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG,
> UK Fax: +44 1865 272595
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal@precheza.cz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 03 20:18:21 2006

This archive was generated by hypermail 2.1.8 : Sat 04 Feb 2006 - 03:01:45 EST