Mehrad,
@Mehrad@fosstodon.org avatar

I'm super interested to know/see the Venn diagram of :emacs: Emacs and :rstats: R users. 😏

I myself use Rstudio for work and Emacs ESS for my personal projects. So far I have managed to have a very comfortable setup for my Rstudio, but my ESS config can use some feedback/comment, especially from seasoned ESS users.

#Emacs #RStats

Mehrad, (edited )
@Mehrad@fosstodon.org avatar

On second thought, lets casually gather some data about Emacs and R users:

🔁 Please boost for reach

@rstats

Danwwilson,

@Mehrad @rstats would def consider eMacs if I could find some food materials to learn it and connecting to a remote server to run R.

Mehrad,
@Mehrad@fosstodon.org avatar

@Danwwilson
Perhaps I can help 😏 I have my own config of Emacs which is mostly default keybindings. I have explained how to set it up and what are the keybindings for an absolute beginner. I have also write the whole config in org-mode which means every section of config is documented similar to how you would write RMarkdown file.

Some screenshots:
https://codeberg.org/mehrad/.emacs.d/src/branch/main/misc/screenshots.md

How to start:
https://codeberg.org/mehrad/.emacs.d

The main config:
https://codeberg.org/mehrad/.emacs.d/src/branch/main/config.org

DM me anytime🤓

javi_vm,

@Mehrad @Danwwilson I use vim+R with Nvim-R

mdsumner,

@Danwwilson @Mehrad @rstats my dirty secret is using nano (for sys admin) because the emacs keys don't work well through mobaxterm from windows ...

I otherwise use RStudio (or Jupyter) in browser,would love to close the loop

mdsumner,

@Danwwilson @Mehrad @rstats oh, guess I should use WSL at least

Danwwilson,

@mdsumner @Mehrad @rstats yeah, you’ve got a few more options. I saw a vid (or at least half before I fell asleep exhausted) about setting up rstats with neovim. So I might try that at first, but not sure if it will let me have multiple files open. Learning vim has been helpful, bu their is still so much potential I haven’t even been exposed to or explored.

plantarum, (edited )
@plantarum@ottawa.place avatar

@Danwwilson @Mehrad @rstats with you have a lot of options here: you can open and edit files on the server in your local emacs. Or you can edit local files on a local emacs, but run the code on a remote server.

It's a little roundabout, but I even use this system for editing multiple scripts on a local machine, and submitting them as jobs to a remote cluster. I have been meaning to write this up for a while, maybe later in the summer

defuneste,
@defuneste@fosstodon.org avatar
plantarum,
@plantarum@ottawa.place avatar

@defuneste @Danwwilson @Mehrad @rstats I have a new project waiting for me, I'll use that to clean up my notes.

In the field for two weeks, so it will take some time

nickanderson,
@nickanderson@fosstodon.org avatar

@plantarum @Danwwilson @Mehrad @rstats with emacs org-mode possibilities abound. Babel is so cool, I see there is some r support: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

#emacs #orgmode #R

brodriguesco,
@brodriguesco@fosstodon.org avatar

@Danwwilson @Mehrad @rstats What e personally do on servers is to run emacs directly in the cli, and because my configuration is git clone away I don't mind having to configure it in several places (I use spacemacs btw).

defuneste,
@defuneste@fosstodon.org avatar

@Mehrad @rstats

I am in a mix, I used Emacs+ESS but now I mostly use it for org. I stopped because they were too much to learn before feeling at home like in VScode or Rstudio.

geomant,
@geomant@norden.social avatar

@Mehrad hm, so little R+Emacs users. Is is because R is so difficult to pick up for them?

Mehrad,
@Mehrad@fosstodon.org avatar

@geomant
🤣 yeah, RMS is a good example of that 😜

R is part of the GNU project, perhaps RMS can create Remacs (R Editor Meant for Astonishing Coding Style) that is configured in Rscript 😏

milesmcbain,
@milesmcbain@fosstodon.org avatar

@Mehrad @rstats R and Emacs user but not together. 🤣

plantarum,
@plantarum@ottawa.place avatar
milesmcbain,
@milesmcbain@fosstodon.org avatar

@plantarum @Mehrad @rstats is polymode good yet?

plantarum,
@plantarum@ottawa.place avatar

@milesmcbain @Mehrad @rstats you mean, have they trimmed the features down so it doesn't blow away migrants from RStudio? 😉

To be fair it was a bit rough for a while a few years back, but that's mostly smoothed away now. The only lingering issue I have is the font locking can be a bit iffy, getting stuck in the wrong mode.

But it handles inserting citations very nicely, does RStudio do that yet? That's not built in to polymode, it uses a few other packages. I need to write up my notes for that too.

plantarum,
@plantarum@ottawa.place avatar

@milesmcbain @Mehrad @rstats my students use rstudio, and it keeps improving too. And the user experience is very nice

milesmcbain,
@milesmcbain@fosstodon.org avatar

@plantarum @Mehrad @rstats I have no idea what RStudio can / can’t do these days. I’m a VSCodeR atm.

The main drag of polymode for me was the degree to which slowed down on larger documents. Input lag is my kryptonite.

plantarum,
@plantarum@ottawa.place avatar

@milesmcbain @Mehrad @rstats ah, interesting. That has never been an issue for me. I imagine it would depend on how big your documents get, and maybe the platform?

rex,
@rex@mastodontech.de avatar

deleted_by_author

  • Loading...
  • ERDonnachie,

    @rex @Mehrad @rstats
    I think the cool kids are using Microsoft VStudio...

    The Emacs learning curve was too steep for me 20 years ago at university, but I got into vim and enjoy that.

    Saying that, I've never met an Emacs user who doesn't enthuse about it though (survival bias, obviously, but people don't enthuse as much about other editors).

    Mehrad,
    @Mehrad@fosstodon.org avatar

    @ERDonnachie
    Perhaps more like Stockholm syndrome 😅😅

    @rex maybeyou can take a quick look at my config. I have explained things for beginners because I wrote it while I was learning emacs myself:

    https://fosstodon.org/@Mehrad/110850088356936451

    klmr,
    @klmr@mastodon.social avatar

    @Mehrad Some time ago I created a survey about preferred R IDEs (https://forms.gle/gPAPvfVfp4AN4Gwk7). However, the response was underwhelming so I never did anything with the data.

    Here are all the responses, maybe they’re useful to somebody: https://docs.google.com/spreadsheets/d/1Aly6bhnvqHq4flkr99I7YUuUISvZj_FTY1ZlnDxb6qg/

    (Oh, and: Vim, I’m afraid.)

    plantarum,
    @plantarum@ottawa.place avatar

    @Mehrad I wrote this intro a while ago. I've been meaning to continue the series for a while:

    https://plantarum.ca/2021/10/03/emacs-tutorial-rmarkdown/

    twm,

    @Mehrad I tend to use ESS for longer more complicated R scripts and Rstudio for any graphing/visualisation which I tend keep in separate code anyway.

    oantolin,
    @oantolin@mathstodon.xyz avatar

    @Mehrad This is what the Venn diagram looks like 😛:

    (let ((svg (svg-create 300 200)))
    (cl-loop for color in '("red" "blue") and x from 100 by 100
    do (svg-circle svg x 100 80 :fill color :fill-opacity 0.5))
    (cl-loop for lbl in '("Emacs" "Both" "R") and x from 55 by 75
    do (svg-text svg lbl :x x :y 100))
    (with-current-buffer-window "svg" nil nil
    (svg-print svg)
    (image-mode)))

    Mehrad,
    @Mehrad@fosstodon.org avatar

    @oantolin

    (char-to-string )

    dgkf,
    @dgkf@fosstodon.org avatar

    @Mehrad is the assumption here that if you're not using emacs you're using rstudio? I was in the vim for R camp for a while and recently started using helix primarily.

    Mehrad,
    @Mehrad@fosstodon.org avatar

    @dgkf
    Nope, that was not the assumption. That is my personal workflow as indicated by "I myself".

    I know actually some good R programmers who use nano and Tmux. I know many that use VSCode, and I also know one that uses Rkward.

    As you can see in the poll, there is no option for Rstudio nor Vim/nvim/helix/micro/nano, Rkward, eclipse, sublime, or Kate.

    Btw, I have used them all to code serious R codes and they are all good editors/IDEs.

    Mehrad,
    @Mehrad@fosstodon.org avatar

    @dgkf
    Imho at the end of the day, a good IDE is something that feels like an extension to your body. I switched from Nvim to Emacs because of poor code folding (I use that a lot), and Doom Emacs was not good enough. So a kind friend taught me the Emacs in the most GNU way possible and helped me to understand and design my own config. It is still far from nirvana, but it is getting there. 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines