Closed peterrobertcurtis closed 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
Added username and password prompts if no arguments supplied.
Closing for now until we resolve ntlp authentication solution
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
andpassword.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.