I need authentication to use internet, say these are my variables:
As @juba states, I think you want to set the http_proxy. From ?download.file
:
Usernames and passwords can be set for HTTP proxy transfers via environment variable http_proxy_user in the form user:passwd. Alternatively, http_proxy can be of the form "http://user:pass@proxy.dom.com:8080/"
So, try: Sys.setenv(http_proxy="http://MyLoGiN:MyPaSs@1ncproxy1:80")
Be aware though:
These environment variables must be set before the download code is first used: they cannot be altered later by calling Sys.setenv.
So you are best off calling it in your .Rprofile