Re: R-alpha: R reading stdin -- "save workspace ?" problem

carlos fonseca (fonseca@acse.shef.ac.uk)
Mon, 25 Mar 1996 16:01:30 GMT


Date: Mon, 25 Mar 1996 16:01:30 GMT
From: fonseca@acse.shef.ac.uk (carlos fonseca)
Message-Id: <199603251601.QAA03845@serin.acse>
To: R-testers@stat.math.ethz.ch
Subject: Re: R-alpha:  R reading  stdin -- "save workspace ?" problem

> From r-testers-owner@stat.math.ethz.ch Mon Mar 25 15:49:13 1996
>
> [...]
>
> Reading from  stdin  and  writing to  stdout
> is such a powerful concept in Unix,
>
> [...]
>
> 1) Going further the  "command line road", one could consider a command
>    line option , as
> 
> 	R < FOO.R		will save 
> 	R -save < FOO.R		will save 
> 
> 	R -nosave < FOO.R	will not save
> 
> 
> 2) In addition, I'd like the  q(.) function
>    to look like this:
> 
> 	q <- function(save = "ask") { ...... }
> 
>    where ask can be  'yes',  'no', and  'ask' and 
>    defaults  to  'ask', the behavior currently used.
> 
> ----
> 
> What do you think ?

I agree.

Also, another little bug (from memory, I don't have R here): "load"
calls .Internal(load, file, ascii), making it complain about 2
arguments being passed.

.Internal(load, file) works regardless of whether file was saved as
ascii or binary.

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