Martin Maechler | 4 May 10:17 2016
Picon
Gravatar

Pre release of ESS 16.04 - please test

Dear ESS users,

I've made avaialable  tar (and zip) balls of a prerelease of
ESS 16.04 ((16-04 = April 2016, yes, we are slightly late)),
at
  ftp://stat.ethz.ch/U/maechler/ESS/

Of course they are also available via MELPA or from our github
repository https://github.com/emacs-ess/ESS/

The plan had been to freeze 16.04 end of last week and do much
testing, fixing as many errors as possible before release.
Unfortunately we did not announce this really, and I am doing
that now.

There a quite bit of new features and improvement,
some of the more important ones possibly in what was called "ESS
developer" mode and now has the menu entry / sub menu
 "Package development".
Typically ESS now automatically detects that you are editing
package R source code.  If needed (much more rarely),
the(changed!) key sequence to use is  C-c C-t C-s.

If you find errors / problems you may open an issue on github to
report them ..
or use the good ole [ESS] menu entry "send bug report"
or equivalently
   M-x ess-submit-bug-report

Thank you in advance for your support in making ESS better, by
(Continue reading)

Vinh Nguyen | 18 Apr 00:50 2016
Picon
Gravatar

auto-complete working in inferior-ess-mode but not ess-mode?

Hi,

I'm currently using the bleeding edge version of ESS on Emacs 24.5.1
in Windows 7.  I have the following in my init file to enable
auto-complete:

(setq ess-use-auto-complete t)

In an iESS buffer (iESS [R]), auto-complete works (type "plot." in the
prompt and a list of possibilities is displayed).  I also see a
drop-down menu named "Complete".

However, within an R file (ess-mode; ESS[S]), auto-complete doesn't
work (eg, when I type "plot." like before).  I don't see the
"Complete" drop-down menu either.  When I run the function
(auto-complete-mode), the mode gets disabled, meaning that it was
enabled before.

Any thoughts on what's going on and how I could fix this?  Thank you.

-- Vinh

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

William Denton | 8 Apr 17:34 2016
Picon
Gravatar

Change in ESS affects Org generating images through R session

It's possible a recent change in ESS has broken generating images with R in Org. 
I raised this on the Org list and was asked to bring it over here (see below).

This works in Org, and generates an image:

#+BEGIN_SRC R :results graphics :file example.png
plot(1)
#+END_SRC

But if I start an R session (M-x R) and then run this, with :session, I get an 
error.

#+BEGIN_SRC R :session :results graphics :file example.png
plot(1)
#+END_SRC

The error is

+ + Error: unexpected symbol in:
"plot(1)
},error=function(e){plot(x=-1:1, y=-1:1, type='n"

That's coming from the org-babel-execute:R function in Org's lisp/ob-R.el:

http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ob-R.el

I'm not good enough to pick out what's going on there or see how any recent 
changes in ESS could have done something.

Now here is a bit from an email from Rainer Krug, with a few points about how he 
(Continue reading)

Tamas Papp | 7 Apr 10:39 2016
Picon

fill-paragraph on documentation in ESS/julia

Hi,

If in ESS/julia I run M-q (fill-paragraph) on the docstring in the
definition

"Resolve the complement of an index. Always return an index that does
not drop dimensions."
function getindex(si::SymbolIndex, x::Any, ::Val{:complement})
    setdiff(1:si.length, getindex(si,x))
end

it gets rearranged to

"Resolve the complement of an index. Always return an index that does
not drop dimensions."  function getindex(si::SymbolIndex, x::Any,
::Val{:complement}) setdiff(1:si.length, getindex(si,x)) end

Is there a way to tell ESS only to rearrange the string, not anything
around it?

(Using latest master from git repo.)

Best,

Tamas

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

(Continue reading)

Vincent Goulet | 4 Apr 05:50 2016

Interaction with Sweave, knitr, pandoc, polymode et al.

Please bear with me, I have many related issues to address.

I had been paying little attention to the process of sweaving with ESS for some time as I didn't have much to do
and when I did, it was mostly for large projects on which I rely on makefiles.

I find myself looking into all this more closely these days and also investigating how knitting with
rmarkdown works in Emacs.

First, I realize that the mechanisms now in place in ESS to sweave and compile to PDF a .Rnw file perfectly fit
my workflow, especially when ess-swv-plug-into-auctex-p is true. One can start compilation with C-c
C-c as usual and choose either to only sweave the file or to sweave and then compile to PDF with LaTeX. The TeX
engine chosen on the AUCTeX side is honoured as seen to be the encoding of the file. Nice work ESS people!

However, when .Rnw files are associated with poly-noweb+r-mode (from polymode) as is the case in my
distribution, the whole ESS and AUCTeX integration seems to be disabled. I think this is unfortunate.
Enough to strongly consider removing the default association in my distribution. If one wants to use the
whole polymode approach for what I'd consider "pure" Sweave files, one would need to opt-in via ~/.emacs.

What do you people think of that?

Second, polymode appears to be the best choice to work with rmarkdown on Emacs. In order to have my Emacs
distribution R Markdown-ready as much as possible, I'd keep at least the following association enabled
by default:

(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))

Third, pandoc. I discovered that RStudio ships with a version. [And also that rmarkdown has special
bindings to find the RStudio version of pandoc, but otherwise lets you on your own. Not impressed.] I
thought that doing the same for Emacs could be nice to have a distribution fully markdown and rmarkdown
ready. I can tell markdown-mode where to find a parser by setting 'markdown-command'. However,
(Continue reading)

Christopher W. Ryan | 21 Mar 21:45 2016

how to make ESS open 64-bit R instead of 32-bit R?

I'm running:
Windows 7 Professional, Service Pack 1
on a 64-bit machine
R 3.2.3
emacs 24.3.1
ESS 13.0.9

The first part of my environment PATH reads like this:
C:\Program Files\R;C:\Program Files
(x86)\ImageMagick-6.8.9-Q16;C:\Windows\system32;C:\Windows; . . . .
and nothing about R appears anywhere else in my path.

My user path reads like this:
C:\Program Files\R;C:\Users\ryanc\AppData\Local\Pandoc\

When I open an .R or .Rnw file and execute a line of code, ESS opens up
my 32-bit version of R.  Usually that has been fine, but now I have
projects that need higher memory.limit(). I'd like my 64-bit version to
open instead.  How can I accomplish that?

Thanks.

--Chris

--

-- 
Christopher W. Ryan, MD, MS
cryanatbinghamtondotedu
https://www.linkedin.com/in/ryancw

Early success is a terrible teacher. You’re essentially being rewarded
(Continue reading)

Christopher W Ryan | 18 Mar 15:26 2016

"An indirect buffer cannot visit a file."

Sometimes when editing an .Rnw file, working with R, Sweave, and
emacs, I want to save my current buffer under some other file name
than the file it came from, and sometimes I will get this error
message:

"An indirect buffer cannot visit a file."

I have not yet found a patter as to the conditions under which this
error message pops up.

I'm having a hard time understanding indirect buffers, but I've never
intentionally used or created one. I don't anticipate I will ever have
a need to. I don't know how a particular buffer becomes an indirect
buffer. Is there an indication somewhere, perhaps in the status bar,
that a buffer is an indirect one? And is there a way to turn an
indirect buffer back into a "regular" buffer?

Thanks.

--Chris Ryan

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

Robert Liu via ESS-help | 11 Mar 04:55 2016

ess CN domain and keyword

(Please forward this to your CEO, because this is urgent. Thanks)

We are the domain name registration organization in China. On March 10, 2016, we received an application
from Ketai Holdings Ltd requested "ess" as their internet keyword and China (CN) domain names. But after
checking it, we find this name conflict with your company name or trademark. In order to deal with this
matter better, it's necessary to send email to you and confirm whether this company is your business
partner in China?

Kind regards

Robert Liu
General Manager 
YIGUDNS (Headquarters)
3005, Jinxuan Building, No. 238 Nandan Road, 
Shanghai 200030, China
Tel: +86 21 6191 8696
Mobile: +86 138 1642 8671
Fax: +86 21 6191 8697
Web: www.yigudns.cn  
Email: robert.liu <at> yigudns.cn
	[[alternative HTML version deleted]]

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

Paul Johnson | 24 Feb 17:41 2016
Picon

In Stata mode, where do graphs display?

Has anybody prepared a basic Stata HOWTO for ESS?  I need it.

I use Stata one time every 5 years.  I don't remember having this
problem in Linux before. Of course, that was 2010. My recollection was
that I launched a full GUI xstata as the inferior session and it was
receiving my instructions from ESS.  But maybe I imagine that.

I am able to M-x stata and see stata in a buffer.  It looks like *R*.
I can submit commands into it, read the output. The text mode parts
seem fine so far.

I have 2 problems that need help.

1. No graphs display on screen. I run the commands, they seem to run
(take time), just no graphs pop up in separate windows. What's up with
that? Is my X broken?

2. I was reading some old messages in this list and see that there is
a known problem
of line-continuations.  Even between Stata's own file editor and
terminal it is horrible.

Stata code file uses continuation symbols "///" that are not
understood in their terminal. I gather that Stata GUI deals with this
stupidity by writing a text files on disk when it wants to communicate
between the do file editor and the interactive session.  This seems
very odd to me.

It looks like ESS could fix this by allowing region-submits to replace
///<return> with a space, so a multi line thing would go over to the
(Continue reading)

Atul Shrivastava | 8 Feb 19:43 2016
Picon

Terminating ESS/R session question

Hello - I recently started using ESS in emacs (using Prof. Goulet’s version in Windows. Thank You!).
After customization, the tool works great but there’s one simple piece of functionality that I’m
unable to get working.

I prefer to have emacs prompt me to (y/n/c) to save my R workspace when I quit ESS/R buffer (typically thru C-c
C-q), but right now it quits without saving the workspace, while saving .Rhistory in the working
directory. I can force save by setting inferior-R-args in init.el file, but I want the default behavior to
be where the system prompts me.

Any thoughts are greatly appreciated.

regards,

Atul Shrivastava

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Vitalie Spinu | 8 Feb 14:59 2016
Picon
Gravatar

Re: How to assign function key


>> On Sat, Feb 06 2016 15:22, Patrick Connolly wrote:

> (define-key ess-mode-map [f5] 'ess-r-args-show)
> (define-key ess-mode-map [f6] 'ess-r-args-insert)
> (define-key inferior-ess-mode-map [f5] 'ess-r-args-show)
> (define-key inferior-ess-mode-map [f6] 'ess-r-args-insert)

> Now, the point of F5 is almost redundant because it happens by default
> -- *except* that only the first line is shown. :-( To see any more, I
> can press the <tab> key but that won't show the defaults.  To get
> them, I end up having to use the args() function -- now with quotes
> required for the function name.

> For example, if I want to see the arguments and their defaults for
> fisher.test, I see the first line of them in the mini-buffer
> immediately after I type the open bracket.  Previously, I had to press
> the F5 key but it showed all of them.  Now, if I try to do that, I get
> a Message;
>  call-interactively: Wrong type argument: characterp, ("x" . "")

I have fixed this part in the development version. For now you can put this in
your file:

     
     (defun ess-r-args-get (&optional function trim)
       (if (null function)
           (setq function (ess-r-args-current-function)))
       (when (and function
                  (or ess-current-process-name
(Continue reading)


Gmane