R-alpha: bug in save

Friedrich Leisch (Friedrich.Leisch@ci.tuwien.ac.at)
Wed, 12 Feb 1997 15:26:02 +0100


Date: Wed, 12 Feb 1997 15:26:02 +0100
Message-Id: <199702121426.PAA20640@saruman.ci.tuwien.ac.at>
From: Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: bug in save



I'm using R Version 0.16.1 (Released: February 11, 1997) on a Linux
machine.

`save' seems to have the following bug: I cannot save variables that
were created in a function, i.e.

	myfirstsave <- function(x){
	  save(x, file="whatever")
	}

works fine, but

	myothersave <- function(x){
	  y<-x
	  save(y, file="whatever")
	}

results in

R> myothersave(1)
Error: Object "y" not found


Regards,
Fritz

-- 
=====================================================================
                         Friedrich  Leisch                             
 Institut für Statistik                      Tel: (+43 1) 58801 4541
 Technische Universität Wien                 Fax: (+43 1)  504 14 98
 Wiedner Hauptstraße 8-10/1071      Friedrich.Leisch@ci.tuwien.ac.at
 A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
      PGP public key http://www.ci.tuwien.ac.at/~leisch/pgp.key
=====================================================================

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-