Tamas Papp | 4 Mar 17:10 2015

comma in Julia REPL (change-directory, etc)

Pressing , in the Julia REPL brings up choices for changing the
directory etc, but these appear to be unimplemented for Julia.

I would like to implement them, can someone please suggest another
language used by ESS that I could use as an example? Perhaps not R,
since some functionality (eg vignettes) is not present in Julia so I
would need to add/remove features.



ESS-help <at> r-project.org mailing list

Erin Jonaitis | 4 Mar 17:05 2015

Different results in interactive vs batch mode

Hello ESS helpers,

I have been a happy user of SAS interactive mode for the last few weeks, but have run into something really strange.
I wrote some code for data management using proc sql and the data step. I got it working in interactive mode
(where "working" means I see the same dataset that my coworker sees independently, using his own programming).
However, when I run it in batch mode, the dataset it produces is not right. I did a little poking at it looks
like the batch mode version grabs the first "slice" of the data alphabetically, sliced along one of the
variables I'm using to merge the datasets, but ignores the remaining 27 slices (i.e. the rows containing
other values of this variable).

I could almost understand it if the interactive mode were producing something wrong. But the fact that the
batch mode is getting it wrong... that really puzzles me. It happens both when I use the menu SAS->Submit
File and also when I skip emacs and just run it from the command line.

Has anyone ever seen anything like this?

Erin Jonaitis  |  Biostatistician
Frontier Science & Technology Research Foundation
505 South Rosa Road, Suite 100  |  Madison, WI 53719
(608) 535-8300 x2062  |  jonaitis <at> fstrf-wi.org

ESS-help <at> r-project.org mailing list

Paul Johnson | 27 Feb 13:46 2015

Polymode markdown indents (whitespace) lost

OK to discuss polymode here (apart from ESS?).

In Rmd file for slides, I see problem that lines beginning with dash are
pushed to the left margin. I'm writing presentations.  I type this

- pt one
    - sub one
    -sub two

for nested list.  I usually insert 4 spaces manually, have also tested 2
tabs entry method. In Emacs 24.4 with polymode installed last week, I see
problem that the indented lines float back to left side (for no reason I
can discern).  Sometimes happens repeatedly, I type space and look back as
it disappears.

Have uninstalled polymode and same does not happen, so far as I can tell.

If others don't see same, it means my init file conveniences are causing
trouble again, I suppose.

Paul Johnson

	[[alternative HTML version deleted]]

ESS-help <at> r-project.org mailing list

(Continue reading)

Tamas Papp | 25 Feb 10:37 2015

how to leverage ESS parsing to find current module in Julia buffer


I am still working on improving ESS/Julia, especially the evaluation
context. The problem I am facing is finding the relevant module for
evaluation --- I thought I can simply search backwards with a regexp,
but submodules complicate this.

For example, if a buffer contains

--8<---------------cut here---------------start------------->8---
module Parent

module Child1
f(x) = x+1

module Child2
g(x) = x+1                      # eval here

--8<---------------cut here---------------end--------------->8---

and the user presses C-c C-c on the line that contains

g(x) = x+1                      # eval here

then the relevant module for eval is Parent.Child2. If I naively search
backwards and collect all module lines that match a regexp, I get
Parent, Child1, and Child2.
(Continue reading)

Andreas Leha | 24 Feb 10:52 2015


Hi all,

I just read the announcement of new completion functionality in
RStudio [1].  And there are a few bits that make me jealous, as I do not
know how to achieve them is ESS.

Most useful for me would be
1. the completion in dplyrs verbs
2. completion of S3 / S4 methods

Is something like this already feasible without me knowing?

If not, is something similar possible in some not so distant future?


[1] http://blog.rstudio.org/2015/02/23/rstudio-v0-99-preview-code-completion/

ESS-help <at> r-project.org mailing list

Ramiro Barrantes | 23 Feb 20:59 2015

Wrong type argument: numberp, t


I just wrote an email with a bug and I did not add important information I just found.

When I try pasting several lines of code on an R session I get:

"Wrong type argument: numberp, t"

and it only evaluates the first line.

Any help appreciated,

p.s. this is my previous email:

I just installed ESS 14.09 on emacs 24.4.  I was using older versions of both previously.

My main issue is that now, after creating an R session, when I copy/paste or try to evaluate several lines of
code into it only the first line is evaluated.

What is happening??
Thanks in advance,

	[[alternative HTML version deleted]]

ESS-help <at> r-project.org mailing list

(Continue reading)

Ramiro Barrantes | 23 Feb 20:38 2015

Only evaluating first line?


I just installed ESS 14.09 on emacs 24.4.  I was using older versions of both previously.

My main issue is that now, after creating an R session, when I copy/paste or try to evaluate several lines of
code into it only the first line is evaluated.

What is happening??
Thanks in advance,

	[[alternative HTML version deleted]]

ESS-help <at> r-project.org mailing list

Kevin Wright | 20 Feb 23:42 2015

Inserting Rmd chunk delimiters

I think it would be nice for Rmd buffers to have an electric-backtick
function that auto-inserts the chunk delimiters for R chunks, similar
to the way that Rnw files can auto-insert the R chunk delimiters <<>>=
   <at> .

In the meantime, I hard-coded ctrl-backtick to insert the delimiters,
wrapping the delimiters around the current region if it is active.

I don't really grok lisp, so this code is horrible, but it more or less works.

Improvements would be welcome.


(global-set-key (kbd "C-`") 'ess-insert-rmd-chunk)

; Some code derived from wrap-region
; https://github.com/rejeep/wrap-region.el/blob/master/wrap-region.el
(defun ess-insert-rmd-chunk (arg)
    "Insert R chunk delimiters"
  (interactive "*P")
  ;; no region, and blank line
  (if (and (not (region-active-p))
           (looking-at "[ \t]*$"))
      (let ((pos (point)))
              (insert "```{r}\n\n```")
              (goto-char (+ pos 3) ) ) ) ) ; does NOT move forward.  Why?
  ;; region active
  (if (region-active-p)
(Continue reading)

Tamas Papp | 18 Feb 12:43 2015

improving ESS/julia


I would like to make some improvements to the Julia part of ESS,
especially for evaluating code from a buffer (consider modules, have
location info for code, etc). I am not an experienced Emacs Lisp
programmer and I don't know the internals of ESS, so I would like to ask
for some help --- I have some Common Lisp experience. First, I just want
to experiment, then submit a PR when
https://github.com/emacs-ess/ESS/pull/122 is merged.

My question is the following: for each piece of code that is sent to the
inferior process, I would need to wrap it in some Julia code. For
example, for evaluating within a module, I would search backward in the
buffer for something like "module\s-\(\w.*\)\s-" to find the module
name, and then send

(concat "eval(" module_name ", :(" string "))")

Which function should I modify for this? ESS-SEND-STRING is not using
the buffer any more, and I don't know if I should modify

BTW, what's the best way to use ESS from a git repo? Just add the lisp
diretory to the load path, and that's it?



(Continue reading)

Paul Johnson | 16 Feb 01:09 2015

/bin/bash markdown : command not found

Briefly, what are the pieces of the toolchain going from Rmd -> html output?

I'm interested to see what Emacs 24.4 does with markdown. So far as I can
find, there's no pre-packaged Emacs 24.4 for Ubuntu 14.10, so I've compiled
packages. I have ess working.  The emacs-goodies-el package includes a copy
of markdown mode, version 2.0 (2013-03-24).

Now I want to know what is needed to make markdown mode work properly.Is
polymode, which I don't yet have installed, going to replace markdown mode?

Right now, I can open an Rmd file in Emacs, M-x markdown-mode, the correct
menus appear. However when I try to compile something, I get the minibuffer
/bin/bash: markdown: command not found.

I created a markdown script that expects a command line argument.


R -e "library(markdown); render(\"$1\")"

But Emacs-> markdown-mode does not supply the file name argument, so I fail.



Paul E. Johnson
Professor, Political Science      Assoc. Director
1541 Lilac Lane, Room 504      Center for Research Methods
University of Kansas                 University of Kansas
(Continue reading)

Erin Jonaitis | 12 Feb 18:42 2015

ESS[SAS]: Submit region starting new SAS session?


I'm a fairly new emacs user, a very new user of ESS[SAS], and an extremely new subscriber to this list (so
apologies if I violate list etiquette). I'm using GNU emacs 23.4.1 (2012-06-05) and SAS 9.3 on Unix (SunOS 5.10).

I have noticed that code which works when submitted as an entire file will not work when I submit it region by
region. Here is an example:

libname mylib "/.";

data temp; set mylib.temp; run;

Assume that I have a directory as specified in libname and there is a SAS dataset called temp in it -- my code
works properly when I submit the whole thing, but if I run just the first line and then the second, it tells me
that "mylib" is not defined.

Based on the behavior of the log files -- the second submission creates a log file that overwrites the first
-- I think what is going on is that it's starting a new SAS session with each submission. Why might it be doing
this? I find I make fewer programming errors if I test things incrementally rather than running all my code
in batch mode, so I would really like to find a fix to this.

The only other clue I have is a pair of warnings I get on every submission:

NOTE: Unable to open SASUSER.REGSTRY. WORK.REGSTRY will be opened 
NOTE: All registry changes will be lost at the end of the session.

WARNING: Unable to copy SASUSER registry to WORK registry. Because of 
    this, you will not see registry customizations during this session.
NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened 
(Continue reading)