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

From: Prof Brian Ripley <>
Date: Fri 03 Feb 2006 - 18:41:36 EST

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,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Fri Feb 03 18:55:16 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:21 EST