[ESS] back/forwardslash incompatability

Rodney Sparapani rsparapa at mcw.edu
Tue Jul 26 16:51:05 CEST 2005


tim downie wrote:

>--- Rodney Sparapani <rsparapa at mcw.edu> wrote:
>
>  
>
>>Hi Tim:
>>
>>Hmm.  What are you entering in the minibuffer?  I
>>assume
>>it is either "C:\working\cricket\strip_odi.r" or
>>"C:/working/cricket/strip_odi.r"
>>    
>>
>Hi Rodney,
>
>it is "C:\working\cricket\strip_odi.r",
>or rather the file that xemacs is automatically
>entering into the minibuffer and executing on my
>behalf,
>when I type C-c C-l or eqivalently when I type 
>ess-load-file.
>
>Thanks for your help.
>
>Cheers
>Tim
>  
>
>
Tim:

So, you're not entering anything...  That's the part I was trying to
fix in the earlier thread.  How about trying this version:

(defun ess-load-file (filename)
"Alternate version of `ess-load-file', required with S+4.
This version sends the S-Plus command
     source(\"filename\")
to S.  This version does not guarantee to save .Last.value
This version does not offer alternate buffers or editing capability."
     (interactive (list
           (ess-replace-in-string (or
            (and (eq major-mode 'ess-mode)
             (buffer-file-name))
             (expand-file-name
             (read-file-name "Load S file: " nil nil t))) "[\\]" "/")))
     (if (equal (ess-get-process-variable
         ess-current-process-name 'inferior-ess-ddeclient)
        (default-value 'inferior-ess-ddeclient))
     (ess-load-file-original filename)
       (ess-load-file-ddeclient filename))
     (widen))




More information about the ESS-help mailing list