creating Config.yml file

Hi,
I want to create a config.yml file the fetch data from database. Basically the below step

config.yml:
default:
datawarehouse:
driver: 'Postgres'
server: 'mydb-test.company.com'
uid: 'local-account'
pwd: 'my-password' // not recommended, see alternatives below
port: 5432
database: 'regional-sales-sample'
How can I create config.yml file. Is it inside the R script? I have installed packages 'config' and 'configr'
I am referring to this article https://db.rstudio.com/best-practices/portable-code/

Thanks.
Swapna

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.