From bates@stat.wisc.edu  Tue Sep  2 19:11:13 1997
From: bates@stat.wisc.edu (Douglas Bates)
Date: 02 Sep 1997 13:11:13 -0500
Subject: R-alpha: R interaction within ESS-4.9-b11: two small issues
In-Reply-To: Anthony Rossini's message of 02 Sep 1997 10:53:11 -0400
References: <wncwwkzaht4.fsf@fhat.stat.sc.edu>
Message-ID: <6rrab760xq.fsf@franz.stat.wisc.edu>

1) I installed the latest ESS (Emacs Speaks Statistics) beta release
on a machine running Linux.  Since there is no S-PLUS product for
Linux, I set the ess-site.el file for R, xlisp-stat, and S version 4.
I.e.,
 ;; (1.5) Require the needed dialects for your setup.

 ;;(require 'essd-s+3)
 (require 'essd-r)
 (require 'essd-xls)
 ;;(require 'essd-sas)
 ;;(require 'essd-s3)  ;; You might not have this
 (require 'essd-s4)  ;; or this one...

That does not seem to work.  I believe that under the present
structure you must require essd-s+3 to get definitions of some
functions used by the other dialects.  Perhaps that dependency could
be removed at some time.

2) I think the current definitions
essd-r.el:61:    (ess-retr-lastvalue-command    . ".Last.value <- get(\"smode.lvsave\",envir=1)\n")
essd-r.el:62:    (ess-save-lastvalue-command    . "assign(\"smode.lvsave\",.Last.value,envir=1)\n")
may be misusing the "envir" argument.  I am getting messages in the
interaction window like
 > Error in get(x, envir, mode, inherits) : variable "smode.lvsave" was not found
If I try to use assign with envir = 1 at the top level I get an error message
 > assign("smode.lvsave", 12, envir = 1)
 Error: invalid envir argument

I haven't gone into debugging of the ESS code to find out if this what
is causing the problem.

Should the assign and get use "inherits = TRUE" instead of "envir=1"?
The R documentation is a bit vague about the use of the envir argument.

-- 
Douglas Bates                            bates@stat.wisc.edu
Statistics Department                    608/262-2598
University of Wisconsin - Madison        http://www.stat.wisc.edu/~bates/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: R interaction within ESS-4.9-b11: two small issues
Douglas Bates