0

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?

J_F
  • 9,956
  • 2
  • 31
  • 55
man data
  • 43
  • 2
  • 8

0 Answers0