r-spatial / stars

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

GDAL driver error after installing stars in R #724

Open jofeggg opened 3 days ago

jofeggg commented 3 days ago

When I run perform_PCA funtion of the biodivMapR package, I got this error after installing stars package (latest version)

Error: lexical error: invalid char in json text. Driver: ENVI/ENVI .hdr Labelled (right here) ------^

Here is a link to the function code:

https://github.com/jbferet/biodivMapR/blob/master/R/Lib_PerformPCA.R

With stars 0.6-6 it worked perfectly