Why I get this error writing data to a file

后端 未结 5 2039
孤城傲影
孤城傲影 2020-12-03 21:31

I have this code

myvector <- c(3.45235, 1.32525, ... , 2.41351)    # some numbers
write(myvector, \"C:/mypath/myfile.txt\")           # I use \"/\" instea         


        
5条回答
  •  旧时难觅i
    2020-12-03 21:55

    It happens when you open the myfile.txt and run the code. Try to close the myfile.txt in your machine and run the command. It solves your problem.

提交回复
热议问题