Hello, I have an Excel file on a drive and I extract data from it into R session. Once I have extracted the data, I want to delete that Excel file from the drive. Can I do that from within R, please? Thank you for help! Regards, Sergey
Check out: ?unlink ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Thu, May 20, 2010 at 11:46 AM, Sergey Goriatchev <sergeyg@gmail.com>wrote:> Hello, > > I have an Excel file on a drive and I extract data from it into R session. > Once I have extracted the data, I want to delete that Excel file from the > drive. > Can I do that from within R, please? > > Thank you for help! > > Regards, > Sergey > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
file_to_delete = file.choose() file.remove(file_to_delete) Best, Dave Deriso UCSD Psychology On Thu, May 20, 2010 at 1:46 AM, Sergey Goriatchev <sergeyg at gmail.com> wrote:> Hello, > > I have an Excel file on a drive and I extract data from it into R session. > Once I have extracted the data, I want to delete that Excel file from the drive. > Can I do that from within R, please? > > Thank you for help! > > Regards, > Sergey > > ______________________________________________ > 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. >