I'm new to R and using terra and cannot figure out this permission error. This exact code works on another researcher's computer, so I'm not sure why it's not working on my Rstudios. The folder and directory is correct, but I keep getting the same error. The wc2.1_30s folder contains some .tif files.
I want to name a folder with my variables baseline using this code:
baseline <- list.files(pattern = "wc2.1_30s") and then examine the data with
combined <- terra::rast(baseline)
then I get an warning "Warning: D:/Codingwork/wc2.1_30s: Permission denied (GDAL error 4)" and then "Error: [rast] cannot open file: D:/Codingwork/wc2.1_30s"
I'm running on Windows 10, 64bits on the most recent update of Rstudios.