/usr/share/doc/r-cran-rcurl/examples/passwd.S is in r-cran-rcurl 1.95-4.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | promptPassword =
function(prompt, len)
{
cat(prompt, ": (max of ", len, " characters)> ", sep="")
scan(what = "", nmax = 1)
}
getURL("http://192.168.0.2/stat141/Winter04/Homework/Solutions",
passwdfunction = promptPassword)
x = getURL("https://my.ucdavis.edu", userpwd = "",
header = TRUE, verbose = TRUE,
cookiefile = "/home/duncan/Rcookies",
netrc = TRUE,
maxredirs = as.integer(20),
#netrc.file = "/home2/duncan/.netrc1",
followlocation = TRUE) # , passwdfunction = promptPassword)
print(x)
|