You have to escape every backslash by a second backslash - try this:

f <- "C:\\files\\data\\" # create character string
write(f, "AAAA") # write to file
system("open -t AAAA") # see what happen to the character string

> file_dir <- c("C:\files\data\")


________________________________________________________

Christoph Heibl

Systematic Botany
Ludwig-Maximilians-Universität München
Menzinger Str. 67
D-80638 München
GERMANY

phone:     +49-(0)89-17861-251
e-mail:    [EMAIL PROTECTED]

http://www.christophheibl.de/ch-home.html

SAVE PAPER - THINK BEFORE YOU PRINT



>




        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to