Ben Bolker | 1 Feb 02:54
Picon

Re: Problem with preview of Rd files

Martin Fink <martinfink <at> gmx.at> writes:

> Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk> writes:
> 
> > A couple of things to check.  
> > 1. when in the .Rd buffer, what does the following give?
> >   C-h v buffer-file-name
> > 
> > 2. From a shell, can you try something like 
> >    R CMD Rd2txt "c:/Users...-package.Rd"
> > 
> I have the same problem as David.
> I am using the latest version Vince Goulet's distribution on Windows
> (GNU Emacs 23.3; ESS 5.14). (I also had the same result with XEmacs.)
> 
> 2) When I use the shell R CMD... I get the expected output.
> 
> 1) When in the .Rd buffer I request the buffer-file-name I get:
> 
> buffer-file-name is a variable defined in `C source code'.
> Its value is "d:/xyz/man/Helpfile.Rd"
> Local in buffer Helpfile.Rd; global value is nil
> 
>   Automatically becomes buffer-local when set in any fashion.
>   This variable is potentially risky when used as a file local variable.
> 
> Documentation:
> Name of file visited in current buffer, or nil if not visiting a file.
> 
> This means I get the correct (working) filename in the buffer,
(Continue reading)

Vitalie Spinu | 1 Feb 09:00
Picon
Gravatar

Re: Problem with preview of Rd files

Ben Bolker <bbolker <at> gmail.com> writes:
>
>   Any update on this?  I'm on Ubuntu 10.04 with ESS 5.14,
> Gnu Emacs 23.1.1.
>

I am looking into this. The problem is indeed that Rd preview requires a
file but roxy doesn't create one. If everyone agrees I will fix the C-c
C-p (Rd-preview-help) to create a temp associated file if missing.

>  However, I will also point out (if anyone's busy making
> improvements) that it would be really great to have a single
> command to preview text in a new buffer, rather than having
> to C-c C-e C-r and then C-c C-p ...

Yes, would be nice, there is already C-c C-e C-t to preview in HTML
(which you should use in meanwhile). I will create the text previewer
and bind to C-c C-e t if someone doesn't come with a better shortcut.

Best,
Vitalie.

>
>   cheers
>     Ben Bolker
>
> ______________________________________________
> ESS-help <at> r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

(Continue reading)

Vitalie Spinu | 1 Feb 11:17
Picon
Gravatar

Re: Problem with preview of Rd files


Solved in SVN and added new function ess-roxy-preview-text bound to C-c
C-e t.

There is a font-lock issue in Rd preview. If the Rd buffer doesn't have
an associated file (as roxy generates it), the buffer is not
fortified. Looks like a font-lock bug to me.

Vitalie.

Vitalie Spinu <spinuvit <at> gmail.com> writes:
> Ben Bolker <bbolker <at> gmail.com> writes:
>>
>>   Any update on this?  I'm on Ubuntu 10.04 with ESS 5.14,
>> Gnu Emacs 23.1.1.
>>
>
> I am looking into this. The problem is indeed that Rd preview requires a
> file but roxy doesn't create one. If everyone agrees I will fix the C-c
> C-p (Rd-preview-help) to create a temp associated file if missing.
>
>>  However, I will also point out (if anyone's busy making
>> improvements) that it would be really great to have a single
>> command to preview text in a new buffer, rather than having
>> to C-c C-e C-r and then C-c C-p ...
>
> Yes, would be nice, there is already C-c C-e C-t to preview in HTML
> (which you should use in meanwhile). I will create the text previewer
> and bind to C-c C-e t if someone doesn't come with a better shortcut.
>
(Continue reading)

Picon
Favicon

Re: Problem with preview of Rd files

On Wed, Feb 1, 2012 at 5:17 AM, Vitalie Spinu <spinuvit <at> gmail.com> wrote:

>
> Solved in SVN and added new function ess-roxy-preview-text bound to C-c
> C-e t.
>
> There is a font-lock issue in Rd preview. If the Rd buffer doesn't have
> an associated file (as roxy generates it), the buffer is not
> fortified. Looks like a font-lock bug to me.
>
>
My recollection is that a buffer unaffiliated with a file always opens in
fundamental mode,
no matter what the buffer's extension is.  Rather than opening a buffer,
can you open a new file.
You don't need to save it to get the behavior, but it does need to be a
file.

Rich

> Vitalie.
>
> Vitalie Spinu <spinuvit <at> gmail.com> writes:
> > Ben Bolker <bbolker <at> gmail.com> writes:
> >>
> >>   Any update on this?  I'm on Ubuntu 10.04 with ESS 5.14,
> >> Gnu Emacs 23.1.1.
> >>
> >
> > I am looking into this. The problem is indeed that Rd preview requires a
(Continue reading)

Vitalie Spinu | 1 Feb 17:46
Picon
Gravatar

Re: Problem with preview of Rd files

"Richard M. Heiberger" <rmh <at> temple.edu> writes:

>> There is a font-lock issue in Rd preview. If the Rd buffer doesn't have
>> an associated file (as roxy generates it), the buffer is not
>> fortified. Looks like a font-lock bug to me.
>>
>>
> My recollection is that a buffer unaffiliated with a file always opens in
> fundamental mode,
> no matter what the buffer's extension is.  Rather than opening a buffer,
> can you open a new file.
> You don't need to save it to get the behavior, but it does need to be a
> file.

The problem is that setting the Rd-mode, and activating font-lock
doesn't actually fontify the buffer. This should be unrelated to whether the
buffer visits a file or not, *R* buffer also doesn't  visit any file.

If I manually call font-lock-fontify-buffer, the *RoxyPreview* buffer is
fortified. If I call it from Rd-mode and ess-roxy-preview-Rd functions,
it is not. I must be missing something here.

Vitalie.

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Marta Gomez | 5 Feb 13:02
Picon
Favicon

Emacs and R in Ubuntu 10.10

To whom it may concern,

I am trying to set up Emacs so that it sends my script to the R console 
instead of running R commander; but I seem to keep getting error of
all sorts, and I can't do some of the steps that I see on the web.
Please could you tell me (in as simple terms as possible in case maybe I missed
something obvious and I can't see it) how to go about "synchronizing" R
with Emacs? 

Thanks for the help!
Marta
	[[alternative HTML version deleted]]

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Ista Zahn | 6 Feb 13:53
Picon

Re: Emacs and R in Ubuntu 10.10

Hi Marta,

Usually all it takes is installing R, emacs, and ess:

sudo apt-get update
sudo apt-get install r-base r-base-dev emacs ess

Then open a file with a .R exentsion, such as MyRscript.R. Emacs should enter 
ess mode, giving you an ESS menu and toolbar (assuming you've not turned 
disabled these in your emacs setup). From there you can use the menu to start 
R, or type M-x R <ret>.

If you continue to have trouble, please describe the steps you took and the 
errors that resulted.

Best,
Ista

On Sunday, February 05, 2012 12:02:45 PM Marta Gomez wrote:
> To whom it may concern,
> 
> I am trying to set up Emacs so that it sends my script to the R console
> instead of running R commander; but I seem to keep getting error of
> all sorts, and I can't do some of the steps that I see on the web.
> Please could you tell me (in as simple terms as possible in case maybe I
> missed something obvious and I can't see it) how to go about
> "synchronizing" R with Emacs?
> 
> Thanks for the help!
> Marta
(Continue reading)

Joan-Josep Vallbé | 6 Feb 13:06

Re: ESS-help Digest, Vol 108, Issue 3

Hi Marta

I do work with Ubuntu and use emacs + R without any problem, as yours 
should do. Have you installed ESS correctly? (Try

sudo apt-get install ess

Then try to paste the following code in your .emacs file (it should be 
in your home directory; Control+h will allow you to see these hidden 
files), restart emacs and open an R session. The code also contains code 
to work with Rsweave to combine R and LaTeX:

(require 'ess-site)
(require 'ess-eldoc)
(setq TeX-file-extensions
       '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode))
(add-hook 'Rnw-mode-hook
  (lambda ()
   (add-to-list 'TeX-expand-list '("%rnw" file "Rnw" t) t)
   (add-to-list 'TeX-command-list
    '("Stangle" "R CMD Stangle %rnw"
      TeX-run-command nil (latex-mode) :help "Run Stangle") t)
   (add-to-list 'TeX-command-list
    '("Sweave" "R CMD Sweave %rnw"
      TeX-run-command nil (latex-mode) :help "Run Sweave") t)
   (add-to-list 'TeX-command-list
  '("LatexSweave" "%l \"%(mode) \\input{%s}\""
;  '("LatexSweave" "%l %(mode) %s"
(Continue reading)

Rodney Sparapani | 6 Feb 17:20
Picon
Gravatar

Re: Emacs and R in Ubuntu 10.10

Marta Gomez wrote:
> To whom it may concern,
> 
> I am trying to set up Emacs so that it sends my script to the R console 
> instead of running R commander; but I seem to keep getting error of
> all sorts, and I can't do some of the steps that I see on the web.
> Please could you tell me (in as simple terms as possible in case maybe I missed
> something obvious and I can't see it) how to go about "synchronizing" R
> with Emacs? 
> 
> Thanks for the help!
> Marta

Hi Marta:

I just did this myself with Ubuntu 11.10.  For some strange reason on 
Ubuntu (and Debian I suppose), you need to manually add the ess 
directory to the load-path since it does not happen automatically (why 
god why?).  Anyways, I did it like this:

(debian-pkg-add-load-path-item "/usr/share/emacs/site-lisp/ess")

Rodney

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Vitalie Spinu | 8 Feb 19:31
Picon
Gravatar

Re: public git mirror?


>>>> Martin Maechler <maechler <at> stat.math.ethz.ch>
>>>> on Mon, 23 Jan 2012 16:13:38 +0100 wrote:

  >>>>>> Rodney Sparapani <rsparapa <at> mcw.edu>
  >>>>>> on Mon, 23 Jan 2012 09:02:43 -0600 writes:

  >> Aleksandar Blagotić wrote:
  >>> IMO, it would gain more public attention if it was hosted
  >>> on GitHub. I'd certainly like to see ESS there, as both
  >>> developers and users could easily report/fix bugs, thus
  >>> making ESS even more cooler. GitHub is far form being
  >>> only a free git repo service. It has awesome
  >>> collaboration tools!
  >>> 
  >>> aL3xa
  >>> 

  >> git is designed for a very decentralized development
  >> philosophy.  We don't have enough ESS developers where it
  >> would be appealing to move to git IMHO.  

  MM> I entirely agree.
  MM> Also the drawback that you need funny stamps etc for all the
  MM> branches is really an extra complication which I would not like
  MM> compared to simple revision numbers.

It's actually a two-way path, we also don't have enough developers
because of the rigid development system. Git encourages and is all about
branching. On GitHub forking and pull requests are one click away.  Very
(Continue reading)


Gmane