My suggestion is that you provide a reproducible example, as the Posting Guide requests.
--------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On October 29, 2014 10:20:13 AM PDT, Pedro Segurado <psegur...@isa.ulisboa.pt> wrote: >Dear all, > >I am trying to develop a R script that basically uses a loop that >includes 5 >main steps: (1) it runs a windows executable file outside R that >requires a >set of *.txt files using the shell function (Note: I have tried system >and >system(shhQuote()) and the problem remains), (2) it imports the output >txt >file of the executable, (3) it deletes the existing input txt files >from the >windows folder, (4) it uses values of the imported output file to help >producing new tables to be used as input files to the executable and >(5) it >exports those tables in txt format to the windows folder. > >Now the problem. I am running this script in a laptop. I have change >the >energy saving settings to the highest performance possible, it no >energy >saving options at all. If I move the mouse frequently there is no >problem, >the whole process is not interrupted. However, if I do not move the >mouse, >the process stops (not always in the same loop and the same file) with >the >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 'nodes_29.txt': Permission denied > >The file "nodes_29.txt" is one of the executable input files that is >produced in the loop, which can have the same name as previous txt >files >that were meanwhile deleted in previous loops (again, please note that >the >error is not always in the same loop number and the same file). > >Any idea? > >Thanks! >Pedro > >______________________________________________ >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. ______________________________________________ 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.