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...
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!
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.
very nice video, and for taking your time to give instructions for each OS
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.
Gracias señor Josh, por ti mi vida ya no está tan dlv porque ahora puedo llorar haciendo mi tarrea de análisis.
Excellent! Clear, concise and accurate instructions!!
Thanks a lot Josh. Very clearly explained. I was asked to install gdebi-core
, Thanks again.
Simple and Working!!!
Great work. Thank You..
Thankyou sir the video is really useful
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.
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.
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 ?
ah same did you got the answer?
Very useful! Thank you!
It works. Thanks a lot !!
Great explanations
Thank you so much Sir
Thanks so much. It was really usefull!
ótimo vídeo!!!
Parabéns! 😁😁
great stuff, thanks
Very useful Thanks a lot
Thanks a lot! This tutorial really helped me.
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
same for me ..
Thanks you saved the day
Thank you so much
Thank You sir
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?
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.
@@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.
@@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
Thank you so much Sir. Nice video.
Hi is this on Wayland? Does Rstudio support Wayland yet?
thanks
Thank you so much!!
Thanks GOOOOOOOOOD
Its taking forever to download it? it took that much time for you too?
Thanks!😀
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?
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
But see: astrobiomike.github.io/R/managing-r-and-rstudio-with-conda
ERROR Unable to locate package gbedi-core
I had that error recently. Did you run the command 'sudo apt update' first?
Thank you so much Sir