Error in load in bioclim variables in Tiff file in R.

clim_list <-list.files("G:/SB_Overlap/Bio_new",pattern=".bils$",full.names = T)
> clim = raster::stack("clim_list")
Error in .rasterObjectFromFile(x, objecttype = "RasterBrick", ...) : 
 Cannot create RasterLayer object from this file; perhaps you need to install rgdal first
> install.packages("rgdal")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/RITAM/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 32976878 bytes (31.4 MB)
downloaded 31.4 MB
package ‘rgdal’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
Error in x[[1]] : subscript out of bounds

As the warning message says you need to install Rtools first.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.