LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2019, 01:05 PM   #1
2cencia
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
Migrate to a previous R using command lines


Dear community,
I'm in need for using R packages which are not supported in the last version 4.4.4 (the last one I installed). Which command lines could I use to migrate to a R previous version (let's say 4.4.2, for instance) in order to be able to use the needed packages?
Thanks before hand!!!
 
Old 12-23-2019, 02:15 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,236
Blog Entries: 3

Rep: Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588Reputation: 2588
Welcome. Which distro do you have? If you have an APT-based distro, then you'd look to see what is available in the repository like this:

Code:
apt update
apt-cache policy r-base
Then, if you have multiple versions to choose from, then you could try:

Code:
apt-get install --verbose-versions r-base=4.4.2
Or whatever. You might also try contacting the package maintainer with words of appreciation and encouragement. Another option might be to install from within R itself and see if it is available there.
 
Old 12-23-2019, 02:39 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Older: Coherent, MacOS, Red Hat, Big Iron IXs: AIX, Solaris, Tru64
Posts: 2,175

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Quote:
Originally Posted by 2cencia View Post
Dear community,
I'm in need for using R packages which are not supported in the last version 4.4.4 (the last one I installed). Which command lines could I use to migrate to a R previous version (let's say 4.4.2, for instance) in order to be able to use the needed packages?
Thanks before hand!!!
How was it installed?

If you have a DVD with the older version on it, you could try:
  • Remove the too-new version of R.
  • Tell your package manager to DISABLE the use of the online repositories (temporarily) but leave the DVD enabled.
  • Install the older R package from the DVD.
  • There should be a means to inform that package manager that it should leave R alone. It might be an option like "Protect", "Do not modify", etc. Use that option for R so you won't have to do all this again following any general Linux update.
  • Re-ENABLE the online repositories in your package manager.
I used to build R from sources using a process like:
  • removing any existing symlink "/opt/app/R"
  • creating a new directory "/opt/app/R"
  • specifying "--prefix=/opt/app/R" when running "configure" for R-n.n.n
  • compile and install into "/opt/app/R"
  • rename /opt/app/R to /opt/app/R-n.n.n then creating a symlink "R" pointing to the new version's directory
(Oddly, I never did commit that process to a script. It should have been easy.)

If something -- like those external packages you're using -- failed to work with the latest version I'd just built, reverting to the previous version is a simple matter of removing the "R" symlink in /opt/app and creating a new one pointing to the previous version's subdirectory. Building from sources is an option if your vendor repository no longer makes the older R release available.

Hope some of this was useful.

Just out of curiosity... are you sure about R V4.x? The R project page directs people to CRAN for source downloads and they show nothing in the R-4 tree. R-3.6.2.tar.gz was the newest package I saw.
 
Old 12-23-2019, 02:48 PM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Quote:
Originally Posted by 2cencia View Post
Dear community,
I'm in need for using R packages which are not supported in the last version 4.4.4 (the last one I installed). Which command lines could I use to migrate to a R previous version (let's say 4.4.2, for instance) in order to be able to use the needed packages?
Thanks before hand!!!
You can go to the CRAN (Comprehensive R Archive Network) at cran.r-project.org but then again, I've never heard of a version 4.4.4 of that project, the newest one featured there:
Quote:
The latest release (2019-12-12, Dark and Stormy Night)
is version 3.6.2, which was released on the 12th of December this year.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] read line numbers , delete those lines and the previous ones with sed pedropt Programming 4 06-19-2018 04:54 PM
Sed issue with finding a match on two sequential lines and deleting the previous line ulto Programming 3 10-26-2014 07:26 PM
sed multiple lines previous line gushnik1 Linux - Software 2 10-09-2013 04:15 AM
Remove lines based upon the previous line Adzrules Linux - Newbie 2 11-16-2012 07:18 AM
migrate from suse, what should i migrate to? any suggestions?:twocents: Siljrath Linux - General 4 12-26-2005 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration