Unfortunatly, the way it is setup is that the Rprofile creates a new environment and all the username and passwords are within that new environment. This is an example of the way it's done in the .Rprofile
pwd_env <- new.env()
pwd_env$username = "my_user_name"
pwd_env$password= "my_password"
and I would like to make this new environment accessible to reprexed code
Your solution is a good one but it's not exactly what I want (I'm sorry if my question wasn't really clear)
Thanks