Results 1 to 7 of 7

Thread: Installing R

  1. #1
    Join Date
    May 2016
    Location
    Ohio, USA
    Posts
    2

    Post Installing R

    Previously, I had R installed, somehow zypper uninstalled it and now I can't get it back on my system.

    I tried the command:
    zypper -p http://cran.case.edu
    zypper in R-patched
    These should work, though the package does not get installed????

    This is probably the closest mirror to me with a link to the package. I noticed it re-routes back
    to an OpenSUSE site. The second time I type a command like:
    zypper -p http://cran.case.edu
    it removes the link????
    The source code is available, though building from source is a problem. It would be better if
    zypper just worked correctly.

    cnf R or cnf R-patched doesn't seem to configure R.

    thanks in advance if anyone knows the solution.

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: Installing R

    Are you sure that is the right URL there usually is an openSUSE in there somewhere

  3. #3
    Join Date
    Jan 2012
    Location
    the 919
    Posts
    38

    Default Re: Installing R

    I haven't tried them, but there were more detailed instructions here:

    http://cran.case.edu/bin/linux/suse/#orgheadline9
    --Ben

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

    Default Re: Installing R

    When you use the zypper flag "-p" to add a repo temporarily for that action, you have to point to a repo, but your commands aren't... They're pointing to HTML pages.

    The detailed install steps described by steuer look mostly OK, but there is a typo in his repo path, it's missing a full colon after "devel"
    http://cran.case.edu/bin/linux/suse/

    Modifying his command to add the R repo for your openSUSE version, you should either paste the entire following into a root console or text file, make it executable and execute it

    The following autodetects your version of openSUSE, adds the R-patched language repo to your system and installs the R language into your system. If you don't want to do everything in one step, you can execute each line individually, removing the "&& \" at the end of the line
    Code:
    VERSION=$(grep VERSION /etc/SuSE-release | sed -e 's/VERSION = //') && \
    zypper ar -f http://download.opensuse.org/repositories/devel:/languages:/R:/patched/openSUSE_$VERSION/ R-patched && \
    zypper --gpg-auto-import-keys ref && \
    zypper in R-patched R-patched-devel
    Enjoy,
    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
    Join Date
    May 2016
    Location
    Ohio, USA
    Posts
    2

    Default Re: Installing R

    So, I decided to do each shell command individually.
    To simplify it, I didn't install R-patched-devel, just
    R-patched.
    I executed the command: zypper lr
    This shows that R-patched is in my repository list,
    with Yes, Yes at end of that command output for
    R-patched.

    When I use the command: zypper in R-patched
    the following:
    Loading repository data...
    Reading installed packages...
    'R-patched' not found in package names. Trying capabilities.
    No provider of 'R-patched' found.
    Resolving package dependencies...

    Nothing to do.

    Keep in mind that I had R installed on my system previously. I installed
    it myself (it worked). I executed a zypper command for something else and
    R was deleted. The first thing I tried to do was set super user and
    install with one-click install from http://cran.case.edu. At any rate,
    now the simple command: zypper in R-patched doesn't seem to
    work. Thanks for all the help and advice! Something seems wrong
    with the zypper command, I don't suspect there is anything wrong
    with the R code base, so I hate to contact that developer about
    an installation issue.

  6. #6
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Installing R

    Quote Originally Posted by caseyomc View Post
    So, I decided to do each shell command individually.
    To simplify it, I didn't install R-patched-devel, just
    R-patched.
    I executed the command: zypper lr
    This shows that R-patched is in my repository list,
    with Yes, Yes at end of that command output for
    R-patched.

    When I use the command: zypper in R-patched
    the following:
    Loading repository data...
    Reading installed packages...
    'R-patched' not found in package names. Trying capabilities.
    No provider of 'R-patched' found.
    Resolving package dependencies...

    Nothing to do.

    Keep in mind that I had R installed on my system previously. I installed
    it myself (it worked). I executed a zypper command for something else and
    R was deleted. The first thing I tried to do was set super user and
    install with one-click install from http://cran.case.edu. At any rate,
    now the simple command: zypper in R-patched doesn't seem to
    work. Thanks for all the help and advice! Something seems wrong
    with the zypper command, I don't suspect there is anything wrong
    with the R code base, so I hate to contact that developer about
    an installation issue.
    R-patched is the repository, there is no package named R-patched, try installing these
    Code:
    zypper in R-base R-core R-graphics
    or search for R packages in the R-patched repo, install the ones you want/need
    Code:
    zypper pa -ir <R-patched repo_name_or_number>
    it's still a good idea for you to tell your repo list.

  7. #7
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Installing R

    After seeing the content of that repo I think the proper way to install R is by installing the package R-recommended-packages
    Code:
    zypper in R-recommended-packages

Posting Permissions

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