[R] Get "home" directory and simple I/O
Liaw, Andy
andy_liaw at merck.com
Fri Mar 23 15:02:26 CET 2007
From: Gabor Grothendieck
>
> See:
>
> ?R.home
That's not what Alberto wanted: It gives the location of the R
installation, not where user's home directory is. AFAIK Windows does
not set the HOME environment variable by default.
> ?dput
>
> On 3/23/07, Alberto Monteiro <albmont at centroin.com.br> wrote:
> > Is there any generic function that gets the "home" directory? This
> > should return /home/<user> in Linux and x:/Documents and
> > Settings/<user> (or whatever) in Windows XP.
> >
> > Another (unrelated) question: what is the _simplest_ way to
> read and
> > write R variables to/from files such that they are stored in a
> > human-readable but R-like form? For example, if (say), x is
> a vector
> > defined as x <- c(1, 2, 3), can I write (and read) x as a file with
> > just one line, namely: c(1, 2, 3) ?
> >
> > Alberto Monteiro
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
>
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}
More information about the R-help
mailing list