Results 1 to 6 of 6

Thread: Emacs-ess and R; how to run? (Opensuse newbie)

  1. #1

    Default Emacs-ess and R; how to run? (Opensuse newbie)

    I'm running Tumbleweed on a new build for the first time, so far so good except for emacs-ess. I installed Emacs, Emacs-ess and R via YaST.

    On Windows, I would install Emacs, then ESS via MELPA. So i tried that on Tumbleweed. Emacs (GNU Emacs 26.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.4) is working great, installed magit, some other packages via MELPA. But ESS is shown as Incompatible due to juila-mode-0.3 being unavailable.

    Next, I noticed that YaST has emacs-ess included. So I installed that. But it didn't add ess to my emacs install as far as i can tell, so a little confused about how to invoke it.

    Then R. I also installed R via YaST, and it starts from Konsole by invoking 'R'. But the base R GUI does not show up in any of the application menus. So I'm not sure if R is properly set up for ESS to find it, once I get ESS working. So Emacs is working, R is working (though missing the gui), but i can't figure out how to setup ess to integrate the two.

    Anyone have experience running R through Emacs-ess on Tumbleweed and maybe point out what I am missing? Thanks in advance.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,949
    Blog Entries
    2

    Default Re: Emacs-ess and R; how to run? (Opensuse newbie)

    You may or may not have the emacs-ess package installed, it can be found in the "devel:languages:R:released" repository. The "one-click Install" can be found on this page (You must use Firefox from openSUSE). I assume your missing dependency is addressed if you install this.

    https://software.opensuse.org/packag...term=emacs-ess

    I don't program R, so don't know about any graphical interfaces that might be included and you're the first in memory to expect it. I suspect you need to install what you want, eg RStudio is often asked about

    https://software.opensuse.org/package/rstudio

    If you're new to openSUSE,
    You might benefit from taking a quick look at my slide deck for my openSUSE 15.0 presentation. I expect to have an updated 15.1 version ready soon, both covers openSUSE from the perspective of a newbie installing openSUSE for the first time from pre-install decisions through the installation including selecting a Desktop to what you should do after your new install and how to find things

    https://slides.com/tonysu/opensuse/#/

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Emacs-ess and R; how to run? (Opensuse newbie)

    Thanks for the response and the slide deck. I ran the 1-click emacs-ess from the website and didn't hit any errors there.

    But then when i start emacs, and the run 'M-x ess-version', i still get "[No match]". So emacs is still not recognizing any ess installations.

    (And i could have been clearer on R; i don't need a R GUI, that's what ESS r-mode is for. Just surprised to not see one.) Emacs not seeing ESS is the real problem.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,949
    Blog Entries
    2

    Default Re: Emacs-ess and R; how to run? (Opensuse newbie)

    Did a test install.
    Although the test was in LEAP 15.1, I don't think that the essentials are any different than what should happen in Tumbleweed.

    What I found is...

    It looks like the "emacs-ess" package should have everything you need... emacs, ess and likely R (I see something called ESSR which is installed).
    I highly recommend you clean your system of your failed installs which may be preventing a successful install, preferably using Snapper to roll back to an earlier snapshot image. Then update if necessary with a "zypper dup."

    When you machine is completely clean and updated, then install only the "emacs-ess" package from the link I gave you in my last post.

    This is what emacs-ess should look like when launched if successfully installed.

    TSU

    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Emacs-ess and R; how to run? (Opensuse newbie)

    Thanks again Tony. I tried to roll back via snapper and reinstall, tried deinstallation via YaST and reinstalling, again and again and no luck. What ended up working was....

    Fresh install of Tumbleweed (yup, destroyed my forum credentials in the process, thus the new account). Then installed emacs-ess experimental 18.10.2 via the website you provided (not YaST). That installs emacs 26.2 without ess, not the 25.3 emacs version with ess that you seemed to have gotten on Leap.

    Then, to my .emacs file added the following (below), package-fresh-contents, and at last ess was install-able via the emacs package manager / melpa.

    Code:
    (require 'package)
    (add-to-list 'package-archives
             '("gnu" . "https://elpa.gnu.org/packages/"))
    (add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))
    (Then added melpa-stable to my .emacs as well to get magit, and away we go).

    Thanks again for the assistance, learned a lot along the way.

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,949
    Blog Entries
    2

    Default Re: Emacs-ess and R; how to run? (Opensuse newbie)

    Glad to hear you got yourself working although not using the openSUSE packages.
    I'm sure the extra you learned in the process of installing will come in handy eventually...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •