r-spatial / stars

Spatiotemporal Arrays, Raster and Vector Data Cubes
https://r-spatial.github.io/stars/
Apache License 2.0
554 stars 94 forks source link

Update failed for stars... same error for leafem, leafgl, and rgee installation. #697

Closed YinOsu closed 1 month ago

YinOsu commented 1 month ago

Update failed for stars

install.packages("stars") Installing package into ‘/usr/local/lib/R/4.4/site-library’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/src/contrib/stars_0.6-6.tar.gz' Content type 'application/x-gzip' length 3741200 bytes (3.6 MB)

downloaded 3.6 MB

edzer commented 1 month ago

reinstall sf.

YinOsu commented 1 month ago

reinstall sf.

I have, and when I did, I got error.

remove.packages("sf") Removing package from ‘/usr/local/lib/R/4.4/site-library’ (as ‘lib’ is unspecified) install.packages("sf") Installing package into ‘/usr/local/lib/R/4.4/site-library’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/src/contrib/sf_1.0-16.tar.gz' Content type 'application/x-gzip' length 3493756 bytes (3.3 MB)

downloaded 3.3 MB

edzer commented 1 month ago

Looks like you're on MacOS (you didn't specify) - if this is the case, please install sf as a binary package.

YinOsu commented 1 month ago

Looks like you're on MacOS (you didn't specify) - if this is the case, please install sf as a binary package.

Sorry about that. is this the same as installing from the binary package.. ? which I have tried and still not successful.

install_github("r-spatial/sf", configure.args = "--with-proj-lib=$(brew --prefix)/lib/")

edzer commented 1 month ago

No, you'd use

install.packages("sf", type = "binary")
YinOsu commented 1 month ago

No, you'd use

install.packages("sf", type = "binary")

I get this error:

install.packages("sf", type = "binary") Error in install.packages : type 'binary' is not supported on this platform

@edzer

edzer commented 1 month ago

sorry, please try

install.packages("sf", type = "mac.binary")
YinOsu commented 1 month ago

sorry, please try

install.packages("sf", type = "mac.binary")

Here is the output @edzer

install.packages("sf", type = "mac.binary") Installing package into ‘/usr/local/lib/R/4.4/site-library’ (as ‘lib’ is unspecified) Warning in install.packages : unable to access index for repository https://cran.rstudio.com/bin/macosx/contrib/4.4: cannot open URL 'https://cran.rstudio.com/bin/macosx/contrib/4.4/PACKAGES'

package ‘sf’ is available as a source package but not as a binary

Warning in install.packages : package ‘sf’ is not available as a binary package for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

edzer commented 1 month ago

This is not a stars issue, but an issue with your R installation; as I don't use a mac, I'm giving up, pls find help elsewhere.