Michael Lawrence | 28 Mar 13:17 2015

R package support in Emacs projectile

Somewhat off-topic, but this [1] is a trivial patch that provides a
consistent interface for building and checking R packages through
projectile, the Emacs project manager. With helm-projectile, one can bring
up a list of projects (version controlled directories), auto-complete to an
R package name, and hit one key to install it with the current on R on the
PATH. Or hit one key (combo) from any buffer inside the package. Could
better integrate with ESS (custom R paths), but my elisp was not up to
adding a conditional dependency of projectile on ESS. Really, projectile
should use a plug-in framework for this.

[1] https://github.com/bbatsov/projectile/pull/692

Michael

	[[alternative HTML version deleted]]

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

Vitalie Spinu | 25 Mar 23:53 2015
Picon

Re: R + ESS + org - do I gain anything when adding CEDET?

 >>> Rainer M Krug on Wed, 25 Mar 2015 20:07:54 +0100 wrote:

 > Is this something which could be implemented easily?

Not what I am aware of.

  Vitalie

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

Vitalie Spinu | 25 Mar 18:37 2015
Picon

Re: R + ESS + org - do I gain anything when adding CEDET?

 >>> Rainer M Krug on Wed, 25 Mar 2015 17:27:20 +0100 wrote:

 > Follow up question: I looked at projectile and tags (ctags) - am I
 > right that there are no tags created for .org and .R files, the ones I
 > would need them for?

You can use C-c C-e C-t to create tags for R.

 > In this case, you are only using the file navigation from projectile?

For file navigation, searching within files, replacing within a project
+ other small stuff.

  Vitalie

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

Rainer M Krug | 23 Mar 13:31 2015
Picon

R + ESS + org - do I gain anything when adding CEDET?


Hi

Sorry in advance, but I guess this is slightly off-topic, but I guess I
get the most informative answers here; so I decided to post it here.

I am thinking about my workflow and project management tools I use.

At the moment I am using orgmode to tangle my R files, which I then load
via load_all() (or devtools) and do my analyses using obvioi8sly ESS.

Now I am not to happy with my project management, basically sets of files
/ buffers I can switch between, and preferably also layouts of the
windows in a frame (I now have a large monitor and I start missing
it...).

I was thinking about CEDET - if I remember correctly, it offers what I
am looking for (I used it ages ago - but before my org times), but does
it add anything more? Does the semantic parser work for R (it is not
listed on their page [1])?

So effectively - before I delve into the beast called CEDET - is it
worth wile for R?

Thanks,

Rainer

Footnotes: 
[1]  http://cedet.sourceforge.net/languagesupport.shtml
(Continue reading)

Rainer M Krug | 23 Mar 13:31 2015
Picon

R + ESS + org - do I gain anything when adding CEDET?


Hi

Sorry in advance, but I guess this is slightly off-topic, but I guess I
get the most informative answers here; so I decided to post it here.

I am thinking about my workflow and project management tools I use.

At the moment I am using orgmode to tangle my R files, which I then load
via load_all() (or devtools) and do my analyses using obvioi8sly ESS.

Now I am not to happy with my project management, basically sets of files
/ buffers I can switch between, and preferably also layouts of the
windows in a frame (I now have a large monitor and I start missing
it...).

I was thinking about CEDET - if I remember correctly, it offers what I
am looking for (I used it ages ago - but before my org times), but does
it add anything more? Does the semantic parser work for R (it is not
listed on their page [1])?

So effectively - before I delve into the beast called CEDET - is it
worth wile for R?

Thanks,

Rainer

Footnotes: 
[1]  http://cedet.sourceforge.net/languagesupport.shtml
(Continue reading)

Alexander Engelhardt | 12 Mar 09:11 2015
Picon

Keybind for "evaluate a multiline command"?

Hello list,

with the help of library(magrittr), my code becomes more and more 
structured in multiline commands, e.g.:

library(babynames)
library(dplyr)
library(magrittr)
library(ggplot2)

babynames %>%
     filter(name %>% substr(1, 3) %>% equals("Ste")) %>%
     group_by(year, sex) %>%
     summarize(total = sum(n)) %>%
     qplot(year, total, color = sex, data = ., geom = "line") %>%
     add(ggtitle('Names starting with "Ste"')) %>%
     print
head(iris)

I am using shift-enter per line, thereby torturing my enter key when 
running these long commands. Is there a way for ESS to recognize these 7 
lines are one command and run them with only one shift-enter?

I know of ess-eval-region-or-function-or-paragraph-and-step , which 
would run that whole thing in one go, but then it would also execute 
subsequent commands (the "head(iris)" in above snippet) that are not 
separated by a newline.

So ideally, I am looking for a command to bind to shift-enter that would 
run the above thing in six hits: one per library, one for the multiline 
(Continue reading)

Andreas Leha | 6 Mar 10:27 2015
Picon

remote R

Hi,

I have two questions about connecting to a remote R session.

(1) What is the state of connecting to a remote R session running in
tmux/screen?

(a) control characters in tmux (due to colours?)

I tried
,----
| M-x term
| ssh remotemachine
| tmux
| R
| C-c M-x ess-remote
`----

This sort of works, but leads to output like this:

,----
| > [1;40r
| [1;39r
| > [1;40r
| [1;39r
| > [1;40r
| [0] 0:nios*                                                                                             "farm3-head1" 09:07 06-Mar-15
| [0] 0:nios*                                                                                             "farm3-head1" 09:08 06-Mar-15
| [1;39r
| > [1;40r
(Continue reading)

Tamas Papp | 4 Mar 17:10 2015
Picon

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.

Best,

Tamas

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

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
https://stat.ethz.ch/mailman/listinfo/ess-help

Paul Johnson | 27 Feb 13:46 2015
Picon

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.

pj
Paul Johnson
http://pj.freefaculty.org

	[[alternative HTML version deleted]]

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

(Continue reading)

Tamas Papp | 25 Feb 10:37 2015
Picon

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

Hi,

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
end

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

end
--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)


Gmane