One of the things that I have not been able to solve when importing data is the problem of the names of the folders that contain the address of the file that I will import, because if they contain a character as a tilde it is not recognized.
library(readr)
DATA_ECONR_BAS_SESION_3_TAREA_1_1 <- read_delim("~/Cursos/Clases R/Sesión 3/Tarea/01-ARCHIVOS UTILIZADOS-DATA/DATA-ECONR-BAS-SESION 3-TAREA 1.1.csv",
";", escape_double = FALSE, trim_ws = TRUE)
#The tilde in "Session 3" does not allow the file to be recognized
#The error message that appears is:
#Error in guess_header_(datasource, tokenizer, locale) :
#Cannot read file C:/Users/Admin/Documents/Cursos/Clases R/Sesión 3/Tarea/01-ARCHIVOS UTILIZADOS-DATA/DATA-ECONR-BAS-SESION 3-TAREA 1.1.csv: El sistema no puede encontrar la ruta especificada.
I realized that if you remove the tilde the problem was solved, but my query is going to solve the problem of the tilde so that RStudio recognizes the dirreción of the file.
I do not know if the solution will change the UTF8 code