Problems with RStudio

Good morning folks! Hou you've been?
I'm facing trouble when installin the FrF2 package on RStudio and I need it to a college class. When trying to install, the first error I found was this:

ERROR: compilation failed for package ‘lmtest’
* removing ‘/home/glhrmlz/R/x86_64-pc-linux-gnu-library/4.1/lmtest’
Warning in install.packages :
  installation of package ‘lmtest’ had non-zero exit status

My professor saidi that lmtest is probably dependent for some Ubuntu package that is not on the system. Can someone help me on this? If not, I'll have to install some other distro on a VM.
That's it, Love y'all

Not sure if this can help

1 Like

If the command in that tutorial doesn't quite work, you could try...

sudo apt install -f r-cran-lmtest
1 Like

None of them worked for me.

sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+

sudo apt update && sudo apt install -y r-cran-lmtest

1 Like

The "lmtest" error is fixed, but I'm still getting this:

ERROR: dependency ‘igraph’ is not available for package ‘FrF2’
* removing ‘/home/glhrmlz/R/x86_64-pc-linux-gnu-library/4.1/FrF2’
Warning in install.packages :
  installation of package ‘FrF2’ had non-zero exit status

Try

sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev

Warning messages:
1: In utils::install.packages("igraph", repos = "https://cloud.r-project.org") :
  installation of package ‘igraph’ had non-zero exit status
2: In utils::install.packages("FrF2", repos = "https://cloud.r-project.org") :
  installation of package ‘igraph’ had non-zero exit status
3: In utils::install.packages("FrF2", repos = "https://cloud.r-project.org") :
  installation of package ‘FrF2’ had non-zero exit status

This is the result still

Can you try installing this with either g-debi, dpkg or the Zorin Included package installer:
http://ports.ubuntu.com/pool/universe/r/r-cran-igraph/r-cran-igraph_1.2.4.2-2build1_arm64.deb

Once done, then continue in terminal...

This is not a Zorin or a Linux Issue and Windows users suffer the same fate. The package developers sourced the wrong compiler and have not corrected it.

Hello, @Aravisian. Sorry for taking long to answer. I couldn't install the deb file you sent me, it says it has unmet dependencies, but does not show which one. My teacher told me that the problem could be a libcurl problem, so he told me to run this command:

sudo apt install libcurl4-openssl-dev

Even after this, the problem in RStudio went on. Now, the problem seems to be only with igraph. I tried installing it with pip as well, but I still can't install FrF2.
I wonder if a virtual machine would help me, at least til I write the script I need for my test.

Try using gdebi:

sudo apt install gdebi

It won't install the software, but it will tell you what dependency is missing.

1 Like


This is what I got:

I uhh... I appear to have made a mistake.:expressionless:
I thought I selected the amd64... I selected ARM64... Scientifically proving that I am a failure as a human being and that I deserve nothing less than ridicule and derision.

Try this one, instead:
http://archive.ubuntu.com/ubuntu/pool/universe/r/r-cran-igraph/r-cran-igraph_1.2.4.2-2build1_amd64.deb

The link opens a new tab that closes instantly, but no file is downloaded

I do not know. It opens a Download Chooser dialog on mine. The link is not broken.

image

r-api-3.5 is included in r-base-core...

You added this repository:
sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+

And ran this command:
sudo apt update && sudo apt install r-cran-rstan -d

Correct?

I just tested this on my machine - and it installed. The above includes r-base-core as well.
Are you set to Main Server? Or am I missing something here?
Otherwise... Here is r-base-core (I doublecheckd... amd64)
http://archive.ubuntu.com/ubuntu/pool/universe/r/r-base/r-base-core_3.6.3-2_amd64.deb

This must be driving you up the wall in frustration.

I ran the commands and the problem persists. This is the first time that I'm banging my head against the wall with a problem on Linux. I hope everything will be ok

What about the .deb file linked about for r-base-core?

When I click to install it, it says it's already installed. It gives me the option to remove it only