package or namespace load failed for 'gstat': package slot missing from signature for generic 'coerce' and classes STFDF, RasterBrick
install.packages('gstat') Installing package into 'C:/Users/clark/AppData/Local/R/win-library/4.4' (as 'lib' is unspecified) Warning: unable to access index for repository http://cloudyr.github.io/drat/bin/windows/contrib/4.4: cannot open URL 'http://cloudyr.github.io/drat/bin/windows/contrib/4.4/PACKAGES' trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.4/gstat_2.1-3.zip' Content type 'application/zip' length 2360522 bytes (2.3 MB) downloaded 2.3 MB
package 'gstat' successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\clark\AppData\Local\Temp\RtmpCmYU6H\downloaded_packages
library("gstat") Error: package or namespace load failed for 'gstat': package slot missing from signature for generic 'coerce' and classes STFDF, RasterBrick cannot use with duplicate class names (the package may need to be re-installed)
I tried many ways to make it happen but could not succeed.
Please reinstall spacetime and gstat.