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
9 stars 2 forks source link

added proxy_setting.R #30

Closed peterrobertcurtis closed 6 years ago

peterrobertcurtis commented 6 years ago

The set_DfE_proxy function takes as arguments either character strings for username and password, or a path to a directory which contains files called username.txt and password.txt that contain only the username and password respectively.

It then calls httr:use_proxy with the appropriate settings.

In my personal package I can call set_DfE_proxy() without any arguments as I have set the first the first argument to my personal directory by default, i.e.

set_DfE_proxy <- function(arg1 = path-to-my-dir, arg2 = NA){

but this is computer specific so I have removed it.

adamrobinson361 commented 6 years ago

Might be worth lookIng into this instead https://stackoverflow.com/questions/38609201/r-and-windows-authentication?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

peterrobertcurtis commented 6 years ago

Added username and password prompts if no arguments supplied.

adamrobinson361 commented 6 years ago

Closing for now until we resolve ntlp authentication solution