Snažil jsem se stáhnout soubor z internetu, ale stažený soubor (rastrový formát) nelze načíst.
# download the data
download.file("https://zenodo.org/record/4287825/files/ChinaClim_baseline_prec_01.tif?download=1", destfile="prec_01.tif")
# load into Raster
library(raster)
raster("prec_01.tif")
# Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", :
# Cannot create a RasterLayer object from this file.
Nic špatného na můj kód? Díky.