I am writing to a file with special character.
fname<- "1,2-dioleoyl-GPC (18:1/18:1)*[media]"
cat(1,file=fname)
but I get following error:
Error in file(file, ifelse(append, "a", "w")) : cannot open the connection In addition: Warning message: In file(file, ifelse(append, "a", "w")) : cannot open file '1,2-dioleoyl-GPC (18:1/18:1)*[media]': No such file or directory
How can I avoid such an error?