i am facing problem while installing r BiocManager::install("TCGAbiolinks")

failed to lock directory ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4’ for modifying
Try removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4/00LOCK-TCGAbiolinks’

The downloaded source packages are in
‘/tmp/RtmpXt7vWf/downloaded_packages’
Installation paths not writeable, unable to update packages
path: /opt/R/4.4.1/lib/R/library
packages:
boot, foreign, MASS, nlme, survival
Warning message:
In install.packages(...) :
installation of package ‘TCGAbiolinks’ had non-zero exit status

Do this to start. It looks like you had an earlier installation failure that that left a lock file behind.

Can you post your code? Copy the code and paste it here between
```

```

This was the code which I run to install BiocManager

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("TCGAbiolinks")


You can also give pak a go, it is not troubled with lock files. Install it like this:

install.packages("pak", repos = sprintf(
  "https://r-lib.github.io/p/pak/stable/%s/%s/%s",
  .Platform$pkgType,
  R.Version()$os,
  R.Version()$arch
))

(Cf. All about installing pak. — Installing pak • pak .) Then run

pak::pkg_install("TCGAbiolinks")

i am facing the same problem the r session gets terminated again and again due to which code is not running properly package is not getting installed properly
i tried pak also same the r session is getting terminated
actually i am using free version of R stuio posit cloud is it due this i am facing problem

That seems like a different problem, and RStudio does not even start. Do you have an .RData file in the project? Maybe R is trying to load it? If yes, try to remove it (or rename it if you still need it).

Can you start R in a terminal?

how can i remove the 00lock-TCGAbiolinks ? is there a code which i should run

these are the only R files and i did not understand the how to start R at terminal

I don't use the cloud but normally you would go to the folder

/cloud/lib/x86_64-pc-linux-gnu-library/4.4/

and delete the file

00LOCK-TCGAbiolinks

I am sorry, I missed completely that you are on Posit Cloud. Forget about the terminal then. Can you install other packages? Or all of them fail?

Rest of the packages are installed but facing problem while installing this

BiocManager::install("TCGAbiolinks")

BiocManager::install("limma")

In that case you might be running out of memory, unfortunately. I am not sure what you can do in this case.

Btw. please tag this post with "Posit Cloud", to make sure that the right people will see it.