[R] Removing script file

From: Dennis Fisher <fisher_at_plessthan.com>
Date: Tue, 29 Jul 2008 08:37:24 -0700


(Running R 2.7.0)

I have a script that I want to delete as it completes execution. The penultimate line of the script (before the quit command) is:

The script is executed as:

        R --no-save < Scriptname

In OS X and Linux this is successful and returns: > > file.remove("x")
> [1] TRUE

and the file is deleted

In Windows XP, it returns:
> [1] FALSE
and the file is not deleted.

I realize that this is an OS issue rather than an issue with execution of the command. Is there some means to delete the script from within R?


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-415-564-2220

        [[alternative HTML version deleted]]

R-help_at_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. Received on Tue 29 Jul 2008 - 15:40:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jul 2008 - 17:32:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive