Updated curl package provides additional security for R on Windows

There are many R packages that connect to the internet, whether it’s to import data ( readr)
, install packages from Github ( devtools
), connect with cloud services ( AzureML
), or many other web-connected tasks. There’s one R package in particular that provides the underlying connection between R and the Web: curl
, by Jeroen Ooms, who is also the new maintainer
for R for Windows. (The name comes from curl
, a command-line utility and interface library for connecting to web-based services). The curl package provides replacements for the standard
url

and download.file
functions in R with support for encryption, and the package was recently updated to enhance its security
, particularly on Windows.

To implement secure communications, the curl package needs to connect with a library that handles the SSL (secure socket layer) encryption. On Linux and Max, curl has always used the OpenSSL
library, which is included on those systems. Windows doesn’t have this library (at least, outside of the Subsystem for Linux
), so on Windows the curl package included the OpenSSL library and associated certificate. This raises its own set of issues (see the post linked below for details), so version 3.0 of the package instead uses the built-in winSSL library
. This means curl uses the same security architecture as other connected applications on Windows.

This shouldn’t have any impact on your web-connectivity from R now or in the future, except the knowledge that the underlying architecture is more secure. Nonetheless, it’s possible to switch back to OpenSSL-based encryption (and this remains the default on Windows 7, which does not include the winSSL).

Version 3.0 of the curl package is available now on CRAN (though you’ll likely never need to load it explicitly — packages that use it do that for you automatically). You can learn more about the changes at the link below. If you’d like to know more about what the cur packahe can do, this vignette
is a great place to start. Many thanks to Jeroen Ooms for this package.

rOpenSci: Changes to Internet Connectivity in R on Windows

Revolutions稿源:Revolutions (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合技术 » Updated curl package provides additional security for R on Windows

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录