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

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
https://r-spatial.org/r/2023/05/15/evolution4.html.
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.