dfe-analytical-services / dfeR

Common R tasks in the Department for Education (DfE)
https://dfe-analytical-services.github.io/dfeR/
GNU General Public License v3.0
8 stars 2 forks source link

Update proxy settings #41

Closed davidgoody-dfe closed 5 years ago

davidgoody-dfe commented 5 years ago

Add new way of doing proxy settings that doesn't require writing your password into hard coded syntax

adamrobinson361 commented 5 years ago

What do you think about this instead:

Sys.setenv(https_proxy = paste("http://ad\\",Sys.getenv("USERNAME"),":",
                               rstudioapi::askForPassword("AD account password"),
                               "@192.168.2.40:8080",sep=""))

We can make use of the USERNAME environment variable and then we only have to ask once.

adamrobinson361 commented 5 years ago

Note if we are doing packagename:: we don't need library so either or works