On 3/23/07, Liaw, Andy <[EMAIL PROTECTED]> wrote:
> 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.
ok. Try this, at least on Windows XP:
paste(Sys.getenv(c("HOMEDRIVE", "HOMEPATH")), collapse = "")
______________________________________________
[email protected] 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.