Questions tagged as ['r']

R is a free, open-source programming language and software environment for statistical computing, bioinformatics, and graphics.
Score: 0
user3091668 avatar
Can a virus be installed just by downloading a file?
in flag

Let´s assume that I programmatically download a malicious file, e.g. using wget, and try to import in e.g. R or Python as a text file. If it fails, I delete it using rm. There is any chance that my Linux system gets infected?

Score: 3
scamander avatar
How to install R 4.0 on Ubuntu 18.04 when 'r-base' has no installation candidate
at flag

I was following this instruction for installing R 4.0 in Ubuntu 18.04

$ sudo apt remove r-base
$ sudo apt-key adv --keyserver --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb bionic-cran40/'
$ sudo apt update
$ sudo apt install r-base

However I get this error message:

Reading package lists... Done
Score: 0
Apoorva Babu avatar
Problems installing latest version of R in ubuntu 20.04 LTS
nl flag

I've been trying to install R 4.1 on ubuntu and each time I get the same error

The following packages have unmet dependencies:
 r-base : Depends: r-base-core (>= 4.1.2-1.2004.0) but 3.6.3-2 is to be installed
          Depends: r-recommended (= 4.1.2-1.2004.0) but it is not going to be installed
          Recommends: r-base-html but it is not going to be installed
 r-base-dev : Depends: r-base-c ...
Score: 0
Seda KOLDAS avatar
how can I update R to version 4 on ubuntu
cn flag

I'm using Ubuntu 20.04.3 LTS. I'm using R version 3.6.3. Some packages is not in there. Therefore I need R version 4. or higher than 4. I tried those things: sudo -H gedit /etc/apt/sources.list then I added this line: deb focal/ then sudo apt-get update and sudo apt-get install r-base but it doesnt work. Somebody help me?

Score: 0
Thomas Guillerme avatar
Using Sublime Text to send code to terminal
in flag

I have just recently switched from Mac OS to Ubuntu and I am missing a specific feature (not Mac OS related) that I couldn't find anywhere.

I want to use Sublime Text 3 as a general code editor and use Ctrl+Enter to send code to terminal depending on the code used (e.g. if bash shell, send it to shell, if R, send it to R, etc.).

I have been trying the same route I used on Mac OS (with the packages R ...

Score: 0
Can't Install R 4.X on Ubuntu 20.04
br flag

I trying to update R on my Ubuntu 20.04 (new updated from 16.04).

So I delete the previous version of R by :

sudo apt-get purge r-base* r-recommended r-cran-*    
sudo apt autoremove

After, I update my /etc/apt/sources.list by adding the good repository

deb focal-cran40/

And the correct key :

sudo apt-key adv --keyserver --recv-key ...
Score: 0
lavoisier_hosea avatar
Restoring the default repositories in WSL and reinstalling R
fo flag

I have made a similar question but it was closed here: Difficulties on trying to (re)install R

As I work in WSL I believe my situation is a bit specific. After uninstalling R and going through some tutorials as the one suggested to me (in the closed question above) I am still not able to reinstall R in WSL.

Right now I'm stuck in this part of a tutorial described here How do I restore the default reposit ...

Score: 4
lavoisier_hosea avatar
Difficulties on trying to (re)install R
fo flag

I am trying to (re)install R in my ubuntu WSL. I already had done with

sudo apt install r-base-core But, then, later I tried to change to R 4.0 with some compressed version. Eventually, the old R 3 version was uninstalled from my system and the R 4 was running.

Basically, I wanna work with DESeq2 and install some libraries like apeglm.

As I was having some issues I deleted/removed all the folders with  ...

Score: 1
N0rbert avatar
Is it possible to prevent R package conflicts while upgrading Ubuntu 16.04 LTS with R from CRAN to Ubuntu 18.04 LTS?
zw flag

I have fully updated Ubuntu 16.04.7 LTS amd64 which was configured for RMarkdown/bookdown, LaTeX publishing using the following commands:

sudo apt-get install apt-transport-https

cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb xenial/
sudo apt-key adv --keyserver --recv-keys E298A3A825C0D65DFD57CBB651716619E08 ...
Score: 2
Wang Mengfei avatar
Successfully download R and Rstudio on ubuntu 18.04, but can't open it,enven on web(8787)
pk flag

I want to use Rstudio on cloud server, and I successfully download R and Rstudio on ubuntu 18.04, but can't open it. I think it is because of the wrong environment variable. And I don't know what to do next.

mengfei@iZ2zeh7tqthaheqrfl87z2Z:/root$ R
R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is  ...
Score: 1
Pål Bjartan avatar
Error when installing RStudio in Anaconda: `/opt/anaconda3/lib/R/bin/exec/R: error while loading shared libraries:
vn flag

I am currently trying install Anacondas RStudio version. Already I have R installed from the official CRAN repositories through apt package manager and the newest version of RStudio. My current version of R is installed in /usr/lib/R and the path variable set in /usr/bin/R. When running Anaconda Navigator's RStudio installer, it attempts to install a separate version of R in /opt/anaconda3/lib/R. The  ...

Score: 0
Larry Hunsicker avatar
Is the latest version of rstan 2.26.2 avaiable for Ubuntu 20.04 LT?
th flag

Is the latest version of rstan (2.26.2) available yet on Ubuntu 20.04 LT? If not yet, is there an estimate of when it will be available?

Score: 0
How to manage number of cores used on my institution's server
in flag

I'm using a remote server where I'm not supposed to request more than 24 of the 100 cores.

I'm running a couple of R scripts which seem to be using too many...

How can I tell, in htop, how many cores an individual user (myself) is using? I can see the 'load average', which is for all users, and I can add up the MEM% for my processes.

Is there some R command I could use to limit the number of cores? The ...

Score: 2
Charles avatar
dependency ‘Cairo’ is not available for package ‘ComplexHeatmap’ on Ubuntu 20.04 LTS
uz flag

Please what could be a reason for this error? I am trying to install the R package ComplexHeatmap but I keep getting the error message that the the dependency Cairo is not available. I have tried to install Cairo using the command sudo apt-get install libcairo2-dev but I still get the same error. Running the command sudo dpkg-query -l | grep libcairo2-dev also shows that the Cairo package is fully ...

Score: 1
Charles avatar
Cannot install any R packages after installing Ubuntu 20.04
uz flag

Please are there any hints on why I am not able to install any R packages? I recently installed the Ubuntu 20.04 LTS OS as well as R and R studio. I am however not able to install any packages in R. I have gone through a seemingly related post such as Cannot install any R packages on Ubuntu 18.04 but the solutions appear not to help in my case. For instance, while trying to install the ggplot2 package, I ...

Score: 0
Charles avatar
How can I repeat a potentially failed update of Ubuntu 18?
uz flag

I am new to Ubuntu but I have a good coding backgroud. I tried to update my Ubuntu 18 machine to the latest, Ubuntu 20.04. I followed a tutorial I found online. But I think the update was not succesful because I got stuck and had to power off and start back my computer. On running the command lsb_release -a, I got an output on the terminal indicating that the system is now updated.But I think thi ...

Score: 1
akh22 avatar
Issue upgrading R 4.05 to 4.1 in Focal 20.04 on AWS EC2
ma flag

I am trying to upgrade R 4.0.5 to R 4.1 with an update instruction by Johannes Ranke on cloud-R and I did as follows;

sudo nano /etc/apt/sources.list

and added;

deb buster-cran40/

and commented out; focal main restricted


sudo apt update
Hit:1 focal-updates I ...
Score: 2
nico_so avatar
Installing R and RStudio in Lubuntu 20.04
gs flag

I wanted to install R with Rstudio to start learning, but I found many problems in the way, I'll explain as much as i can below.

So I went to the CRAN Project website and followed their instructions to install R on my laptop.

# update indices
apt update -qq
# install two helper packages we need
apt install --no-install-recommends software-properties-common dirmngr
# imp ...
Score: 3
Hry avatar
Can´t install R 4.1 on Ubuntu Server 20.04 (Raspberry Pi)
cn flag

i have a fresh & clean install of Ubuntu Server 20.04 64bit running on my new raspberry pi 4.

The first thing i did was creating a new user with sudo privileges. This was followed by sudo update and sudo upgrade.

After that i tried to install R 4.1.0 (latest available R Version). I followed the guide on this page but i´m getting an error on step 3:

The following packages have unmet dependencies ...