How to install latest version of R statistical package

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

How to install latest version of R statistical package

Post by rsal »

I want to install latest version (3.2) of R statistical package ( https://www.r-project.org/ ) but only version 3.0 is available in repository.

The source is available (https://cran.r-project.org/src/base/R-3/). Should I try to compile it? I can't find list of dependencies needed. Binaries are not available for Slackware or Salix from its homepage (https://cran.rstudio.com/).

R version 3.2 binary is available from slackonly repository: http://pkgs.org/slackware-14.1/slackonl ... k.txz.html . Can I download it and install it using # installpkg or upgradepkg command?

How can I manage to install latest version (3.2) in Salix ?
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: How to install latest version of R statistical package

Post by gapan »

What architecture do you use? 32bit or 64bit?

If you're on 64bit, you're lucky, I have the latest R packaged already. Get it from here:
http://pnboy.pinguix.com/gapan/salix/R/

The dependencies shouldn't be different than the R package you already have.

If you want a 32bit package, I could make one, but you should be able to get the scripts from your /usr/src/R-$version/, edit the pkgver in the SLKBUILD file and run:

Code: Select all

fakeroot slkbuild -X
That should build a package for you.

I also have packages for the latest version of RStudio (released today) if you're interested...
Image
Image
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: How to install latest version of R statistical package

Post by rsal »

I am using Salix 32bit. I will prefer if you can build and make available the latest version in your repository. Is RStudio available in the repository? I do not have access to my Salix system right now but I cannot see it in pkgs.org under Salix (http://pkgs.org/search/?query=RStudio&type=smart). I would like to install Rstudio as well. Thanks.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: How to install latest version of R statistical package

Post by gapan »

OK, so I have uploaded 32bit packages for R. Same URL as before.

For rstudio, you can look here:
http://pnboy.pinguix.com/gapan/salix/rstudio-desktop/

And you will also need pandoc:
http://pnboy.pinguix.com/gapan/salix/pandoc/
Image
Image
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: How to install latest version of R statistical package

Post by rsal »

"spi --show R" is still showing version 3.0:

Code: Select all

Package Name: R
Package Mirror: http://salix.mirror.garr.it/mirrors/salix/i486/14.1/
Package Priority: Preferred
Package Location: ./salix/xap
Package Version: 3.0.2-i486-1gv
Package Size: 32514 K
Package Installed Size: 130056 K
...
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: How to install latest version of R statistical package

Post by mimosa »

rsal, gapan has packaged it specially for you. :) It's not in the repositories, though, so spi won't do the trick.

Download the package from the link in his post, and install it:

Code: Select all

sudo spkg -u download_path/name_of_package.txz
You'll also need to exclude the package, so it isn't downgraded to the repository version every time you do an upgrade. Instructions for this are in the Salix Startup Guide.
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: How to install latest version of R statistical package

Post by rsal »

I get it. Thanks a lot.
Post Reply