Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

Re: [R] R function to delete a csv file from disk

Jan Schwanbeck

2010-03-20

Replies: Find Java Web Hosting

Author LoginPost Reply
I guess, you are looking for:

?file.remove

Am 20.03.2010 20:36, schrieb Megh:
> Is there any R function to delete a CSV file saved in disk? For example here
> I have created following R function :
> asd<- function(a = 5) {
>    dat<- read.delim(file="F:/Test.csv", header=T, sep=",")
>    res<- dat[1,1]*a
>
>    # Here I want to delete "Test.csv"
>
>    return(res)
>
> }
>
> Here I am looking for a R function to delete "Test.csv" directly. Any
> suggestion there?
>
> Thanks
>
>

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.