Тёмный

How to fix R package installation problems on Linux (libraries and their dependencies won't install) 

Josh Banta
Подписаться 3,1 тыс.
Просмотров 1,5 тыс.
50% 1

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 shows you how to fix, once and for all, a very bad problem with running R (and Rstudio) on Linux. This problem is not well documented online, although I'm sure you've experienced this problem, too. This is where you try to install an R package, either through R directly or through Rstudio, and you get an error that one or more of the dependent packages were not installed. Therefore the installation fails. When you try to install the dependent packages, they also fail to install, because some of their dependencies were not installed, and so on. It makes no differences whether or not you use the "dependencies = TRUE" flag when performing the installation. You'll get the same problem.
The solution is provided in this video! I posted about it on an R help forum, and a couple of contributors helped me out. I share the solution here.
The overall steps are to uninstall all of the R libraries, uninstall R, uninstall Rstudio, reboot, and then reinstall R and Rstudio, and then install the r2u package, which provides the entire CRAN (R) repository as local binaries. From then on, R will install your packages from the local binaries with no problems.
All the code you'll need is found here:
community.rstudio.com/t/insta...
Here is a link for installing R and Rstudio under Ubuntu Linux:
• How to install R and R...

Наука

Опубликовано:

 

26 дек 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@desryan1603
@desryan1603 2 месяца назад
thank you, thank you, thank you i lost my job and thus my mac and I"ve been subsisting on a revamped 2012 mac onto which I installed Ubuntu. But I could not for months get R to work. Until now
@neonwhale4533
@neonwhale4533 2 месяца назад
Thank you so much for this! I was having the same problems, going in circles and your walk through was really helpful for someone who is trying to learn how all this works. I am running into issues using Swirl to learn R. I requires me to install "R Programming" and can't find anything recent that is helpful. Have you got any tips on how to go about this? I have tried manually installing and also trying to let Swirl install it, but I get "Could not connect to course file" and "Cannot create dir" or No such file or directory I am running Ubuntu v.22.04 if that helps.
@DrJBanta
@DrJBanta 2 месяца назад
Hello, what are you stuck on, exactly? If you need help installing R, see this tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eE1zh0YVMeM.htmlsi=vUKRBAmd8F-Fb0fv
@BeBa_897
@BeBa_897 6 месяцев назад
Which program is it? Why my linux terminal is all black with no option
@DrJBanta
@DrJBanta 6 месяцев назад
Hello. Can you elaborate on the problem? Which step are you at? Best, Josh
Далее
10 Common Linux Issues and How to Fix Them
23:45
Просмотров 77 тыс.
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌇
3:16:26
Построил ДЕРЕВНЮ на ДЕРЕВЬЯХ!
19:07
Linux Problems
11:39
Просмотров 138 тыс.
The macOS of Linux Distros - Zorin OS 17
10:41
Просмотров 62 тыс.
Linux on Windows......Windows on Linux
23:54
Просмотров 325 тыс.
how to master your emotions | emotional intelligence
8:14
How To Use The AUR (Arch User Repository)
10:01
Просмотров 130 тыс.
Опасная беспроводная зарядка
1:00