Error with installation of new packages in RStudio

Hello to all,

I am new here and I am having a lot of problems installing new packages on RStudio.
I have recently installed a new version of Linux (Ubuntu 23.04), R (4.2.2 patched), and Rstudio (2023.03.0 buid 386) but this and I am actually almost unable to install some packages. I guess this is due to lack of proper dependencies.
For example I tried to install the package simRAD but I got this error message:

ERROR: dependency ‘latticeExtra’ is not available for package ‘ShortRead’

  • removing ‘/home/bruno/R/x86_64-pc-linux-gnu-library/4.2/ShortRead’
    Warning in install.packages :
    installation of package ‘ShortRead’ had non-zero exit status
    ERROR: dependency ‘ShortRead’ is not available for package ‘SimRAD’
  • removing ‘/home/bruno/R/x86_64-pc-linux-gnu-library/4.2/SimRAD’
    Warning in install.packages :
    installation of package ‘SimRAD’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpjDTrBA/downloaded_packages’

I use R but not very expert about configuration: anyone has any suggest for me?
Thanks in advance!

Bruno

If you run

install.packages("laticeExtra")

does it work?
What command exactly are you running to install simRAD?

Hello,
Thanks for your answer. I tried again with this command:

install.packages("SimRAD")
Installing package into ‘/home/bruno/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘ShortRead’ is not available
trying URL 'https://cloud.r-project.org/src/contrib/SimRAD_0.96.tar.gz'
Content type 'application/x-gzip' length 9299 bytes
==================================================
downloaded 9299 bytes

ERROR: dependency ‘ShortRead’ is not available for package ‘SimRAD’

  • removing ‘/home/bruno/R/x86_64-pc-linux-gnu-library/4.2/SimRAD’
    Warning in install.packages :
    installation of package ‘SimRAD’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpEgzp37/downloaded_packages’

Then I tried to install the required dependencies: "ShortRead" and "latticeExtra" but I got an identical error message.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.