+ Reply to Thread
Results 1 to 7 of 7

Thread: Get latest version of R on linux (Mint)

  1. #1
    ggplot2orBust
    Points: 57,143, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    User with most referrers
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    4,399
    Thanks
    1,800
    Thanked 921 Times in 803 Posts

    Get latest version of R on linux (Mint)




    This thread is just to serve as a marker for future searchers as Dason answered this for me:

    Code: 
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
    
    sudo sh -c "echo 'deb http://streaming.stat.iastate.edu/CRAN/bin/linux/ubuntu quantal/' >> /etc/apt/sources.list"
    sudo apt-get update
    sudo apt-get install r-base r-base-dev
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

  2. #2
    Probably A Mammal
    Points: 26,454, Level: 97
    Level completed: 11%, Points required for next Level: 896
    bryangoodrich's Avatar
    Location
    Sacramento, California, United States
    Posts
    2,513
    Thanks
    389
    Thanked 609 Times in 544 Posts

    Re: Get latest version of R on linux (Mint)

    Pretty sure you don't need the shell command part. The double-redirector (">>") says "append to end of file" and you can just echo your output on command.

    Just try it yourself

    Code: 
    touch test.txt
    This will create an empty text file called "test.txt"

    Code: 
    echo "I'm the first line" > test.txt
    This single redirect will actually destroy and recreate the file we just created. This is another way to create the file, but with content. Touch can be used on an already existing file to update its time stamp.

    Code: 
    echo "\nI'm the second line\n" >> test.txt
    We now made sure there was a carriage return ("Enter") between the first and second line (otherwise we'd append to the same line), and then we terminate our line. It's good to do that. If this was successful (as it was on my PC), then we should see a text file with two lines as we've entered. So check it.

    Code: 
    cat test.txt
    This is no different than doing a print statement in R while we've sinked the output to a file location. Echo is the terminal "print" statement to force things to be printed to the standard output. Just like the sink function, the ">>" redirector changes that standard output to the specified location and being double it sets the parameter to append that output to whatever is there. Make sense?

    You could also do something like

    Code: 
    sudo leafpad /etc/apt/sources.list &
    and then edit it manually in leafpad (like Windows "notepad." There's also mousepad, gedit, and a bunch of others that are commonly available on Linux systems). The "&" at the end of the line frees up your terminal so it doesn't get stuck running the application until you close the program.

    Also, you can change in that deb statement the CRAN mirror being used. It's a URL so make sure you visit it to know it is correctly locating your mirror and you didn't mess anything up. The space and "quantal/" is declaring a file on that mirror--viz., the folder that is for your version of ubuntu. So if you're using a different version name, you have to pick the right one (and update it if you upgrade your system). Don't know the name? This is why visiting the URL can help! They're all listed right there. For instance, I'm still on precise apparently.

  3. The Following User Says Thank You to bryangoodrich For This Useful Post:

    trinker (12-23-2012)

  4. #3
    ggplot2orBust
    Points: 57,143, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    User with most referrers
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    4,399
    Thanks
    1,800
    Thanked 921 Times in 803 Posts

    Re: Get latest version of R on linux (Mint)

    Linking a similar windows version (get devel. version) of this here: http://www.talkstats.com/showthread....f-R-on-Windows
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

  5. #4
    ggplot2orBust
    Points: 57,143, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    User with most referrers
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    4,399
    Thanks
    1,800
    Thanked 921 Times in 803 Posts

    Re: Get latest version of R on linux (Mint)

    Trying to update to R 3.0.0 and it doesn't seem to want to work with the above code. Any ideas anyone?
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

  6. #5
    Beep
    Points: 84,692, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Ames, IA
    Posts
    12,772
    Thanks
    301
    Thanked 2,592 Times in 2,213 Posts

    Re: Get latest version of R on linux (Mint)

    Quote Originally Posted by trinker View Post
    Trying to update to R 3.0.0 and it doesn't seem to want to work with the above code. Any ideas anyone?
    http://article.gmane.org/gmane.comp.lang.r.debian/2024
    I don't have emotions and sometimes that makes me very sad.

  7. #6
    Dark Knight
    Points: 6,380, Level: 52
    Level completed: 15%, Points required for next Level: 170
    vinux's Avatar
    Posts
    2,011
    Thanks
    52
    Thanked 241 Times in 205 Posts

    Re: Get latest version of R on linux (Mint)

    To add ppa of Michael Rutter.
    Code: 
    sudo add-apt-repository ppa:marutter/rdev 
    sudo apt-get update
    sudo apt-get upgrade
    I have installed R 3.0 in one of my machine.
    I am using Raring Ringtail in my main laptop. It looks very nice and good improvement on speed.
    In the long run, we're all dead.

  8. #7
    ggplot2orBust
    Points: 57,143, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    User with most referrers
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    4,399
    Thanks
    1,800
    Thanked 921 Times in 803 Posts

    Re: Get latest version of R on linux (Mint)


    Dason's thoughts on installing 04-19-2017 [from chatbox]:

    Submit Avatar 04/19 10:49 Dason: You're much more competent of a user now than you were previously so I think you should be fine to read the following page and follow the instructions to get an up-to-date version of R: https://cran.r-project.org/
    Submit Avatar 04/19 10:49 Dason: Do the "Secure APT" section first then go back to the top to modify your sources and update
    Submit Avatar 04/19 10:51 Dason: But the iastate mirror changed its address. That might cause an issue. It's not streaming.stat.iastate.edu anymore
    Submit Avatar 04/19 10:51 Dason: You'd probably want to choose a different mirror anyways
    Submit Avatar 04/19 10:52 Dason: I'd just go with the cloud mirror https://cloud.r-project.org/
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

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






Advertise on Talk Stats