Open nuvanrath opened 7 months ago
It seems that renv
is not good at installing R packages with system requirements; see also https://github.com/r-spatial/sf/issues/2360 https://github.com/r-spatial/sf/issues/2353 https://github.com/r-spatial/sf/issues/2353 https://github.com/r-spatial/sf/issues/2244
Ah, thank you. So for version pinning in a project using sf
, would the recommendation be to use Docker rather than renv
?
Definitely if you install packages from source; if you install binary packages from CRAN on MacOS or Windows this may not be needed (all system requirements are statically linked in the R package directory).
./configure: line 2264: pkg-config: command not found
Most likely, the PATH in your R session in your renv
project differs in some way from the "default" PATH, but it's not clear why that would be the case.
It seems that
renv
is not good at installing R packages with system requirements; see also r-spatial/sf#2360 r-spatial/sf#2353 r-spatial/sf#2353 r-spatial/sf#2244
It seems everybody is just pushing the problem away.
See related renv
reply: https://github.com/rstudio/renv/issues/1860#issuecomment-2007638456
Hi, I'm running R 4.3.1 on an arm-64 mac, and I've got a peculiar problem. If I open up RStudio in a fresh session and run
install.packages("lwgeom")
, it successfully installs the package. However, if I open up an RStudio project where I am trying to userenv
for package control, and runrenv::install("lwgeom")
I get the following error output:My sessionInfo is:
Any thoughts on how I can correct this?