Hello,
I installed Ubuntu 24.04 and started preparing the machine for data analysis. I started installing R and RStudio using the following commands:
https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html
sudo apt-get update
sudo apt-get install r-base
Then,
choose ubuntu
Then,
sudo apt update -qq
sudo apt install --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Then,
sudo apt-get install r-base-dev
Then,
download RStudio for Ubuntu 24.04
$cd Download
$sudo dpkg -i rstudio-2024.09.0-375-amd64.deb
sudo apt install -f
I am able to successfully install packages from CRAN but encounter errors when attempting to install packages from Bioconductor.
Example of errors:
ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’
- removing ‘/home/raizada/R/x86_64-pc-linux-gnu-library/4.4/ragg’
Then, I ran
$sudo apt-get install libcurl4-openssl-dev r-base
Are there any specific libraries or dependencies that need to be installed on Ubuntu beforehand?
I have updates:
$sudo apt install r-cran-curl
Then, I installed devtools to install DADA2
install.packages("devtools")
library("devtools")
devtools::install_github("benjjneb/dada2", ref="v1.26")
but I got the error below:
ERROR: dependencies ‘Rsamtools’, ‘GenomicAlignments’ are not available for package ‘ShortRead’
- removing ‘/home/raizada/R/x86_64-pc-linux-gnu-library/4.4/ShortRead’
Thanks!