Re: [R] Problem in shiny writing a .txt file

2017-07-19 Thread Mathew Guilfoyle
Is res.path usually empty? If the res.path directory is empty (i.e. dir(res.path) is an empty vector) the file.remove operation will remove the directory. This behaviour is documented in the help for file.remove. When your subsequent function tries to write to that directory it does not exist

Re: [R] Problem in shiny writing a .txt file

2017-07-19 Thread Ulrik Stervbo
Hi Ana, The path is most likely wrong. How does f.texto() know the res.path? Do you manage to remove the old path and create a new one but f.texto() doesn't know? Not reasons for your problem, but curious: Why do you change the working directory? What is the intention behind appending dir(res.pa

Re: [R] Problem in shiny writing a .txt file

2017-07-19 Thread Rolf Turner
On 19/07/17 19:19, Ana Belén Marín wrote: Hi all! I'm developing a shiny app and I have problems when I wanna write a .txt file. " ... when I *want to* write ..." The language of this mailing list is *English*, not Valspeak. cheers, Rolf Turner -- Technical Editor ANZJS Department of S