Is there a way to read parameters from a file in an R script?
I want to create a config file that has
db_host=xxxx
db_name=xxxx
db_user=xxxx
db_pass=xxxx
and then use it in the R script to create DB Connection.
dbConnect(PgSQL(), host="xxxx", dbname="xxxxx", user="xxxx", password="xxxxx")
and then how do I use it in the R Script.
EDITED: I also want to know if there is a way in which I can use a single config file across R Scripts, Perl Scripts & Java?