setInternet2 {utils} | R Documentation |
By default R will make use
of the Windows functions underlying Internet Explorer (the "wininet"
functions). This allows
specification of proxies, etc., in the “Internet Options”
applet in “Control Panel”. This will allow the use of
https:// URLs and follow HTTP redirections. This function
allows substitution of lower level access methods via setInternet2(FALSE)
.
setInternet2(use = TRUE)
use |
logical: whether to use the Windows internet functions. If
|
The previous setting is returned, invisibly if use
is not NA
.
This is only available on Windows.
Prior to R 3.2.0 setInternet2(TRUE)
loaded a new DLL:
nowadays both versions of the functions are contained in
‘internet.dll’.
Prior to R 3.2.2, the default was setInternet2(FALSE)
,
unless command line option --internet2 was used or
environment variable R_WIN_INTERNET2 was set. (The option and
environment variable are now ignored.) With this setting the
"internal"
method of download.file
and
url
uses internal functions for http:// access, and
https:// URLs are not supported. The current default
is equivalent to setting the method to "wininet"
.
Duncan Murdoch
download.file
, url
: the method can be
selected for each url
connection via its method
argument.
setInternet2(NA)