R: /usr/local/lib/R/etc/ldpaths: No such file or directory, can't open the fiel

hello, everyone:
recently i installed r packages in ubuntu 22.04, but it falied, show "R: /usr/local/lib/R/etc/ldpaths: No such file or directory", and the end is ```
installation of package ‘Seurat’ had non-zero exit status

Please help me hopefully, i spend on this problem for a night. Thank you all.

I'm running R.4.3.1 under Pop!_OS 22.04 (an Ubuntu tuned by my laptop maker), and /usr/local/lib/R is the executable, not a directory containing an etc subdirectory or ldpaths under that. I just installed Serurat successfully except a non-fatal error message having to do with the Python environment and the following notice

> library(Seurat)
The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
which was just loaded, were retired in October 2023.
Please refer to R-spatial evolution reports for details, especially
It may be desirable to make the sf package available;
package maintainers should consider adding sf to Suggests:.
Attaching SeuratObject

This has to do with the deprecation of the old sp and related packages in favor of the newer sf package (which is a great improvement because it allows ordinary data frames to contain geometry objects by super-classing to a simple features version of a data frame).

In my install there is an /etc/R/ldpaths, which makes me wonder if you have a non-standard installation. Can you tell me how R was installed? I hope that it wasn't done using conda.

thank you for replying, sir
i showed the process of a package under , input and output, could you give me some suggestions?

Content type 'application/octet-stream' length 24880 bytes (24 KB)
downloaded 24 KB

/usr/lib/R/bin/R: 行 142: /usr/lib/R/etc/ldpaths: 没有那个文件或目录
/usr/lib/R/bin/R: 行 249: /usr/lib/R/etc/ldpaths: 没有那个文件或目录
在启动过程中 - Warning message:
In file(file, "rt") :
  无法打开文件'/usr/lib/R/etc/repositories': 没有那个文件或目录
Error in file(con, "r") : 无法打开链结
Calls: <Anonymous> ... is.factor -> grep -> is.factor -> readLines -> file
此外: Warning message:
In file(con, "r") :
  无法打开文件'/usr/lib/R/etc/Makeconf': 没有那个文件或目录
Warning in install.packages :

> library(png)
Error in library(png) : 不存在叫‘png’这个名字的程辑包

i solved this error by rebuiding my computer, thank you, sir.

1 Like

This topic was automatically closed 7 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.