[Gretl-users] R & Gretl: Accented file names problem

Henrique henrique.coelho at gmail.com
Tue Jan 28 15:05:55 EST 2014


Dear Gretl Developers,

I think I found a problem with accented path or directory names using R and Gretl. Look at the simple code:

<hansl>

nulldata 1

# Works fine when the directory has
# no accented filename ("Teste")
foreign=R
    nome_da_serie <- file("C:/Users/henrique/Documents/gretl/Teste/Nome.txt")
    nome_da_serie <- readLines(nome_da_serie, n = 1)
    nome_da_serie
end foreign

# Doesn't work when the directory
# has accented filename ("Téstê")
# Gretl freezes
foreign=R
    nome_da_serie <- file("C:/Users/henrique/Documents/gretl/Téstê/Nome.txt")
    nome_da_serie <- readLines(nome_da_serie, n = 1)
    nome_da_serie
end foreign

# Doesn't work when the file
# doesn't exist ("Name.txt")
# Gretl freezes
foreign=R
    nome_da_serie <- file("C:/Users/henrique/Documents/gretl/Teste/Name.txt")
    nome_da_serie <- readLines(nome_da_serie, n = 1)
    nome_da_serie
end foreign

</hansl>

Using the commands directly on R works fine.

Best regards,
Henrique

Enviado via iPhone


More information about the Gretl-users mailing list