Should be enough to edit your .Renviron file and add
http_proxy=http://proxy.foo.bar:8080/ http_proxy_user=user_name:password