Re: [ESS] R 4.0

2020-04-17 Thread Vitalie Spinu via ESS-help
I think we could stick to capital `R-`. A few false positives, if any, are probably harmless. Vitalie On Fri, 17 Apr 2020 at 02:18, Tyler Smith via ESS-help wrote: > > I have some TeX-related stuff: > > r-mpost > r-pmpost > r-upmost > > I don't know what they do, I assume they were pulled in

Re: [ESS] ESS-help Digest, Vol 199, Issue 3

2019-09-20 Thread Vitalie Spinu via ESS-help
> (add-to-list 'load-path "~/Library/Preferences/Aquamacs Emacs/Packages/lisp/") > (require 'ess-site) > (load "ess-autoloads") ;; need to register Rnw files > (require ‘polymode) ;; version 2.0 now > (require 'poly-markdown) > (require 'poly-noweb) > (require 'poly-R) ;; Just to clarify that

Re: [ESS] Possible to interact with julia-repl?

2019-09-01 Thread Vitalie Spinu via ESS-help
>> On So, Aug 25 2019 11:07, HaiYing Wang wrote: > Similar to the above situation, I find if I am able to set the value of > "ess-local-process-name" to "julia", then the script file can interact with > julia-repl. However, I don't know how to do this. It seems these variables > cannot be

Re: [ESS] font color in Sweave file and slowness in inferior mode issues

2019-03-13 Thread Vitalie Spinu via ESS-help
>> On Mon, Mar 04 2019 23:51, Samuele Carcagno via ESS-help wrote: > (add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode)) > (add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode)) > (add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode)) > (add-to-list 'auto-mode-alist

Re: [ESS] ESS+Polymode Questions

2019-03-13 Thread Vitalie Spinu via ESS-help
>> On Thu, Mar 07 2019 12:17, Marc Schwartz via ESS-help wrote: >>> >>> that defines the boundary of an R chunk is bolded in black instead of red. I >>> Googled for polymode colors but did not see anything obvious, so was >>> wondering if someone can point me to the fontlock settings for the

Re: [ESS] disable console help when "pausing"

2019-02-28 Thread Vitalie Spinu via ESS-help
>> On Wed, Feb 27 2019 11:29, clark richards via ESS-help wrote: > (setq ess-use-company t) This one is not needed as it's the default. There are a few recommendations on the Emacs Wiki: https://www.emacswiki.org/emacs/ESS-company Vitalie __

Re: [ESS] Problem with R help buffers

2019-01-30 Thread Vitalie Spinu via ESS-help
Hi Henric, This is most surely related to our recent migration to emacs standard display-buffer mechanism. I opened a new issue https://github.com/emacs-ess/ESS/issues/826 Please follow there for a resolution. Vitalie >> On Wed, Jan 23 2019 14:20, Henric Winell via ESS-help wrote: > Hi,

Re: [ESS] Emacs hangs when starting R via -x R

2019-01-30 Thread Vitalie Spinu via ESS-help
Do you customize your R prompt by any chance? Can you start without your ESS customization? If you do M-x toggle-debug-on-error and start R, what do you see on C-g? Vitalie >> On Mon, Jan 28 2019 12:10, Kjetil brinchmann Halvorsen via ESS-help wrote: > I have no way to know if this is a

Re: [ESS] R Error splits code frame

2019-01-16 Thread Vitalie Spinu via ESS-help
Could you please add an issue to github with your frame configuration? I also see some not-so nice dynamics with R buffers recently. We need to discuss this in a bit more detail on the issue tracker. Vitalie >> On Wed, Jan 16 2019 12:01, Johannes Aengenheyster via ESS-help wrote: > Dear

Re: [ESS] Trouble evaluating in namespace

2018-12-08 Thread Vitalie Spinu via ESS-help
You cannot evaluate your input line by line inside a package. The entire function should be sent at once. Use C-c C-c instead. The current doc string of `ess-eval-region-or-line-visibly-and-step` says: Note that when inside a package and namespaced evaluation is in place (see

Re: [ESS] eldoc in Rmd files

2018-11-11 Thread Vitalie Spinu via ESS-help
You have an outdated polymode polymode$ git show 0340f5e7e55235832e commit 0340f5e7e55235832e59673f027cc79a23cbdcd6 Author: Vitalie Spinu Date: Tue Mar 7 12:22:42 2017 +0100 Polymode has been rewritten and R functionality lives in a separate package. Just install `poly-R` from melpa

Re: [ESS] ESS R code evaluation in package

2018-11-11 Thread Vitalie Spinu via ESS-help
>> On Fri, Nov 09 2018 09:38, Cyrus Harmon via ESS-help wrote: > I'm not sure if this is a polymode or an ESS problem It's on the ESS side. There are two things, package mode (devtools commands) is activated in specified sub-directories only (see ess-r-package-dirs), but name-space

Re: [ESS] ESS R code evaluation in package

2018-11-11 Thread Vitalie Spinu via ESS-help
>> On Thu, Nov 08 2018 15:15, Cyrus Harmon via ESS-help wrote: > I naively assumed that i could just C-c C-r the source for an installed > function and I would get the new version, at least for the current R > session. This is how it should work. I do devtools::load_all and devtools::install

Re: [ESS] ESS R code evaluation in package

2018-11-08 Thread Vitalie Spinu via ESS-help
>> On Tue, Nov 06 2018 16:53, Cyrus Harmon via ESS-help wrote: > 1. How might I compile 'moose <- function () { “bar” }’ from Emacs/ESS and > have moose show up in my package? > 2. If it isn’t going into my package now, where is it going? There are essentially 3 cases: 1. `moose` is

Re: [ESS] how to start debugging R with ess-tracebug

2018-10-29 Thread Vitalie Spinu via ESS-help
You can also just put a breakpoint (C-c C-t b) and re-evaluate the code. Those breakpoints are just browser() under the hood. Vitalie >> On Sun, Oct 28 2018 20:51, Jeremie Juste via ESS-help wrote: > Hello, > C-c C-t d runs the command ess-debug-flag-for-debugging, which is an >

Re: [ESS] ESS 18.10-1 patch released

2018-10-27 Thread Vitalie Spinu via ESS-help
>> On Fri, Oct 26 2018 08:33, Alex Branham wrote: > I'd say stick with e.g. 18.10.1, 18.10.2. Ok. Let's do that. __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [ESS] flymake + lintr

2018-10-26 Thread Vitalie Spinu via ESS-help
Most of the linters are disabled by default because they are controversial, buggy or interfere with how emacs users normally do things. See ess-r-flymake-linters for how to change that. I think project local lintr configuration should be taking effect with new version of lintr, but I am not

Re: [ESS] ESS 18.10-1 patch released

2018-10-26 Thread Vitalie Spinu via ESS-help
Our git tags are not signed right? At least I don't see that on GitHub interface. I have manually changed the tag to v18.10.1. Should propagate soon. >> On Thu, Oct 25 2018 17:53, Alex Branham wrote: > This is yet another consequence of ess not being package.el-friendly: There is a good

Re: [ESS] re-mapping C-RET in 18.10, avoiding conflict with CUA mode

2018-10-25 Thread Vitalie Spinu via ESS-help
: > ;; Change shortcut "run this line" to use Shift-Return > ;; Suggested by Vitalie Spinu 2013-09-30 to co-exist with Windows Emacs > (eval-after-load "ess-mode" > '(progn >(define-key ess-mode-map [(control return)] nil) >(define-key ess-mode-map [

Re: [ESS] ESS 18.10-1 patch released

2018-10-25 Thread Vitalie Spinu via ESS-help
s most likely to work with current/recent versions of the >>> following statistical packages: R/S-PLUS, SAS, Stata, OpenBUGS and JAGS. >>> >>> To build the PDF documentation, you will need a version of TeX Live >>> or texinfo that includes texi2dvi. >>> &g

Re: [ESS] Hang when opening remote session

2018-07-23 Thread Vitalie Spinu via ESS-help
Do you have a proper ssh remote to test this on? Could this be docker specific? >> On ma, jul 23 2018 05:58, Gammel Holte via ESS-help wrote: >> >> Just a shot in the dark, but does /ssh:root@localhost#6000:/root/.Rhistory >> exist and you have read/write permission? >> > Apologies for the

Re: [ESS] Indent for R's 'switch'

2018-06-23 Thread Vitalie Spinu via ESS-help
>> On Fri, Jun 22 2018 11:06, Marius Hofert via ESS-help wrote: > my_variable_value <- switch(...) You can always do: my_variable_value <- switch(...) Vitalie __ ESS-help@r-project.org mailing list

Re: [ESS] looking for definitions of R functions

2018-06-22 Thread Vitalie Spinu via ESS-help
In addition to xref and etags I use M-o for imenu-anywhere. It works within all buffers of the same mode and buffers within same project (if you have projectile installed). The benefit is that you don't need any fancy lockup functionality or TAGS. It will work straight away. The drawback is that

Re: [ESS] ess problem

2018-06-12 Thread Vitalie Spinu via ESS-help
Hi Rob, Have you changed prompt on the R side (in opts)? Try running R without any personal configuration. If it "just started happening" it's unlikely ESS problem. Evaluation hasn't been touched in a while here. Vitalie >> On Tue, Jun 12 2018 12:00, Rob Dunne wrote: > Hi Ess- help, >

Re: [ESS] help configuring auto-complete for ESS on Windows

2018-03-18 Thread Vitalie Spinu
Should work out of the box if you have a running R process. It also depends on what you have in your `company-backends`. ESS adds its backends in front of the list (company-R-args company-R-objects) but something might have gotten in front and might be hijacking the completion. Also check that

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Vitalie Spinu
>> Just start R inside package directory and start eval-ing stuff as you >> normally do. > Do you mean that R must be launched from inside the package directory? I was imprecise. No, R process could be run from anywhere. It's that ess-r-package-mode is active only within the package directory.

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Vitalie Spinu
>> On Wed, Mar 07 2018 18:29, Ross Boylan wrote: > The file I opened initially, the one that sources all the others, is above the > package directory. It sources files under the package directory. When I > modified one of them I used C-c C-t C-s to disable the namespace before I did > C-c

Re: [ESS] Print spark histograms from skimr package in Emacs ESS on Windows

2018-01-24 Thread Vitalie Spinu
d, Jan 24, 2018 at 8:54 AM, Vitalie Spinu <spinu...@gmail.com> wrote: >> >> >> Hi Vinh, >> >> It works for me out of the box, no need for Chinese locale or R specific >> tricks: > Just to clarify -- it works for you _on Windows_? For me it works on &g

Re: [ESS] connection to Oracle does not work in ESS

2017-12-13 Thread Vitalie Spinu
Hi Stephen, I doubt it's problem with ESS. Running R from emacs shell and with ESS should be equivalent. Make sure that it's indeed the same R instance and RODBC what are called in your experiments. Do you have a custom inferior-ess-r-program-name setup? Do you issue Rterm or R in the emacs

Re: [ESS] starting directory not detected correctly anymore

2017-12-02 Thread Vitalie Spinu
I think this is a consequence of the recent feature which sets the default directory to the package directory. It looks like it treats your tmp directory as a package. @Lionel? Vitalie >> On Thu, Nov 30 2017 18:59, Paul Johnson wrote: > Greetings. > I want to have ESS know the working

Re: [ESS] (Aquamacs) Why is text at R prompt read-only, cannot delete?

2017-10-09 Thread Vitalie Spinu
>> On Mon, Oct 09 2017 17:57, Christian wrote: > No such file or directory, > ~/elisp/vendor/ess/lisp/ess-site.el Isn't the above clear enough? Fixing your path should do it. Vitalie __ ESS-help@r-project.org mailing list

Re: [ESS] R window: Text is read only

2017-09-27 Thread Vitalie Spinu
If you activate the debugger (M-x toggle-debug-on-error), does it show anything meaningful? >> On Wed, Sep 27 2017 09:47, Christian wrote: > Hi, after start with M-x R the R window behaves OK, allowing writing to. BUT, > after navigating in the help system, R refuses writing with "Text is read

Re: [ESS] Strange behaviour of ess-eval-buffer-from-beg-to-here?

2017-08-10 Thread Vitalie Spinu
I can confirm this. Last prompt is not detected for some reason. Vitalie On 9 August 2017 at 19:14, Marius Hofert wrote: > Hi, > > Here is some R code, that, when put in an R script (.R), shows some > strange behaviour (see sessionInfo() etc. below) under

Re: [ESS] Ever consider changing indentation on #?

2017-05-06 Thread Vitalie Spinu
I would add here that other modes in emacs except lisp don't usually respect this convention. Vitalie >> On Fri, May 05 2017 23:52, Steven McKinney wrote: > As an old lisp programmer I use # and ## and ### in all my code. > ### > ### for code block and

Re: [ESS] completion of command in R ??

2017-02-19 Thread Vitalie Spinu
Hi Christian, I misunderstood you problem. My problem with company completion not comint completion. For your issue, make sure that your C-^ is bound to comint-previous-matching-input-from-input and not comint-previous-input or something else. Vitalie >> On Mon, Feb 13 2017 14:44, Christian

Re: [ESS] completion of command in R

2016-12-17 Thread Vitalie Spinu
This is an emacs change. I am also annoyed by it but never got down to submitting a patch to emacs. No easy workaround AFAIK. Vitalie >> On Fri, Dec 16 2016 12:35, Christian wrote: > Hi, > since I switched to Sierra (Mac) and R-3.3.2, ESS 16.04, > I miss the convenient completion of a

Re: [ESS] turning off ess-r-package-mode

2016-08-25 Thread Vitalie Spinu
>> On Wed, Aug 24 2016 15:49, Tyler Smith wrote: > The `ess-r-package-auto-activate` toggle isn't working for me. From > `emacs -Q`, I'm setting up with this script: > (require 'package) > (setq package-load-list > '((ess t) > (julia-mode t)) > (package-initialize) > (require

Re: [R] developing package: dealing with namespaces

2013-02-06 Thread Vitalie Spinu
Duncan Murdoch murdoch.dun...@gmail.com on Mon, 04 Feb 2013 13:23:57 -0500 wrote: DM On 04/02/2013 12:59 PM, Ross Boylan wrote: I am tweaking an R package for which I have the source; the relevant code is in R not C. I'm making changes to the package code. What is the best

Re: [R] Modern Symbolic debugger for R programmes?

2012-10-09 Thread Vitalie Spinu
Worik R wor...@gmail.com on Tue, 9 Oct 2012 17:12:51 +1300 wrote: WR I cannot make setBreakpoint or findLineNum work. I get No source WR refs found.. I am starting to loose my mind! Indeed, as Rainer suggested, check out ESS. The ess-tracebug (part of ESS) provides, among other

Re: [R] Check if data frame column is numeric

2008-12-17 Thread Vitalie Spinu
On Tue, 16 Dec 2008 16:25:07 +0100, Mark Heckmann mark.heckm...@gmx.de wrote: Hi R-users, I want to apply a function to each column of a data frame that is numeric. colwise(), numcolwise() and catcolwise() in plyr package turn a function that operates on vectors into one that operates

Re: [R] Find all numbers in a certain interval

2008-12-17 Thread Vitalie Spinu
Hi, If you can formulate your question it in terms of actual problem you have with data.frame it would be easier to answer. for the time being check subset() if it is what you want. SV. On Tue, 16 Dec 2008 11:09:19 +0100, Antje niederlein-rs...@yahoo.de wrote: Hi all, I'd like to know, if I

Re: [R] R2winbugs : vectorization

2008-12-16 Thread Vitalie Spinu
I remember having similar problem with inprod function. As far as I could remember a sole deference in my models was that I used inprod instead of explicit sum (exactly as you did). In my case the inprod version was faster but result were completely aberrant. So I abandoned the inprod as

Re: [R] The end of Matlab

2008-12-12 Thread Vitalie Spinu
On Fri, 12 Dec 2008 17:38:13 +0100, hadley wickham h.wick...@gmail.com wrote: You could also imagine similar iterators for random sampling, like samp(0.2) to choose 20% of the indices, or boot(0.8) to choose 80% with replacement. first(n) could also be useful, selecting the first min(n,

Re: [R] Make installed packages available to new R version

2008-12-12 Thread Vitalie Spinu
Have a look at this http://thread.gmane.org/gmane.comp.lang.r.general/87014/focus=133050 it is safer to have all you packages reinstalled once you have updated R. HTH. On Fri, 12 Dec 2008 18:47:33 +0100, Roy Robertson jroyrobert...@comcast.net wrote: After installing a new version of R, how

Re: [R] The end of Matlab

2008-12-12 Thread Vitalie Spinu
On Fri, 12 Dec 2008 18:27:02 +0100, hadley wickham h.wick...@gmail.com wrote: or may be just mtcars[cyl3last(20)] or this is already too far? This would be a considerable extension because then the selector would need to know about all other variables in the dataset, and you'd need someway

Re: [R] ref card for data manipulation?

2008-12-11 Thread Vitalie Spinu
On Wed, 10 Dec 2008 18:29:43 +0100, Peter Dalgaard [EMAIL PROTECTED] wrote: You (as many before you) have overlooked the ave() function, which can replace the ordering as well the do.call(c,tapply()) Majority of questions on this list concern data manipulation. Many are repetitive.

Re: [R] ref card for data manipulation?

2008-12-11 Thread Vitalie Spinu
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] ref card for data manipulation?

2008-12-11 Thread Vitalie Spinu
On Thu, 11 Dec 2008 15:19:03 +0100, hadley wickham [EMAIL PROTECTED] wrote: You (as many before you) have overlooked the ave() function, which can replace the ordering as well the do.call(c,tapply()) Majority of questions on this list concern data manipulation. Many are repetitive.

Re: [R] Bug in transform?

2008-12-03 Thread Vitalie Spinu
Many thanks for your kind responses. That's a simple change and will make transform.data.frame behave more consistently with cbind.data.frame and data.frame. Related to above, I find rather inconsistent following behavior: aq - airquality[sample(1:153,6),] data.frame(aq,

[R] Bug in transform?

2008-12-02 Thread Vitalie Spinu
Dear useRs, Here is a weird behavior of transform function: mtcars1-matcars transform(mtcars1,t1=3,t2=4) Error in data.frame(`_data`, e[!matched]) : arguments imply differing number of rows: 32, 1 instead, this works: mtcars1$t1-0 transform(mtcars1,t1=3,t2=4) also works if applied

Re: [R] Bug in transform?

2008-12-02 Thread Vitalie Spinu
On Tue, 02 Dec 2008 17:37:44 +0100, Prof Brian Ripley [EMAIL PROTECTED] wrote: As the help page says If some of the values are not vectors of the appropriate length, you deserve whatever you get! So you can use mtcars1 - mtcars mtcars1[c(t1, t2)] - cbind(rep(3,32), rep(4, 32))

Re: [R] Examples of advanced data visualization

2008-12-01 Thread Vitalie Spinu
Hi, I find this interesting: http://blog.thejit.org/javascript-information-visualization-toolkit-jit/ It would be nice to have R exporting graphs into these kind of things. Vitalie. On Fri, 28 Nov 2008 16:55:12 +0100, Hans W. Borchers [EMAIL PROTECTED] wrote: Dear R-help, I am looking

[R] Non-interactive passing of quoted variables (ggplot, plyr, subset, transform, etc)

2008-12-01 Thread Vitalie Spinu
Hello Everyone, May be a silly question. How to pass programmatically variables which are not known in advance and are quoted? Variables are quoted implicitly in functions like subset and transform and explicitly in ggplot and plyr. For instance I would like to have something like this:

[R] Splitting device for ggplots?

2008-11-01 Thread Vitalie Spinu
Dear UseRs, For various reasons I need to plot multiple ggplots on one device (preferably pdf). Is there a way to achieve that? par(mfrow), split.screen() and layout() seem not to do the job. Thanks, Vitalie. __ R-help@r-project.org mailing list

[R] Lattice: reasons for not passing subscripted col, pch, lty, fill to panel functions

2008-07-03 Thread Vitalie Spinu
Dear UseRs! I am really amazed by lattice capabilities but one thing is really beyond my understanding. I would like to have conditional plots with points inside each panel colored by groups gr1 and pched by gr2: xyplot(A~B|C,myD,col=gr1,pch=gr2) #this makes sense for me But this does not