[R] Remove

Paul Gilbert pgilbert at bank-banque-canada.ca
Wed Mar 7 18:08:54 CET 2001


>> I would like to remove some files which have the extension  .test for

>> example (data1.test, data2.test ....).
>> Is there another solution to remove them instead of doing it one by
one

>        system("rm *.test")
>(assuming a Unix/Linux OS)

You might try

     unlink("*.test")

which is not system dependent.

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list