Skip to content

.rs.secureDownloadMethod() needs to stop using wininet for newer R #10163

Closed
@kevinushey

Description

R 4.2.0 has deprecated the use of the "wininet" download method, as per:

wch/r-source@f8f705f

We try to force the use of "wininet" here:

# For windows we prefer binding directly to wininet if we can (since
# that doesn't rely on the value of setInternet2). If it's R <= 3.1
# then we can use "internal" for https so long as internet2 is enabled
# (we don't use libcurl on Windows because it doesn't check certs).
if (identical(sysName, "Windows")) {
if (isR32)
"wininet"
else if (isTRUE(.rs.setInternet2(NA)))
"internal"
else
""
}

For R 4.2.0 and newer, we'll probably want to prefer using "libcurl" (but we should verify that certificates are now properly checked, as per the associated code comment).

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions