How to install R and Rstudio under Ubuntu Linux 20.04

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • Please consider subscribing to my channel by hitting the "Subscribe" button. It is absolutely free and there are no charges. But if you like what I am doing and you do want to support my channel, consider making a voluntary donation at / joshbanta . It helps me to deliver more content and to keep this channel active.
    This tutorial also installs the free, open-source program R for statistical computing, as well as a graphical user interface (GUI) for R known as Rstudio, under Ubuntu Linux version 20.04
    This tutorial assumes you are using Ubuntu Linux version 20.04 as your operating system. If you do not have a computer running Ubuntu, fear not. You can install Ubuntu as a virtual machine within your current operating system. It is all free.
    The instructions for Windows computers are here:
    • Install Ubuntu on Virt...
    The instructions for Mac computers are here (from 0:00 to 5:37):
    • How to Install Windows...
    Code I used in this tutorial:
    sudo apt update
    sudo apt -y install r-base gdebi-core
    cd Downloads
    sudo gdebi rstudio-2021.09.0-351-amd64.deb
    ^^^^^change this filename to the one you downloaded!
    But you can actually skip this tutorial if you just use my pre-configured Ubuntu Linux virtual machine! Read more below.
    FYI:
    I have made a Linux virtual machine that is pre-configured with population genetics and ecological niche modeling programs. I have made videos explaining how to hook up this virtual machine within your Mac or Windows computer, so that you can start using the pre-configured software without having to install any of them (and even without having to install Ubuntu Linux!).
    Windows: • Ubuntu 20.04 virtual m...
    Mac: • Ubuntu 20.04 virtual m...

КОМЕНТАРІ • 44

  • @theodoretourneux5662
    @theodoretourneux5662 2 роки тому +8

    wow for some reason I tried doing this myself a bunch of times and after an hour I figured lets try youtube. This video was clear concise and worked perfectly! Thank you for your attention to detail!

  • @cajunremy
    @cajunremy Рік тому +5

    Thanks, I spent two days trying to figure out how to install this in a Google Chromebook, and your video made it so easy to go.

  • @LASCH_B10
    @LASCH_B10 2 місяці тому +1

    very nice video, and for taking your time to give instructions for each OS

  • @sirius9038
    @sirius9038 10 місяців тому +2

    I first tried to directly install R studio with sudo commend, which is successful installed however cannot open it, thanks to this video that I realized that I need to install the R package for my system first then could install R studio.

  • @valentinagaleana725
    @valentinagaleana725 Рік тому +4

    Gracias señor Josh, por ti mi vida ya no está tan dlv porque ahora puedo llorar haciendo mi tarrea de análisis.

  • @jayrome3932
    @jayrome3932 3 місяці тому +1

    Excellent! Clear, concise and accurate instructions!!

  • @saneeshcs6604
    @saneeshcs6604 6 місяців тому +1

    Thanks a lot Josh. Very clearly explained. I was asked to install gdebi-core
    , Thanks again.

  • @santumazumder8268
    @santumazumder8268 Рік тому +3

    Simple and Working!!!
    Great work. Thank You..

  • @PrajaktaBawale-cq6ir
    @PrajaktaBawale-cq6ir 2 місяці тому +1

    Thankyou sir the video is really useful

  • @rashawnhoward564
    @rashawnhoward564 2 місяці тому +1

    Thank you! first time using linux, found an old 2011 macbook pro 17in replaced OS w/Ubuntu and thought why not use it for coding.

    • @DrJBanta
      @DrJBanta  2 місяці тому +1

      Great! Be sure to bookmark this video, too: ua-cam.com/video/3Rflq0cZ_1o/v-deo.htmlsi=gXNz5S8Qvo_Vbo3G . Sooner or later you will encounter problems installing R packages on Linux. This video will show you how to fix it. There are some exceptions, where it is also required to install programs on Linux separate from R, but this tutorial will fix many problems you'll encounter.

  • @eleonoregenest6772
    @eleonoregenest6772 Рік тому +2

    I have a problème to install : my computer indicates me "gdebi error, file not found" whereas it is in my downloads. Do you know why ?

  • @MauroAlves-wy6ec
    @MauroAlves-wy6ec Рік тому +2

    Very useful! Thank you!

  • @angel_adrian200
    @angel_adrian200 2 роки тому +2

    It works. Thanks a lot !!

  • @armelyepdieu4245
    @armelyepdieu4245 11 місяців тому +1

    Great explanations

  • @debatradas1597
    @debatradas1597 2 роки тому +2

    Thank you so much Sir

  • @frankvanzeler361
    @frankvanzeler361 2 роки тому +2

    Thanks so much. It was really usefull!

  • @mariaclarabressanferreirad7779
    @mariaclarabressanferreirad7779 10 місяців тому +1

    ótimo vídeo!!!
    Parabéns! 😁😁

  • @ThomasHunter-z2r
    @ThomasHunter-z2r 17 днів тому

    great stuff, thanks

  • @archimedemulega7086
    @archimedemulega7086 11 місяців тому +1

    Very useful Thanks a lot

  • @echeveri4
    @echeveri4 Рік тому

    Thanks a lot! This tutorial really helped me.

  • @bobsimpson9228
    @bobsimpson9228 2 роки тому +2

    After I paste the file name into terminal I get this message.
    This package is uninstallable
    Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1

  • @henskyconsulting9577
    @henskyconsulting9577 2 роки тому +1

    Thanks you saved the day

  • @borgiaization
    @borgiaization 2 роки тому +1

    Thank you so much

  • @viveknaidu6977
    @viveknaidu6977 2 роки тому +1

    Thank You sir

  • @DB-po2lh
    @DB-po2lh Рік тому +1

    Thank you, I've successfully installed rstudio with your tutorial. You said that you have population genetics software installed on your virtual machine. Do you know any open source alternatives to AlleleA1 software?

    • @DrJBanta
      @DrJBanta  Рік тому +1

      Hi, I hadn't heard of that software before but it looks pretty cool! We're you using this website? faculty.washington.edu/herronjc/a1/#:~:text=AlleleA1%20simulates%20evolution%20at%20a,migration%2C%20mutation%2C%20and%20inbreeding.

    • @DB-po2lh
      @DB-po2lh Рік тому

      @@DrJBanta Yes, I am. But the web version of the program lacks some features. The desktop version is NOT available for Linux operating systems. The software is used to predict genotypic frequencies and allelic frequencies in populations in Hardy-Weinberg equilibrium state.

    • @DrJBanta
      @DrJBanta  Рік тому +1

      @@DB-po2lh I just downloaded the Windows version and I was able to run it on Ubuntu Linux. The secret is to run it with the companion software WINE. Be sure you have WINE installed on your Ubuntu machine first. Then put the file allelea1.exe on the Ubuntu desktop. Then open the terminal and go to the Desktop ("cd Desktop"). Then type wine allelea1.exe and you should be good to go! Best of luck, Josh

  • @rajudey1673
    @rajudey1673 9 місяців тому

    Thank you so much Sir. Nice video.

  • @abhileshxd621
    @abhileshxd621 2 роки тому +1

    Hi is this on Wayland? Does Rstudio support Wayland yet?

  • @aliitersambou4712
    @aliitersambou4712 5 місяців тому

    thanks

  • @younessdiouane3829
    @younessdiouane3829 10 місяців тому

    Thank you so much!!

  • @zimbabouee9552
    @zimbabouee9552 3 місяці тому

    Thanks GOOOOOOOOOD

  • @leolomardo530
    @leolomardo530 2 роки тому

    Its taking forever to download it? it took that much time for you too?

  • @theecanmole
    @theecanmole Рік тому

    Thanks!😀

  • @davidesouzafernandes3335
    @davidesouzafernandes3335 Рік тому

    Thanks for the video. Just one additional question, should I install the R and RStudio directly in my system, or installing in a conda env may be a better option? Could some one help me?

    • @DrJBanta
      @DrJBanta  Рік тому +1

      Hmm, that's an interesting question. I have seen programs and their dependencies "break" other programs under Ubuntu, so it may not be a bad idea to sandbox it. That said, I don't know how well R or Rstudio runs under Conda. It looks like it's messy: community.rstudio.com/t/using-rstudio-within-a-conda-environment/128780/4

    • @DrJBanta
      @DrJBanta  Рік тому

      But see: astrobiomike.github.io/R/managing-r-and-rstudio-with-conda

  • @NavjotSinghpatiala
    @NavjotSinghpatiala 10 місяців тому

    ERROR Unable to locate package gbedi-core

    • @DrJBanta
      @DrJBanta  10 місяців тому

      I had that error recently. Did you run the command 'sudo apt update' first?

  • @ahmedazeezabdulhussein7435
    @ahmedazeezabdulhussein7435 2 роки тому

    Thank you so much Sir