R-alpha: R interaction within ESS-4.9-b11: two small issues
Anthony Rossini
rossini@stat.sc.edu
02 Sep 1997 15:39:10 -0400
>>>>> "Douglas" == Douglas Bates <bates@stat.wisc.edu> writes:
Douglas> 1) I installed the latest ESS (Emacs Speaks Statistics)
Douglas> beta release
Douglas> on a machine running Linux. Since there is no S-PLUS product for
Douglas> Linux, I set the ess-site.el file for R, xlisp-stat, and S version 4.
Douglas> I.e.,
Douglas> ;; (1.5) Require the needed dialects for your setup.
Douglas> ;;(require 'essd-s+3)
Douglas> (require 'essd-r)
Douglas> (require 'essd-xls)
Douglas> ;;(require 'essd-sas)
Douglas> ;;(require 'essd-s3) ;; You might not have this
Douglas> (require 'essd-s4) ;; or this one...
Douglas> That does not seem to work. I believe that under the
Douglas> present structure you must require essd-s+3 to get
Douglas> definitions of some functions used by the other dialects.
Douglas> Perhaps that dependency could be removed at some time.
I just did. Sorry (changed for beta-12, to release Friday). I've
moved the basic formatting into essl-s.el (ESS, Languages in the S
family), which is required by essd-s3, essd-s4, essd-s+3,essd-s+3...
Douglas> 2) I think the current definitions
Douglas> essd-r.el:61: (ess-retr-lastvalue-command
Douglas> . ".Last.value <- get(\"smode.lvsave\",envir=1)\n")
Douglas> essd-r.el:62: (ess-save-lastvalue-command
Douglas> . "assign(\"smode.lvsave\",.Last.value,envir=1)\n")
Douglas> may be misusing the "envir" argument. I am getting
Douglas> messages in the interaction window like
>> Error in get(x, envir, mode, inherits) : variable
>> "smode.lvsave" was not found
Douglas> If I try to use assign with envir = 1 at the top level I
Douglas> get an error message
>> assign("smode.lvsave", 12, envir = 1)
Douglas> Error: invalid envir argument
Douglas> I haven't gone into debugging of the ESS code to find out
Douglas> if this what is causing the problem.
Douglas> Should the assign and get use "inherits = TRUE" instead
Douglas> of "envir=1"? The R documentation is a bit vague about
Douglas> the use of the envir argument.
This is a bit more important. I've not yet found an acceptable work
around (well, Kurt H. said he could provide a hacked solution soon).
I'm still hunting for suggestions...
best,
--
-tony (Anthony Rossini) Statistics Dept., U South Carolina
rossini@stat.sc.edu Columbia, SC 29208
http://www.stat.sc.edu/~rossini/ 803-777-3578(O) 803-777-4048 (fax)
"'Bother,' said Pooh, as Cthulu rose up and ate him."
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-