Re: [R] passing username and password to source()

From: Dieter Menne <>
Date: Thu, 14 Feb 2008 07:18:19 +0000 (UTC)

[Ricardo Rodriguez] Your XEN ICT Team <webmaster <at>> writes:

> But considering I am just newbie, could you point me to any example to
> get this working? Thanks!

I was thinking of something like this (note: you must store PassEnv2.r on disk as a file).

# File PassEnv.r
# Try again (to show it's removed)

#File PassEnv1.r
# Sys.unsetenv("PASSW") ## This would also be possible to clear the enviroment # Show that is worked
cat("The password is ",passw,"\n")

Again: this is good for your own computer, but should not be used when security constraints are relevant. The password is visible to everyone for the time of passenv1.r running.

Dieter mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 14 Feb 2008 - 07:25:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Feb 2008 - 08:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive