setInternet2 {utils}R Documentation

Set or disable the use of Windows internal functions for Internet access.

Description

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).

Usage

setInternet2(use = TRUE)

Arguments

use

logical: whether to use the Windows internet functions. If NA, just return the current setting.

Value

The previous setting is returned, invisibly if use is not NA.

Note

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".

Author(s)

Duncan Murdoch

See Also

download.file, url: the method can be selected for each url connection via its method argument.

Examples

setInternet2(NA)

[Package utils version 3.2.4 Index]