In version R version 3.6.1 (2019-07-05) -- "Action of the Toes",on Mac Catalina OS. I'm trying to load files from folder, code bellow, however it does not do it at the first time, and I need to run it twice to get the files loaded. What could be happening? How could be solved?
remove(list=ls())
library(raster)
library(rgdal)
library(easycsv)
theDir=easycsv::choose_dir()
thePath=setwd(theDir)
current.list <- list.files(path = thePath, pattern =".tif$", full.names=TRUE)