The detection of field separator in CSV files fails when apostrophes are used in text. Even if quoted.
Reprex:
library(mapMCDA)
td <- data.frame(place = "It's nearby", value = 1)
tf <- tempfile()
write.csv(td, tf, row.names = FALSE)
csv_sep(tf)
#> Error in csv_sep(tf): Cannot determine field separator of /tmp/RtmpdgM8Si/filed7784c3d29e7
Created on 2023-11-09 with reprex v2.0.2