[ESS] some recent bugs/annoyances

gerald.jean at dgag.ca gerald.jean at dgag.ca
Mon Nov 12 17:36:30 CET 2012


Hello Vitalie,

not sure what you want me to do with the function you sent.  With no
process running if I paste it either in a "*.q" buffer or in the *scratch*
buffer and evaluates it with "C-x C-e" I just get the name of the function
"ess-start-process-specific" in the mini-bufer???

As for a universal command to start S+, I don't know???  On the Linux box
on which I run it, "Splus" will start the last installed command line
version, no GUI on 64-bit Linux version.  On Windows I don't have a clue???

Thanks again for your support,

Gérald
                                                                                   
 (Embedded image moved to file:                                                    
 pic08772.gif)                                                                     
                                                                                   
 Gerald Jean, M. Sc. en statistiques                                               
 Conseiller senior en statistiques     Lévis (siège social)                        
                                                                                   
 Actuariat corporatif,                 418 835-4900, poste                         
 Modélisation et Recherche             7639                                        
 Assurance de dommages                 1 877 835-4900, poste                       
 Mouvement Desjardins                  7639                                        
                                       Télécopieur : 418                           
                                       835-6657                                    
                                                                                   


                                                                                  
 Faites bonne impression et imprimez seulement au besoin!                         
                                                                                  
 Ce courriel est confidentiel, peut être protégé par le secret professionnel et   
 est adressé exclusivement au destinataire. Il est strictement interdit à toute   
 autre personne de diffuser, distribuer ou reproduire ce message. Si vous l'avez  
 reçu par erreur, veuillez immédiatement le détruire et aviser l'expéditeur.      
 Merci.                                                                           
                                                                                  




ess-help-bounces at r-project.org a écrit sur 2012/11/12 10:57:54 :

>   >> gerald.jean at dgag.ca
>   >> on Mon, 12 Nov 2012 10:16:26 -0500 wrote:
>
>   gj> Hello,
>
>   gj> another annoyance, for me anyway, is when I am in a "*.q" buffer,
that I
>   gj> used to run Splus code, if I have no sessions opened, neither R,
nor S+,
>   gj> ..., if I don't remember no Splus session is opened and submitsome
code
>   gj> from that buffer, ESS just starts a new R session WITHOUT asking or
>   gj> anything???
>
> I was also surprised to see this in the code. What shall we call by
> default then? I am not using S+ at all so have no clue. What is the
> universal emacs function to start it?
>
>
>
> Can you please check if this version works for you. If so I will commit.
>
> (defun ess-start-process-specific (language dialect)
>   "Start an ESS process typically from a language-specific buffer, using
> LANGUAGE (and DIALECT)."
>
>   (unless dialect
>     (error "The value of `dialect' is nil"))
>
>   (save-current-buffer
>     (let ((dsymb (intern dialect)))
>       (ess-write-to-dribble-buffer
>        (format " ..start-process-specific: lang:dialect= %s:%s,
> current-buf=%s\n"
>                language dialect (current-buffer)))
>       (cond ((string= dialect "R") (R))
>             ;; ((string= language "S") ;VS[03-09-2012]: cannot start s+?
>             ;;  (message "ESS process not running, trying to start
> R, since language = 'S")
>             ;;  (R))
>             ((string= dialect "Stata") (stata))
>             ;;general case
>             ((fboundp dsymb)
>              (funcall dsymb))
>             (t ;; else: ess-language is not S
>
>              ;; Typically triggered from
>              ;; ess-force-buffer-current("Process to load into: ")
>              ;;  \-->  ess-request-a-process("Process to load into:
> " no-switch)
>              (error "No ESS processes running; not yet implemented
> to start (%s,%s)"
>                     language dialect)))
>       ;; save excursion is not working here !!! bad bad bad !!
>       )))
>
> It basically relies on the value of ess-dialect and calls the function
> indicated by the dialect if such exists. Topically it is "S+6".
>
> Vitalie
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help


More information about the ESS-help mailing list