Skip to content
Back to formatted view

Raw Message

Message-ID: <CAJRuHoot7mX-2B0fvstvhR=VvaWeQg_jmJFw_pcDgwkCFM7+Qg@mail.gmail.com>
Date: 2015-08-04T15:13:18Z
From: Sergio Fonda
Subject: write.csv file= question
In-Reply-To: <5E866410-3B86-4757-BD46-488DE03278B6@gmail.com>

Call getwd() in both terminal and your RStudio environments and compare
results
Il 04/ago/2015 16:53, "Brittany Demmitt" <demmitba at gmail.com> ha scritto:

> Hello,
>
> I have a quick question about the ?file=? specification for the command
> write.csv.    When I run this command in Rstudio I do not need the ?file=?
> specified.  For example the below command works just fine.
>
> write.csv(data,?/home/data.csv?)
>
> However when I am running an Rscript from the terminal and putting it in
> the background I need to specify ?file=?.  So for the example above I need
> to instead have
>
> write.csv(data,file=?/home/data.csv?)
>
> Any ideas why this is the case?  Writing file= isn?t a problem, just
> trying to get an idea of how R works better.
>
> Thanks!
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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]]